页面摘要 API

API ID 13769

从给定的URL提取网站元数据和/或页面主体,适用于SEO分析、网络爬虫和内容摘要

API 文档

端点

请求
获取网站元数据和页面内容作为JSON
Endpoint ID: 31571
POST https://www.zylalabs.com/api/13769/page+summary+api/31571/website+to+json
输入参数

网站到JSON — 端点功能

对象 描述
请求体 必需 Json

剩余免费测试请求:3 / 3。


输入参数

API 示例响应
JSON
{
    "data": {
        "body": {
            "a": [
                {
                    "href": "#bbc-main",
                    "text": "Skip to content"
                },
                {
                    "href": "/watch-live-news/",
                    "text": "Watch Live"
                },
                {
                    "href": "/",
                    "text": "British Broadcasting Corporation"
                },
                {
                    "href": "/",
                    "text": "Home"
                },
                {
                    "href": "/news",
                    "text": "News"
                },
                {
                    "href": "/sport",
                    "text": "Sport"
                },
                {
                    "href": "/business",
                    "text": "Business"
                },
                {
                    "href": "/technology",
                    "text": "Technology"
                },
                {
                    "href": "/health",
                    "text": "Health"
                },
                {
                    "href": "/culture",
                    "text": "Culture"
                },
                {
                    "href": "/arts",
                    "text": "Arts"
                },
                {
                    "href": "/travel",
                    "text": "Travel"
                },
                {
                    "href": "/future-planet",
                    "text": "Earth"
                },
                {
                    "href": "/audio",
                    "text": "Audio"
                },
                {
                    "href": "/video",
                    "text": "Video"
                },
                {
                    "href": "/live",
                    "text": "Live"
                },
                {
                    "href": "/video/docs",
                    "text": "Documentaries"
                },
                {
                    "href": "/",
                    "text": "Home"
                },
                {
                    "href": "/sport",
                    "text": "Sport"
                },
                {
                    "href": "/health",
                    "text": "Health"
                },
                {
                    "href": "https://www.bbc.com/weather",
                    "text": "Weather"
                },
                {
                    "href": "https://www.bbc.com/newsletters",
                    "text": "Newsletters"
                },
                {
                    "href": "/watch-live-news/",
                    "text": "Watch Live"
                },
                {
                    "href": "/news/articles/c62kzr1jg0jo",
                    "text": "Trump says every adult American would get $5,000 if Republicans win midterms"
                },
                {
                    "href": "/news/videos/czxzwge59w8o",
                    "text": "Watch: Is Trump's $5,000 election pledge legal?The US president has said every American will get $5,000 (£3,700) if the Republican Party wins November's midterms.2 hrs agoUS & Canada"
                },
                {
                    "href": "/news/articles/c5ydld0gykpo",
                    "text": "Iran war won't end until after crucial November elections, says Trump The president also said oil prices won't come down until after the November races, claiming without evidence that Iran wants to impact the election.3 hrs agoWorld"
                },
                {
                    "href": "https://www.bbc.com/news/live/crje8w9jelnyt",
                    "text": "LIVEFive dead and 86 missing after ferry catches fire in PhilippinesThe fire broke out while the vessel was on its way to a popular tourist spot in the Palawan province, the country's coastguard says."
                },
                {
                    "href": "/news/articles/c804d9lyj2jo",
                    "text": "Russia's new jet-powered drones outpacing Ukraine's air defences with daily launchesThe new models can travel at speeds of up to 300mph, faster than Ukraine's air defence interceptors.4 hrs agoEurope"
                },
                {
                    "href": "/news/articles/c74edv9887eo",
                    "text": "Can humans stay in control of AI?AI agents went on an uncontrolled hacking spree, leaving some in the industry worried10 hrs agoBBC InDepth"
                },
                {
                    "href": "/news/articles/c93vde0n2l4o",
                    "text": "August joint hottest month on record as climate change and El Niño drive heatClimate change and the rising influence of El Niño saw August reach the record for warmest month.7 hrs ago"
                },
                {
                    "href": "/travel/article/20260902-rifugio-capanna-regina-margherita-the-hike-to-europes-highest-overnight-stay",
                    "text": "What it's like to sleep at 4,554m in Europe's highest mountain refugeYou can sleep over at this historic mountain refuge straddling the Italy-Switzerland border – but only if you're willing to undertake a days-long, high-altitude icy mountain trek."
                },
                {
                    "href": "/news/articles/cwyzj89k4wyo",
                    "text": "Menstrual fitness: Should you be 'cycle-syncing' your workouts?Menstrual cycles are highly individual, making blanket advice found on social media difficult to apply, researchers say."
                },
                {
                    "href": "https://www.bbc.com/audio",
                    "text": "Recommended audio"
                },
                {
                    "href": "/audio/play/w3ct8ml9",
                    "text": "The Global StoryWhy America's allies are sanctioning West Bank settlers"
                },
                {
                    "href": "/audio/play/p0p8vdrv",
                    "text": "Global News PodcastUS Republicans kick off first-ever midterm convention"
                },
                {
                    "href": "/audio/play/w3ct98bw",
                    "text": "Witness HistoryThe weather report that changed the date of D-Day"
                },
                {
                    "href": "/audio/play/p0p8s5j0",
                    "text": "The Documentary PodcastTurkey's growing sinkhole problem"
                },
                {
                    "href": "/audio/play/w3ct8glt",
                    "text": "Business DailyPower Players: Can new BP leadership steady the ship?"
                },
                {
                    "href": "/audio/play/m00316yd",
                    "text": "More or LessWhy are so many ex-prisoners being sent back to prison?"
                },
                {
                    "href": "https://www.bbc.com/video/docs",
                    "text": "Documentaries"
                },
                {
                    "href": "/video/docs/series/10331960",
                    "text": "Inside the Mind of Agatha Christie20191 episodeTV-PGA close look into Agatha Christie's inner world through her personal notebooks, expert analysis, and interviews with her descendants.View series"
                },
                {
                    "href": "/sport/american-football/articles/ceq82n0j4jzo",
                    "text": ""
                },
                {
                    "href": "/sport/american-football/articles/ceq82n0j4jzo",
                    "text": "Champions Seahawks beat Patriots in season openerDefending champions the Seattle Seahawks come from behind to beat the New England Patriots 13-10 in the opening game of the NFL season.26 mins agoAmerican Football"
                },
                {
                    "href": "/news/articles/clyl6ekpw2ko",
                    "text": "Meet Hugo, the world's tallest living horse who's 'still growing' Hugo the shire horse enters the record books as the world's tallest living horse.3 hrs agoNorthamptonshire"
                },
                {
                    "href": "https://www.bbc.com/news/live/c5vgy3ynwvvmt",
                    "text": "LIVEQueues build outside British Museum as Bayeux Tapestry exhibit to open to public for first timeIt is being loaned to the British Museum while its usual home in France undergoes renovation - doors open at 10:00 BST and tickets are sold out for the rest of the year."
                },
                {
                    "href": "/news/articles/ced7vj2gv82o",
                    "text": "Spanish intelligence warned of Ceuta mass crossing plans before surgeDeclassified documents show Spanish and Moroccan authorities were alerted to social media calls for a mass migrant crossing the day before tens of thousands entered Ceuta.11 hrs agoWorld"
                },
                {
                    "href": "/news/videos/cy5zpze3qe3o",
                    "text": "Land in limbo: The West Bank village in area earmarked by Israel for settlementThe BBC visits the Palestinian community of Khan al Ahmar in the so-called E1 area, and the neighbouring Israeli settlement of Maale Admumim.11 hrs agoMiddle East"
                },
                {
                    "href": "/news/articles/clyjd1jnd03o"
                }
            ]
        }
    },
    "_note": "Response truncated for documentation purposes"
}
网站到JSON — 代码片段

