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/successAl precio del proveedor
- Success rate
- 76,5 %Last 30 days · 2446 calls
- Latency p50
- 4.3 sp95 39 s
- Last verified
- 29 sept 2026Verified 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
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
q | cadena | Obligatorio | Google Ads query, up to 2,048 characters with no control characters. | coffee maker |
hl | cadena | Opcional | Google interface and result language, such as en, en-US, or de. Defaults to en. | en |
nfpr | cadena | Opcional | Set 1 to disable Google spelling auto-correction, or 0 to allow it. | |
safe | cadena | Opcional | Google adult-content filtering: active or off. | |
device | cadena | Opcional | Google returns its real layout for the selected device: desktop, tablet, or mobile. | desktop |
timeout | número | Opcional | 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 | cadena | Obligatorio | Named location to search from, up to 512 characters and at most 63 bytes once URL-encoded. | Austin, Texas, United States |
- Parámetros de consulta
qcadenaObligatorioGoogle Ads query, up to 2,048 characters with no control characters.
Ejemplo:
coffee makerhlcadenaOpcionalGoogle interface and result language, such as en, en-US, or de. Defaults to en.
Ejemplo:
ennfprcadenaOpcionalSet 1 to disable Google spelling auto-correction, or 0 to allow it.
safecadenaOpcionalGoogle adult-content filtering: active or off.
devicecadenaOpcionalGoogle returns its real layout for the selected device: desktop, tablet, or mobile.
Ejemplo:
desktoptimeoutnúmeroOpcionalOptional 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.
locationcadenaObligatorioNamed location to search from, up to 512 characters and at most 63 bytes once URL-encoded.
Ejemplo:
Austin, Texas, United States
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.00015/success, incluida la tarifa de servicio.