谷歌网页搜索查询 API

Google 网络搜索查询 API 允许用户通过编程访问网络搜索结果将 Google 搜索功能集成到应用程序中
通过 MCP 从您的 AI 代理使用此 API
支持 OpenClaw、Claude Code/Desktop、Cursor、Windsurf、Cline 以及任何兼容 MCP 的 AI 客户端。
文档和设置
通过封装此 MCP 创建技能: https://mcp.zylalabs.com/mcp?apikey=YOUR_ZYLA_API_KEY

关于API:  

Google网页搜索查询API提供访问Google的网页搜索结果。该API允许用户将Google的搜索功能集成到他们的应用程序、网站和服务中,使用户能够直接从Google的索引中检索相关的网页搜索结果。

本质上,Google网页搜索查询API提供了一种方便的方式,以查询Google搜索引擎并以结构化格式检索搜索结果。这使用户能够利用Google强大的搜索算法和广泛的网页索引,在自己的应用程序中提供准确和最新的搜索结果。

此外,Google网页搜索查询API还提供与搜索结果相关的附加元数据和信息,例如标题、描述。这使用户能够通过附加上下文和信息丰富搜索结果,从而改善用户的整体搜索体验。

总体而言,Google网页搜索查询API为希望将Google强大的网页搜索功能集成到其应用程序和服务中的用户提供了解决方案。通过访问Google广泛的网页索引、高级搜索功能和各种类型的搜索结果,该API使用户能够创建丰富而强大的搜索体验,以满足用户的需求和偏好。Google网页搜索查询API提供了一个可靠且可扩展的解决方案,用于访问Google的网页搜索能力,无论是为网站、移动应用还是企业应用提供搜索功能。

 

此API接收什么以及您的API提供什么(输入/输出)?

它将接收参数并为您提供JSON。

 

此API最常见的用例是什么?

  1. 网站搜索集成:将Google搜索功能嵌入网站,以便用户在站点内搜索内容。

    自定义搜索引擎:使用API创建针对特定主题或细分市场的自定义搜索引擎。

    内容聚合平台:开发内容聚合平台,根据用户查询检索和显示相关的网页搜索结果。

    研究工具:创建利用API从网络收集信息和数据的研究工具。

    电子商务产品搜索:将API集成到电子商务平台中,为用户提供产品搜索功能。

     

您的计划是否有任何限制

所有计划每秒5个请求

API 文档

端点


要使用此端点,您必须输入搜索词。它还将有一个可选参数以获取关键字(true,false,不包含在请求中)



                                                                            
GET https://zylalabs.com/api/3544/google+web+search+query+api/3889/search
                                                                            
                                                                        

搜索 - 端点功能

