Fetch Web Content Data API 允许您执行自定义搜索,并直接从全球使用最广泛的搜索引擎获得详细结果。该 API 根据关键字或查询术语提供结构化结果,返回的数据包括页面标题、描述摘要、直接链接、格式化的 URL、缩略图以及丰富的内容,如元数据、Open Graph 标签和社交卡片(例如,Twitter 卡片)。
每个结果的类型为 customsearch#result,包含标题、摘要、链接、显示链接、格式化 URL 和 HTML 版本(htmlTitle、htmlSnippet、htmlFormattedUrl)等字段,允许您突出匹配内容。此外,通过 pagemap 集成了视觉信息,您可以访问缩略图(cse_thumbnail)和精选图片(cse_image)。还获取了用于与社交平台集成的有用元信息,如 og:image、og:title、og:description 和 twitter:card。
这使您能够在自己的平台上利用 Google 搜索的强大功能,展示准确且相关的结果,以适合在网站、移动应用或仪表板上呈现的结构。
要使用此端点,您必须在参数中指定一个关键字。
搜索 - 端点功能
| 对象 | 描述 |
|---|---|
q |
[必需] Enter a keyword |
[{"kind":"customsearch#result","title":"iPhone - Apple","htmlTitle":"<b>iPhone</b> - Apple","link":"https://www.apple.com/iphone/","displayLink":"www.apple.com","snippet":"Designed for Apple Intelligence. Discover the iPhone 16e along with iPhone 16 Pro, iPhone 16, and iPhone 15.","htmlSnippet":"Designed for Apple Intelligence. Discover the <b>iPhone</b> 16e along with <b>iPhone</b> 16 Pro, <b>iPhone</b> 16, and <b>iPhone</b> 15.","formattedUrl":"https://www.apple.com/iphone/","htmlFormattedUrl":"https://www.apple.com/<b>iphone</b>/","pagemap":{"cse_thumbnail":[{"src":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQj-SXGzFcW9StliE3aB91xU1a0XEsshFTv9UVCoj5As7FKT4uCqQm9DQIP&s","width":"310","height":"163"}],"BreadcrumbList":[{}],"metatags":[{"analytics-s-bucket-1":"applestoreww","og:image":"https://www.apple.com/v/iphone/home/cc/images/meta/iphone__kqge21l9n26q_og.png?202507301724","analytics-s-bucket-0":"applestoreww","og:type":"website","twitter:card":"summary_large_image","og:site_name":"Apple","al:ios:app_name":"Apple Store","globalnav-store-key":"SFX9YPYY9PPXCU9KH","og:title":"iPhone","al:ios:url":"https://www.apple.com/us/xc/iphone?cid=AOS_ASA","og:description":"Designed for Apple Intelligence. Discover the iPhone 16e along with iPhone 16 Pro, iPhone 16, and iPhone 15.","al:ios:app_store_id":"375380948","analytics-s-channel":"iphone","twitter:site":"@Apple","analytics-s-page-tracking-data":"{\"eVar70\": \"android\"}","viewport":"width=device-width, initial-scale=1, viewport-fit=cover","ac:pricing-alias":"iphone-16-pro=IPHONE16PRO","og:locale":"en_US","ac:tradein-alias":"tradein-iphone12=slug:model_iphone_12","ssmvt-data":"[{\"experimentId\":\"f0e52d\",\"variationId\":\"C\"}]","position":"1","og:url":"https://www.apple.com/iphone/","analytics-track":"iphone - index/tab","analytics-s-bucket-2":"applestoreww"}],"cse_image":[{"src":"https://www.apple.com/v/iphone/home/cc/images/meta/iphone__kqge21l9n26q_og.png?202507301724"}]}},{"kind":"customsearch#result","title":"iPhone - Wikipedia","htmlTitle":"<b>iPhone</b> - Wikipedia","link":"https://en.wikipedia.org/wiki/IPhone","displayLink":"en.wikipedia.org","snippet":"The iPhone is a line of smartphones developed and marketed by Apple Inc. that run iOS, the company's own mobile operating system. The first-generation ...","htmlSnippet":"The <b>iPhone</b> is a line of smartphones developed and marketed by Apple Inc. that run iOS, the company's own mobile operating system. The first-generation ...","formattedUrl":"https://en.wikipedia.org/wiki/IPhone","htmlFormattedUrl":"https://en.wikipedia.org/wiki/<b>IPhone</b>","pagemap":{"metatags":[{"referrer":"origin","og:image":"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/IPhone_16_Pro_Vector.svg/1200px-IPhone_16_Pro_Vector.svg.png","theme-color":"#eaecf0","og:image:width":"1200","og:type":"website","viewport":"width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=0.25, maximum-scale=5.0","og:title":"iPhone - Wikipedia","og:image:height":"2461","format-detection":"telephone=no"}],"hproduct":[{"fn":"iPhone","url":"apple.com/iphone"}]}},{"kind":"customsearch#result","title":"Apple","htmlTitle":"Apple","link":"https://www.apple.com/","displayLink":"www.apple.com","snippet":"Discover the innovative world of Apple and shop everything iPhone, iPad, Apple Watch, Mac, and Apple TV, plus explore accessories, entertainment, ...","htmlSnippet":"Discover the innovative world of Apple and shop everything <b>iPhone</b>, iPad, Apple Watch, Mac, and Apple TV, plus explore accessories, entertainment, ...","formattedUrl":"https://www.apple.com/","htmlFormattedUrl":"https://www.apple.com/","pagemap":{"cse_thumbnail":[{"src":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS3FXTmbGhhVYBuhbY47TyPnaxOcRIiP3DCX4V_6ZgKR65gR84sxFGhi2U&s","width":"310","height":"163"}],"metatags":[{"analytics-s-bucket-1":"applestoreww","analytics-s-bucket-0":"applestoreww","og:image":"https://www.apple.com/ac/structured-data/images/open_graph_logo.png?202110180743","og:type":"website","og:site_name":"Apple","globalnav-store-key":"SFX9YPYY9PPXCU9KH","og:title":"Apple","og:description":"Discover the innovative world of Apple and shop everything iPhone, iPad, Apple Watch, Mac, and Apple TV, plus explore accessories, entertainment, and expert device support.","analytics-s-channel":"homepage","viewport":"width=device-width, initial-scale=1, viewport-fit=cover","og:locale":"en_US","og:url":"https://www.apple.com/","analytics-track":"Apple - Index/Tab","analytics-s-bucket-2":"applestoreww"}],"cse_image":[{"src":"https://www.apple.com/ac/structured-data/images/open_graph_logo.png?202110180743"}]}},{"kind":"customsearch#result","title":"r/iPhone","htmlTitle":"r/<b>iPhone</b>","link":"https://www.reddit.com/r/iphone/","displayLink":"www.reddit.com","snippet":"r/iphone: Reddit's little corner for iPhone lovers (and some people who just mildly enjoy it…)","htmlSnippet":"r/<b>iphone</b>: Reddit's little corner for <b>iPhone</b> lovers (and some people who just mildly enjoy it…)","formattedUrl":"https://www.reddit.com/r/iphone/","htmlFormattedUrl":"https://www.reddit.com/r/<b>iphone</b>/","pagemap":{"cse_thumbnail":[{"src":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSIdavNM8sk5fHPLXO2OdOBUBDBfHfnuGH6tXC7xcmo_xj1hy-QzHPqdBkx&s","width":"227","height":"222"}],"metatags":[{"og:image":"https://styles.redditmedia.com/t5_2qh2b/styles/communityIcon_ig9nr9020vnb1.jpg?format=pjpg&s=d099cbfa5c87f941a1e65a58a52a18047f151eaa","theme-color":"#000000","og:image:width":"256","og:type":"website","twitter:card":"summary","twitter:title":"r/iPhone","og:site_name":"Reddit","og:title":"r/iPhone","og:image:height":"256","bingbot":"noarchive","msapplication-navbutton-color":"#000000","og:description":"Reddit’s little corner for iPhone lovers (and some people who just mildly enjoy it…)","twitter:image":"https://styles.redditmedia.com/t5_2qh2b/styles/communityIcon_ig9nr9020vnb1.jpg?format=pjpg&s=d099cbfa5c87f941a1e65a58a52a18047f151eaa","apple-mobile-web-app-status-bar-style":"black","twitter:site":"@reddit","viewport":"width=device-width, initial-scale=1, viewport-fit=cover","apple-mobile-web-app-capable":"yes","og:ttl":"600","og:url":"https://www.reddit.com/r/iphone/"}],"cse_image":[{"src":"https://styles.redditmedia.com/t5_2qh2b/styles/communityIcon_ig9nr9020vnb1.jpg?format=pjpg&s=d099cbfa5c87f941a1e65a58a52a18047f151eaa"}]}},{"kind":"customsearch#result","title":"iPhone - Compare Models - Apple","htmlTitle":"<b>iPhone</b> - Compare Models - Apple","link":"https://www.apple.com/iphone/compare/","displayLink":"www.apple.com","snippet":"Compare features and technical specifications for iPhone 16 Pro, iPhone 16 Pro Max, iPhone 16, iPhone 16 Plus, iPhone 16e, and many more.","htmlSnippet":"Compare features and technical specifications for <b>iPhone</b> 16 Pro, <b>iPhone</b> 16 Pro Max, <b>iPhone</b> 16, <b>iPhone</b> 16 Plus, <b>iPhone</b> 16e, and many more.","formattedUrl":"https://www.apple.com/iphone/compare/","htmlFormattedUrl":"https://www.apple.com/<b>iphone</b>/compare/","pagemap":{"cse_thumbnail":[{"src":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSz9B53KzVjxS16U0yhgM_oEv4pLw_kqLl228KDu8-lpeSAHg_DApm1AUQY&s","width":"310","height":"163"}],"BreadcrumbList":[{}],"metatags":[{"analytics-s-bucket-1":"applestoreww","og:image":"https://www.apple.com/v/iphone/compare/ai/images/meta/compare__0kr7oqqwknma_og.png?202507301724","analytics-s-bucket-0":"applestoreww","og:type":"website","og:site_name":"Apple","globalnav-store-key":"SFX9YPYY9PPXCU9KH","og:title":"iPhone - Compare Models","og:description":"Compare features and technical specifications for iPhone 16 Pro, iPhone 16 Pro Max, iPhone 16, iPhone 16 Plus, iPhone 16e, and many more.","analytics-s-channel":"iphone.tab+other","viewport":"width=device-width, initial-scale=1, viewport-fit=cover","ac-custom-local-desc-start":"Compare features and technical specifications for the","og:locale":"en_US","ac:tradein-alias":"tradein-iphone12=slug:model_iphone_12","position":"1","og:url":"https://www.apple.com/iphone/compare/","ac-custom-local-desc-end":"and many more.","analytics-track":"iphone - compare","analytics-s-bucket-2":"applestoreww"}],"cse_image":[{"src":"https://www.apple.com/v/iphone/compare/ai/images/meta/compare__0kr7oqqwknma_og.png?202507301724"}]}},{"kind":"customsearch#result","title":"iPhone Repair and Service - Apple Support","htmlTitle":"<b>iPhone</b> Repair and Service - Apple Support","link":"https://support.apple.com/iphone/repair","displayLink":"support.apple.com","snippet":"Need to repair your iPhone? See your service options, their costs by coverage type, and how long they take.","htmlSnippet":"Need to repair your <b>iPhone</b>? See your service options, their costs by coverage type, and how long they take.","formattedUrl":"https://support.apple.com/iphone/repair","htmlFormattedUrl":"https://support.apple.com/<b>iphone</b>/repair","pagemap":{"cse_thumbnail":[{"src":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTdEyIxqj7ExppNkJKjZtJuqaGqgVBPzm3zYd6LUNtH7u-uJZtEqxfk3Mar&s","width":"263","height":"192"}],"Organization":[{"name":"Apple","telephone":"1-800-692-7753"}],"BreadcrumbList":[{}],"metatags":[{"og:type":"article","globalnav-search-field[locale]":"en_US","og:site_name":"Apple Support","globalnav-store-key":"S2A49YFKJF2JAT22K","og:title":"iPhone Repair and Service - Apple Support","globalnav-search-field[src]":"globalnav_support","globalnav-search-field[name]":"q","telephone":"1-800-692-7753","og:description":"Need to repair your iPhone? See your service options, their costs by coverage type, and how long they take.","globalnav-search-field[placeholder]":"Search Support","globalnav-search-field[action]":"https://support.apple.com/kb/index","viewport":"width=device-width, initial-scale=1, viewport-fit=cover","og:locale":"en_US","globalnav-search-field[type]":"organic","name":"Apple","globalnav-search-field[page]":"search"}]}},{"_note":"Response truncated for documentation purposes"}]
curl --location --request GET 'https://zylalabs.com/api/9172/fetch+web+content+data+api/16583/search?q=iphone' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
API 返回来自网页搜索的结构化数据,包括页面标题 描述摘要 直接链接 格式化的 URL 缩略图以及元数据和开放图谱标签等丰富内容
关键字段包括标题、摘要、链接、显示链接、格式化网址和HTML版本(htmlTitle、htmlSnippet、htmlFormattedUrl)这些字段有效地帮助突出搜索匹配
响应被结构化为一个 JSON 对象,包含一个结果数组。每个结果包括标题、摘要以及缩略图等视觉元素的字段,组织在类型为 customsearch#result 下
该 API 提供页面标题、摘要、链接、缩略图以及丰富的元数据,如 Open Graph 和 Twitter Card 数据,增强内容展示
主要参数是搜索查询的关键字 用户可以通过指定额外的过滤器或搜索选项来自定义请求 这些由API支持
用户可以在搜索结果中显示标题和摘要,使用链接进行导航,并在其平台上加入缩略图和丰富的元数据以增强用户参与度
数据来自全球使用最广泛的搜索引擎,确保了与指定查询相关的网页内容的广泛和全面覆盖
典型用例包括将搜索结果集成到网站 移动应用程序和仪表板中 通过提供相关和结构化的网页内容增强用户体验
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 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
服务级别:
100%
响应时间:
8,219ms
服务级别:
100%
响应时间:
2,625ms
服务级别:
100%
响应时间:
2,788ms
服务级别:
100%
响应时间:
5,748ms
服务级别:
100%
响应时间:
7,660ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
10,154ms
服务级别:
100%
响应时间:
859ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
639ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
0ms
服务级别:
90%
响应时间:
1,060ms
服务级别:
100%
响应时间:
332ms
服务级别:
100%
响应时间:
267ms
服务级别:
100%
响应时间:
489ms
服务级别:
100%
响应时间:
6,071ms