快速入门
只需发起一次请求,即可获得完整解析后的 Google 搜索响应。无需解析 HTML,无需代理轮换,无需自己搭建重试逻辑。
-
获取你的 API 密钥
登录 shifter.io/panel,打开 SERP API → API Keys。复制一个有效的密钥。
-
运行一次 Google 搜索
Terminal window curl "https://serp.shifter.io/v1?engine=google&api_key=YOUR_API_KEY&q=residential+proxies"import requestsparams = {"engine": "google","api_key": "YOUR_API_KEY","q": "residential proxies",}r = requests.get("https://serp.shifter.io/v1", params=params)print(r.json()["organic_results"][:3])import fetch from 'node-fetch';const url = 'https://serp.shifter.io/v1?' + new URLSearchParams({engine: 'google',api_key: 'YOUR_API_KEY',q: 'residential proxies',});const data = await (await fetch(url)).json();console.log(data.organic_results.slice(0, 3)); -
本地化搜索结果
添加
location=参数,即可获取该地点用户所看到的结果。有关精确的地理位置定向,请参阅 Locations API。Terminal window curl "https://serp.shifter.io/v1?engine=google&api_key=YOUR_API_KEY&q=pizza&location=Chicago%2C+Illinois" -
切换搜索引擎
修改
engine参数即可定向到任何受支持的搜索平台,如google_maps、google_jobs、bing、yandex。完整列表请参见 Google、Bing、Yandex 和 Amazon。