对象 描述
query [必需] Indicate a query
related_keywords 可选
limit 可选
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"search_term": "football", "results": [{"position": 1, "title": "NFL.com | Official Site of the National Football League", "link": "https://www.nfl.com/", "snippet": "The official source for NFL News, NFL video highlights, Fantasy Football, game-day coverage, NFL schedules, stats, scores & more."}, {"position": 2, "title": "Football", "link": "https://en.wikipedia.org/wiki/Football", "snippet": "Football is a family of team sports that involve, to varying degrees, kicking a ball to score a goal. Unqualified, the word football normally means the form ..."}, {"position": 3, "title": "NFL on ESPN - Scores, Stats and Highlights", "link": "https://www.espn.com/nfl/", "snippet": "6 hours ago — Visit ESPN for NFL live scores, video highlights and latest news. Stream Monday Night Football on ESPN+ and play Fantasy Football."}, {"position": 4, "title": "American football", "link": "https://en.wikipedia.org/wiki/American_football", "snippet": "American football also known as gridiron football, is a team sport played by two teams of eleven players on a rectangular field with goalposts at each end."}, {"position": 5, "title": "Latest NFL Football News", "link": "https://www.nfl.com/news/", "snippet": "Visit the official source for NFL News, NFL schedules, stats, scores and more. Get all the latest NFL Football news now!"}, {"position": 6, "title": "NFL Football - News, Scores, Stats, Standings, and Rumors", "link": "https://www.cbssports.com/nfl/", "snippet": "CBS Sports has the latest NFL Football news, live scores, player stats, standings, fantasy games, and projections."}, {"position": 7, "title": "USA Football | The Sport's Governing Body", "link": "https://www.usafootball.com/", "snippet": "USA Football's here to lead, strengthen and grow the game alongside you as the sport's governing body through education, events and the U.S. National Team ..."}, {"position": 8, "title": "Players can start opting in to EA Sports College Football 25", "link": "https://www.espn.com/college-football/story/_/id/39574788/players-opting-ea-sports-college-football-25-get-600", "snippet": "4 hours ago — For over 11,000 college football players, Thursday will be the first chance to opt in to EA Sports' new college football game, EA Sports ..."}, {"position": 9, "title": "EA Sports Reveals College Football 25 Player ...", "link": "https://www.ign.com/articles/ea-sports-college-football-25-player-compensation-revealed", "snippet": "2 hours ago — Players who opt into College Football 25 will receive $600 and a copy of the game. The game itself is valued at $70, according to ESPN. ESPN ..."}, {"position": 10, "title": "FIFA | The Home of Football", "link": "https://www.fifa.com/", "snippet": "The home of football across the globe, FIFA bring you the very latest tournament news, player exclusives and live match content all in one place."}, {"position": 11, "title": "Football", "link": "https://www.cnn.com/sport/football", "snippet": "Latest football news from around the world, with features and interviews with the biggest stars of the English Premier League, Spanish La Liga, ..."}, {"position": 12, "title": "College Football Playoff - Official Athletics Website", "link": "https://collegefootballplayoff.com/", "snippet": "The official website of the College Football Playoff."}, {"position": 13, "title": "Pro Football Hall of Fame", "link": "https://www.profootballhof.com/", "snippet": "Visit the Pro Football Hall of Fame in Canton, Ohio & create long-lasting memories. Learn about the Legends of the Game & experience interactive exhibits."}, {"position": 14, "title": "NCAA College Football news, scores, stats and FBS rankings", "link": "https://www.ncaa.com/sports/football/fbs", "snippet": "NCAA College Football news, scores, stats and FBS rankings · College football's 9 winningest teams · The longest overtime games in FBS history · 17 of the best ..."}, {"position": 15, "title": "Pro-Football-Reference.com: Pro Football Stats, History ...", "link": "https://www.pro-football-reference.com/", "snippet": "Complete source for pro football history including complete player, team, and league stats, awards, records, leaders, rookies and scores."}, {"position": 16, "title": "Pro Football Talk", "link": "https://www.nbcsports.com/nfl/profootballtalk", "snippet": "1 day ago — Find all the latest ProFootballTalk news, live coverage, videos, highlights, stats, predictions, and results right here on NBC Sports."}, {"position": 17, "title": "FIFA | The Home of Football", "link": "https://www.fifa.com/", "snippet": "The home of football across the globe, FIFA bring you the very latest tournament news, player exclusives and live match content all in one place."}, {"position": 18, "title": "College Football Playoff - Official Athletics Website", "link": "https://collegefootballplayoff.com/", "snippet": "The official website of the College Football Playoff."}, {"position": 19, "title": "Pro Football Hall of Fame", "link": "https://www.profootballhof.com/", "snippet": "Visit the Pro Football Hall of Fame in Canton, Ohio & create long-lasting memories. Learn about the Legends of the Game & experience interactive exhibits."}, {"position": 20, "title": "Pro Football Talk", "link": "https://www.nbcsports.com/nfl/profootballtalk", "snippet": "1 day ago — Find all the latest ProFootballTalk news, live coverage, videos, highlights, stats, predictions, and results right here on NBC Sports."}], "knowledge_panel": {"name": "NFL", "label": "League", "description": {"text": "The National Football League is a professional American football league that consists of 32 teams, divided equally between the American Football Conference and the National Football Conference.", "url": "https://en.wikipedia.org/wiki/National_Football_League", "site": "Wikipedia"}, "image": {"url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:3MKztfXR1MJPZM", "width": "41", "height": "56", "page_url": "https://en.wikipedia.org/wiki/National_Football_League"}, "info": [{"title": "Subsidiaries", "labels": ["National Football Conference, MORE"]}, {"title": "Commissioner", "labels": ["Roger Goodell"]}, {"title": "Founded", "labels": ["September 17, 1920; 103 years ago; Canton, Ohio, U.S."]}, {"title": "Inaugural season", "labels": ["1920"]}, {"title": "Most titles", "labels": ["Green Bay Packers; (13 titles)"]}]}, "related_keywords": {}}
                                                                                                                                                                                                                    
                                                                                                    

搜索 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/3544/google+web+search+query+api/3889/search?query=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 谷歌网页搜索查询 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
标头
标头 描述
授权 [必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

简单透明的定价

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

🚀 企业版

起价
$ 10,000/年


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

客户喜爱的功能

  • ✔︎ 仅支付成功请求
  • ✔︎ 7 天免费试用
  • ✔︎ 多语言支持
  • ✔︎ 一个 API 密钥,所有 API。
  • ✔︎ 直观的仪表板
  • ✔︎ 全面的错误处理
  • ✔︎ 开发者友好的文档
  • ✔︎ Postman 集成
  • ✔︎ 安全的 HTTPS 连接
  • ✔︎ 可靠的正常运行时间

谷歌网页搜索查询 API FAQs

要使用此 API 您必须指定一个搜索词以及是否希望获取相关关键词

Google网络搜索查询API允许用户向Google搜索引擎提交搜索查询并获取搜索结果

有不同的计划适合所有口味,包括少量请求的免费试用,但您的速率受到限制以避免滥用服务

Zyla提供了几乎所有编程语言的多种集成方法。您可以根据需要使用这些代码与您的项目进行集成

搜索端点返回一个包含基于所提供查询的搜索结果的JSON对象。每个结果包括位置、标题、链接和摘要等字段,提供相关网页的结构化视图

响应数据中的关键字段包括“位置”(结果的排名)“标题”(网页的标题)“链接”(页面的 URL)和“摘要”(内容的简要描述)

响应数据被组织为一个包含“search_term”字段和“results”数组的JSON对象 “results”数组中的每个条目包含单个搜索结果的详细信息 使得解析和显示变得简单

搜索端点接受一个必需的“搜索词”参数和一个可选的“关键词”参数,该参数可以设置为true或false,以在响应中包含或排除关键词

搜索端点提供信息,例如网页标题 URL 内容片段及其在搜索结果中的位置 允许用户检索全面的搜索数据

用户可以通过指定不同的搜索词和选择是否在响应中包含关键字来定制他们的请求,从而使输出符合他们的特定需求

典型的用例包括将搜索功能整合到网站中 创建自定义搜索引擎 开发研究工具 以及增强电子商务平台的产品搜索功能

数据准确性通过谷歌广泛的索引和搜索算法得以维护,这些算法根据最新的网络内容和用户交互不断更新和完善搜索结果

一般常见问题

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 日之前提交请求,您的付款将在此时间范围内处理。


相关 API


您可能还喜欢