curl --location --request POST 'https://zylalabs.com/api/13769/page+summary+api/31571/website+to+json' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
    "url": "https://www.bbc.com",
    "getMetadata": true,
    "getBody": true,
    "additionalHeaders": {
        "Cookies": "Cookie1;Cookie2",
        "MyHeader": "MyHeaderValue"
    }
}'

    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 页面摘要 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

(年度计费可节省 2 个月 🎉)

🚀 企业版套餐

起价
$ 10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

从给定的URL提取网站元数据和/或页面内容,有助于SEO分析、网络抓取和内容摘要

页面摘要 API FAQs

页面摘要API返回从指定URL提取的网站元数据和页面内容。这包括页面主体、链接、标题和描述等元素,格式为JSON以便于集成

响应数据中的关键字段包括“body”,它包含页面的主要内容,以及“a”,它列出了锚标签及其各自的“href”和“text”属性,提供链接及其描述

响应数据采用JSON格式结构,其中“data”对象包含一个“body”对象。在“body”中,各种元素如链接被组织在数组中,便于解析和利用

API提供的信息包括页面标题、描述、关键词和主要内容,以及其他页面的链接。这些数据对SEO分析、网络爬虫和内容摘要非常有用

用户可以通过在POST请求中指定他们想要分析的URL来定制他们的请求。根据API的能力,可以包含其他参数来细化数据提取

典型的使用案例包括SEO分析以提高网站可见性 网络爬虫用于数据收集 以及内容摘要以生成网页的简明概述用于研究或报告

数据准确性通过定期更新和检查提取过程来维护 API直接从实时网页提取数据 确保信息反映内容的当前状态

用户可以期待标准模式,例如带有嵌套对象的结构化 JSON 响应作为主体内容和链接。提取的数据中通常会出现常见的 HTML 元素,如标题、段落和列表

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API