Google 搜索 APIGoogle 搜索 APIGoogle 搜索

Google 搜索

抓取实时的 Google 搜索结果,并获取干净、结构化的 JSON 数据——包括自然搜索结果、广告、相关搜索、知识图谱等。

Actor

scraper.google.search

常用参数

input 对象中传递。完整列表请参阅 API 参数

参数是否必需描述
qtrue搜索查询词。支持高级运算符,如 inurl:site:intitle:
glfalse搜索的国家/地区双字母代码(例如 usukfr)。
hlfalse搜索的语言双字母代码(例如 enesfr)。
google_domainfalse使用的 Google 域名。默认为 google.com
locationfalse搜索的发起位置(建议使用城市级别)。
startfalse分页的结果偏移量(01020、…)。

请求示例

curl 'https://api.scrapeless.com/api/v1/scraper/request' \
--header 'x-api-token: {your_api_key}' \
--header 'Content-Type: application/json' \
--data '{
    "actor": "scraper.google.search",
    "input": {
        "q": "coffee",
        "hl": "en",
        "gl": "us",
        "google_domain": "google.com"
    }
}'