所有网站
Google Data API 总览
以结构化 JSON 从 Google 提取网页搜索、新闻、专利、学术、趋势等。在下方选择一个端点,查看其参数,然后在控制台演练场中运行。
/v1/google/… 打开演练场主要功能
结构化 JSON
网页搜索、新闻、专利、学术、趋势等的干净、规范化记录。你无需自己解析 HTML。
57 个端点
覆盖 17 个分类,全部位于同一个基础路径下。
反机器人已处理
速率限制, recaptcha已在后台为你处理。
每次运行都是实时数据
每个请求都实时抓取数据源,结果始终是最新的。
地区与语言
使用以下参数定位特定市场和语言:
gl默认 ushl默认 endomainregion默认 anywherelangmarket默认 indexes· indexes, gainers, losers, most-active, climate-leaders, cryptocurrenciescountrygeo默认 US分页
使用 page, start 翻页浏览结果。
快速开始
使用你专属的 Data API 密钥。请遵循此端点的请求方法和参数。
# Install: pip install requests
import json
import os
import requests
params = json.loads("{\"query\":\"best coffee makers\",\"gl\":\"us\",\"hl\":\"en\",\"google_domain\":\"google.com\",\"location\":\"Richmond, VA\",\"num\":10,\"device\":\"desktop\",\"page\":1,\"output\":\"json\"}")
response = requests.request(
"GET", "https://api.capzy.ai/v1/google/search",
headers={"X-API-Key": os.environ["CAPZY_DATA_API_KEY"]},
params=params,
timeout=120,
)
response.raise_for_status()
print(response.json())按次计费
失败的请求免费| 端点 | 分类 | 价格 / 千条结果 |
|---|---|---|
/v1/data/google/ads即将推出Ads | Ads | 1 额度 / 次 |
/v1/data/google/ads/transparencyAds Transparency | Ads | 1 额度 / 次 |
/v1/data/google/ai-mode/search即将推出AI Mode | Web | 1 额度 / 次 |
/v1/data/google/autocompleteAutocomplete | Web | 1 额度 / 次 |
/v1/data/google/images/search即将推出Image Search | Web | 1 额度 / 次 |
/v1/data/google/lens/search即将推出Lens Search | Web | 1 额度 / 次 |
/v1/data/google/search即将推出Web Search | Web | 1 额度 / 次 |
/v1/data/google/videos/search即将推出Video Search | Web | 1 额度 / 次 |
/v1/data/google/books/volume即将推出Book Detail | Books | 1 额度 / 次 |
/v1/data/google/books/search即将推出Books Search | Books | 1 额度 / 次 |
/v1/data/google/events即将推出Events | Search | 1 额度 / 次 |
/v1/data/google/forums即将推出Forums | Search | 1 额度 / 次 |
/v1/data/google/related_questions即将推出Related Questions | Search | 1 额度 / 次 |
/v1/data/google/reverse_image即将推出Reverse Image Search | Search | 1 额度 / 次 |
/v1/data/google/sports即将推出Sports | Search | 1 额度 / 次 |
/v1/data/google/finance/quoteFinance Quote | Finance | 1 额度 / 次 |
/v1/data/google/finance/marketsFinance Markets | Finance | 1 额度 / 次 |
/v1/data/google/flightsFlights | Travel | 1 额度 / 次 |
/v1/data/google/flights/dealsFlights Deals | Travel | 1 额度 / 次 |
/v1/data/google/hotels/photosHotels Photos | Travel | 1 额度 / 次 |
/v1/data/google/hotels/reviewsHotels Reviews | Travel | 1 额度 / 次 |
/v1/data/google/travel/explore即将推出Travel Explore | Travel | 1 额度 / 次 |
/v1/data/google/hotels/detailsHotel Details | Hotels | 1 额度 / 次 |
/v1/data/google/hotels/searchHotels Search | Hotels | 1 额度 / 次 |
/v1/data/google/immersive_product即将推出Immersive Product | Shopping | 1 额度 / 次 |
/v1/data/google/shopping/product/click即将推出Merchant URL | Shopping | 1 额度 / 次 |
/v1/data/google/shopping/offers即将推出Barcode Offers | Shopping | 1 额度 / 次 |
/v1/data/google/shopping/product即将推出Shopping Product | Shopping | 1 额度 / 次 |
/v1/data/google/shopping/search即将推出Shopping Search | Shopping | 1 额度 / 次 |
/v1/data/google/jobs/search即将推出Jobs Search | Jobs | 1 额度 / 次 |
/v1/data/google/local即将推出Local Results | Local | 1 额度 / 次 |
/v1/data/google/local_services即将推出Local Services | Local | 1 额度 / 次 |
/v1/data/google/maps/autocompleteMaps Autocomplete | Maps | 1 额度 / 次 |
/v1/data/google/maps/contributor_reviews即将推出Contributor Reviews | Maps | 1 额度 / 次 |
/v1/data/google/maps/directionsMaps Directions | Maps | 1 额度 / 次 |
/v1/data/google/maps/photosPlace Photos | Maps | 1 额度 / 次 |
/v1/data/google/maps/placePlace Details | Maps | 1 额度 / 次 |
/v1/data/google/maps/posts即将推出Business Posts | Maps | 1 额度 / 次 |
/v1/data/google/maps/reviews即将推出Place Reviews | Maps | 1 额度 / 次 |
/v1/data/google/maps/searchMaps Search | Maps | 1 额度 / 次 |
/v1/data/google/news/searchNews | News | 1 额度 / 次 |
/v1/data/google/news/topicsNews Topics | News | 1 额度 / 次 |
/v1/data/google/news/trendingNews Trending | News | 1 额度 / 次 |
/v1/data/google/patents/detailPatent Detail | Patents | 1 额度 / 次 |
/v1/data/google/patents/searchPatents Search | Patents | 1 额度 / 次 |
/v1/data/google/play/appPlay App Detail | Play Store | 1 额度 / 次 |
/v1/data/google/play/booksPlay Books Search | Play Store | 1 额度 / 次 |
/v1/data/google/play/gamesPlay Games | Play Store | 1 额度 / 次 |
/v1/data/google/play/moviesPlay Movies Search | Play Store | 1 额度 / 次 |
/v1/data/google/play/searchPlay App Search | Play Store | 1 额度 / 次 |
/v1/data/google/scholar/searchScholar Search | Scholar | 1 额度 / 次 |
/v1/data/google/scholar/authorScholar Author | Scholar | 1 额度 / 次 |
/v1/data/google/scholar/case-lawScholar Case Law | Scholar | 1 额度 / 次 |
/v1/data/google/short_videos即将推出Short Videos | Media | 1 额度 / 次 |
/v1/data/google/trends/trending_nowTrending Now | Trends | 1 额度 / 次 |
/v1/data/google/trends/searchTrends | Trends | 1 额度 / 次 |
/v1/data/google/trends/autocompleteTrends Autocomplete | Trends | 1 额度 / 次 |