Find Google Search ads
litescrape.google.serp.adsReturns the Google results page for a query at a named location, including the ads, local_ads, and shopping_results groups when Google serves them
- Price
- $0.00015/successプロバイダー原価
- Success rate
- 76.5%Last 30 days · 2,446 calls
- Latency p50
- 4.3 sp95 39 s
- Last verified
- 2026/09/29Verified working
GEThttps://toolswitch.dev/v1/tools/litescrape.google.serp.ads?q=running+shoes&location=Austin%2C+Texas%2C+United+StatesPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
q | 文字列 | 必須 | Google Ads query, up to 2,048 characters with no control characters. | coffee maker |
hl | 文字列 | 任意 | Google interface and result language, such as en, en-US, or de. Defaults to en. | en |
nfpr | 文字列 | 任意 | Set 1 to disable Google spelling auto-correction, or 0 to allow it. | |
safe | 文字列 | 任意 | Google adult-content filtering: active or off. | |
device | 文字列 | 任意 | Google returns its real layout for the selected device: desktop, tablet, or mobile. | desktop |
timeout | 数値 | 任意 | Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline. | |
location | 文字列 | 必須 | Named location to search from, up to 512 characters and at most 63 bytes once URL-encoded. | Austin, Texas, United States |
- クエリパラメータ
q文字列必須Google Ads query, up to 2,048 characters with no control characters.
例:
coffee makerhl文字列任意Google interface and result language, such as en, en-US, or de. Defaults to en.
例:
ennfpr文字列任意Set 1 to disable Google spelling auto-correction, or 0 to allow it.
safe文字列任意Google adult-content filtering: active or off.
device文字列任意Google returns its real layout for the selected device: desktop, tablet, or mobile.
例:
desktoptimeout数値任意Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.
location文字列必須Named location to search from, up to 512 characters and at most 63 bytes once URL-encoded.
例:
Austin, Texas, United States
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
curl -X GET 'https://toolswitch.dev/v1/tools/litescrape.google.serp.ads?q=running+shoes&location=Austin%2C+Texas%2C+United+States' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/litescrape.google.serp.ads?q=running+shoes&location=Austin%2C+Texas%2C+United+States",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/litescrape.google.serp.ads?q=running+shoes&location=Austin%2C+Texas%2C+United+States", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.00015/success です。サービス料を含みます。