クイックスタート
一度のリクエストで、完全にパース済みの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 をご覧ください。