Google Ads history by domain — ad copy and keywords
spyfu.google.domain.ad_historyGoogle Ads a domain has run over time, with ad copy and the keywords it ran against
- Price
- $0.003/resultAl precio del proveedor
- Success rate
- 100 %Last 30 days · 1949 calls
- Latency p50
- 198 msp95 2.6 s
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/spyfu.google.domain.ad_historyPreview- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
The path segment is `cloud_ad_history_api`, NOT `ad_history_api` — the reference slug and the URL disagree. Siblings in the same family: getDomainAdHistoryByDate, getTermAdHistory, getTermAdHistoryWithStats. For the ads a domain is running RIGHT NOW rather than historically, use `/apis/serp_api/v2/ppc/getPaidSerps` (`query` required), which is on the $2.00 PPC CPM.
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
domain | cadena | Obligatorio | the advertiser's root domain | spyfu.com |
sortBy | cadena | Opcional | Best (default) | Worst | KeywordAsc | KeywordDesc | SearchDateId | |
pageSize | entero | Opcional | COST DIAL — 1 to 10,000, DEFAULT 5. This is the most expensive family in the file at $3.00 per 1,000 rows | 10 |
countryCode | cadena | Opcional | default US | US |
startingRow | entero | Opcional | 1-based; default 1 | |
keywordFilter | cadena | Opcional | restrict to ads that ran on keywords matching this | |
- Parámetros de consulta
domaincadenaObligatoriothe advertiser's root domain
Ejemplo:
spyfu.comsortBycadenaOpcionalBest (default) | Worst | KeywordAsc | KeywordDesc | SearchDateId
pageSizeenteroOpcionalCOST DIAL — 1 to 10,000, DEFAULT 5. This is the most expensive family in the file at $3.00 per 1,000 rows
Ejemplo:
10countryCodecadenaOpcionaldefault US
Ejemplo:
USstartingRowenteroOpcional1-based; default 1
keywordFiltercadenaOpcionalrestrict to ads that ran on keywords matching this
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
curl -X GET 'https://toolswitch.dev/v1/tools/spyfu.google.domain.ad_history' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/spyfu.google.domain.ad_history",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/spyfu.google.domain.ad_history", {
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.003/result, incluida la tarifa de servicio.