Google 搜索 API 是一个强大的工具,旨在实现对 Google 搜索结果的编程访问,无需使用网络浏览器,也无需担心 Google 对自动搜索施加的限制和阻止。该 API 以结构化的方式提取信息,以 JSON 格式提供数据,便于在应用程序、数据分析或与其他系统的集成中处理。
它可以返回的结果包括有机结果,即指向网站的正常链接,附带其标题、描述、网址和域名;本地结果,显示与搜索相关的附近企业和地点,包括评分、评论和地址;以及广告,位于页面的顶部和底部,附有标题、描述、网址和跟踪链接。此外,API 还可以从 Google 新闻和头条提取信息,提供与搜索相关的最新文章,并带有日期、来源和直接链接。
该 API 还允许访问图像,包括图像网址、标题、域名和在结果中的位置,以及与搜索相关的常见问题,附带直接从 Google 摘录提取的详细答案。
API返回完整的Google搜索结果:有机、本地、新闻、图片、地图、常见问题和广告,全部以JSON格式结构化
谷歌搜索 - 端点功能
| 对象 | 描述 |
|---|---|
search |
[必需] |
add_html |
可选 Adding the full html of the page in the results (true or false) |
country_code |
可选 Country code from which you would like the request to come from |
device |
可选 Control the device the request will be sent from (desktop or mobile) |
language |
可选 Language the search results will be displayed in |
nb_results |
可选 The number of results you want to get back from Google Search |
nfpr |
可选 Exclude results from auto-corrected queries that were spelt wrong. (true or false) |
page |
可选 The page number you want to extract results from |
search_type |
可选 The type of search you want to perform (classic, news, maps, images) |
{"meta_data": {"url": "https://www.google.com/search?q=football&gl=us&hl=en&num=100&uule=en", "number_of_results": 2640000000, "zero_results_for_original_query": false, "location": "US", "number_of_organic_results": 94, "number_of_ads": 0, "number_of_page": 3}, "organic_results": [{"url": "https://www.nfl.com/", "displayed_url": "https://www.nfl.com", "description": "The official source for NFL news, video highlights, game-day coverage, schedules, stats, scores and more.", "position": 1, "title": "NFL.com | Official Site of the National Football League", "domain": "www.nfl.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://en.wikipedia.org/wiki/Football", "displayed_url": "https://en.wikipedia.org\u203a wiki \u203a Football", "description": "Football is a family of team sports that involve, to varying degrees, kicking a ball to score a goal. Unqualified, the word football generally means the form\u00a0...", "position": 2, "title": "Football", "domain": "en.wikipedia.org", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://www.espn.com/nfl/schedule", "displayed_url": "https://www.espn.com\u203a nfl \u203a schedule", "description": "The complete 2025 NFL season schedule on ESPN. Includes game times, TV listings and ticket information for all NFL games.", "position": 3, "title": "NFL Schedule - 2025 Season", "domain": "www.espn.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://www.usafootball.com/", "displayed_url": "https://www.usafootball.com", "description": "USA Football selects, trains and leads the U.S National Teams in tackle and flag football and is the sole U.S. member of the International Federation of\u00a0...", "position": 4, "title": "USA Football | The Sport's National Governing Body", "domain": "www.usafootball.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://www.ncaa.com/sports/football/fbs", "displayed_url": "https://www.ncaa.com\u203a sports \u203a football \u203a fbs", "description": "Get the top news, scores, highlights and latest trending topics in FBS college football here at NCAA.com.", "position": 5, "title": "NCAA College Football news, scores, stats and FBS rankings", "domain": "www.ncaa.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://en.wikipedia.org/wiki/American_football", "displayed_url": "https://en.wikipedia.org\u203a wiki \u203a American_football", "description": "American football is the most popular sport in the United States in terms of broadcast viewership audience. The most popular forms of the game are professional\u00a0...", "position": 6, "title": "American football", "domain": "en.wikipedia.org", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://www.nytimes.com/athletic/6577381/2025/08/27/college-football-schedule-best-week-1-ever-history/", "displayed_url": "https://www.nytimes.com\u203a athletic \u203a 2025/08/27 \u203a coll...", "description": "2 hours ago \u2014 Is this college football's best Week 1 ever? From Columbus to Clemson to Miami, buckle up \u00b7 No. 1 Texas at No. 3 Ohio State (Saturday, noon, Fox)\u00a0...", "position": 7, "title": "Is this college football's best Week 1 ever? From Columbus ...", "domain": "www.nytimes.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://www.cnn.com/sport/football", "displayed_url": "https://www.cnn.com\u203a sport \u203a football", "description": "Latest football news from around the world, with features and interviews with the biggest stars of the English Premier League, Spanish La Liga,\u00a0...", "position": 8, "title": "Football", "domain": "www.cnn.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://www.nfl.com/schedules/", "displayed_url": "https://www.nfl.com\u203a schedules", "description": "Get the NFL Schedule. Find Schedule History, Schedule Release &Tickets to NFL Games.", "position": 9, "title": "NFL 2025 - WEEK 1 Schedule", "domain": "www.nfl.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://www.espn.com/college-football/schedule", "displayed_url": "https://www.espn.com\u203a college-football \u203a schedule", "description": "The complete 2025 NCAAF season schedule on ESPN. Includes game times, TV listings and ticket information for all College Football games.", "position": 10, "title": "College Football Schedule - 2025 Season", "domain": "www.espn.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://mgoblue.com/sports/football", "displayed_url": "https://mgoblue.com\u203a sports \u203a football", "description": "The official Football page for the Michigan Wolverines.", "position": 11, "title": "University of Michigan", "domain": "mgoblue.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://uhcougars.com/gameday/football-vs-stephen-f-austin/football/105/", "displayed_url": "https://uhcougars.com\u203a gameday \u203a football", "description": "University of Houston tight end Tanner Koziol earned a spot on the 2026 Senior Bowl Top 300 list entering the 2025 season, the organization announced Wednesday.", "position": 12, "title": "Football vs Stephen F. Austin - Thursday, August 28", "domain": "uhcougars.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://www.skysports.com/football-scores-fixtures", "displayed_url": "https://www.skysports.com\u203a football-scores-fixtures", "description": "Sky Sports brings you today's football schedule - filter by date or competition and never miss another match. Get all of the latest fixtures, live scores\u00a0...", "position": 13, "title": "Football Scores & Fixtures - Today's Schedule of ...", "domain": "www.skysports.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://onefootball.com/en/home", "displayed_url": "https://onefootball.com\u203a ...", "description": "OneFootball covers over 100 international soccer leagues and competitions live and in incomparable detail. Find live scores and commentaries, breaking news,\u00a0...", "position": 14, "title": "OneFootball: home", "domain": "onefootball.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://www.reddit.com/r/football/", "displayed_url": "943.8K+ followers", "description": "r/football: Home of Football. Official Sponsors of Redditch United. News, Rumours, Analysis, gossip and much more.", "position": 15, "title": "Football - The People's Sport", "domain": "www.reddit.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://psacsports.org/news/2025/8/27/psac-football-week-0-notes.aspx", "displayed_url": "https://psacsports.org\u203a news \u203a psac-football-week-0-no...", "description": "40 minutes ago \u2014 SETON HILL- SHU returns All-Region, first team All-PSAC West, and 2025 D2Football.com's Elite 100 preseason second team RB Ky'Ron Craggette.", "position": 16, "title": "PSAC Football Week 0 Notes", "domain": "psacsports.org", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://fightingillini.com/sports/football", "displayed_url": "https://fightingillini.com\u203a sports \u203a football", "description": "The official Football page for the University of Illinois Fighting Illini.", "position": 17, "title": "Football", "domain": "fightingillini.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://floridagators.com/sports/football", "displayed_url": "https://floridagators.com\u203a sports \u203a football", "description": "Tickets, Schedule, Roster, Coaches & Staff, News, Stats, Facilities, Ben Hill Griffin Stadium, Heavener Football Training Center", "position": 18, "title": "Florida Gators Football", "domain": "floridagators.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://gopsusports.com/sports/football", "displayed_url": "https://gopsusports.com\u203a sports \u203a football", "description": "The official sports website for Penn State Athletics. Learn about schedules, rosters, scores, and Penn State Nittany Lion players at gopsusports.com.", "position": 19, "title": "Penn State football - Official Athletics Website - Penn State", "domain": "gopsusports.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://www.fifa.com/", "displayed_url": "https://www.fifa.com", "description": "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": 20, "title": "FIFA | The Home of Football", "domain": "www.fifa.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://www.olympics.com/en/sports/football/", "displayed_url": "https://www.olympics.com\u203a sports \u203a football", "description": "What is Football? Football is the most popular sport in the world and sees opposing teams of 11 players try to score goals primarily by use of the feet.", "position": 21, "title": "Football: Olympic history, rules, latest updates and ...", "domain": "www.olympics.com", "sitelinks": null, "rich_snippet": {}, "date": null, "date_utc": null}, {"url": "https://www.commanders.com/", "displayed_url": "https://www.commanders.com", "description": "Primary nav. TICKETS \u00b7 SEASON TICKETS \u00b7 NORTHWEST STADIUM \u00b7 SCHEDULE \u00b7 NEW STADIUM \u00b7 81 \u00b7 NEWS \u00b7 VIDEO \u00b7 ROSTER \u00b7 COMMUNITY \u00b7 DE&I \u00b7 PODCASTS \u00b7 PHOTOS\u00a0...", "position": 22, "title": "Official Site of the Washington Commanders", "domain": "www.commanders.com", "sitelinks": null, "rich_snippet": {}, "date": null}],"_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/9880/google+api/18594/google+search?search=football&add_html=false&country_code=us&device=desktop&language=us' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
谷歌搜索API返回多种数据类型,包括自然搜索结果、本地商家列表、新闻文章、图像、地图、常见问题和广告。每种类型都以JSON格式构建,便于集成和处理
响应数据中的关键字段包括标题 描述 URL 有机结果的域名 本地结果的评分和评论 新闻的发布日期和来源 以及图像的 URL 和标题 每个字段为用户提供了重要信息
响应数据以结构化的JSON格式组织,每种结果类型有明确的部分。例如,自然结果与本地结果分开分组,便于解析和利用特定数据类型
API 提供访问各种信息类型的功能,包括网站链接、本地商业细节、新闻文章、图像结果、地图、常见问题解答和广告。这种全面的覆盖使用户能够从单一来源收集多样的数据
用户可以使用搜索查询、地方结果的位置设置和特定内容类型(例如图片或新闻)的过滤器等参数自定义他们的数据请求 这些参数有助于根据特定需求调整搜索结果
数据准确性通过谷歌广泛的索引和排名算法得以保持,这些算法不断更新和验证信息。这确保返回的结果反映了最新和最相关的数据
典型的使用案例包括构建搜索引擎 进行市场研究 分析趋势 以及将搜索结果集成到应用程序中 结构化数据允许在各种环境中进行简单的操作和分析
用户可以通过解析JSON响应来提取相关字段,从而有效利用返回的数据,举例来说,他们可以在地图上展示当地商业信息或为仪表板汇总新闻文章
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%
响应时间:
0ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
194ms
服务级别:
100%
响应时间:
3,161ms
服务级别:
100%
响应时间:
1,567ms
服务级别:
100%
响应时间:
926ms
服务级别:
81%
响应时间:
1,855ms
服务级别:
100%
响应时间:
3,207ms
服务级别:
100%
响应时间:
1,465ms
服务级别:
100%
响应时间:
598ms
服务级别:
100%
响应时间:
183ms
服务级别:
100%
响应时间:
467ms
服务级别:
100%
响应时间:
658ms
服务级别:
100%
响应时间:
272ms
服务级别:
100%
响应时间:
433ms
服务级别:
100%
响应时间:
1,246ms
服务级别:
100%
响应时间:
7,060ms
服务级别:
100%
响应时间:
1,880ms
服务级别:
100%
响应时间:
113ms
服务级别:
100%
响应时间:
989ms