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/resultPelo preço do provedor
- Success rate
- 100%Last 30 days · 1.949 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 | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
domain | string | Obrigatório | the advertiser's root domain | spyfu.com |
sortBy | string | Opcional | Best (default) | Worst | KeywordAsc | KeywordDesc | SearchDateId | |
pageSize | inteiro | 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 | string | Opcional | default US | US |
startingRow | inteiro | Opcional | 1-based; default 1 | |
keywordFilter | string | Opcional | restrict to ads that ran on keywords matching this | |
- Parâmetros de consulta
domainstringObrigatóriothe advertiser's root domain
Exemplo:
spyfu.comsortBystringOpcionalBest (default) | Worst | KeywordAsc | KeywordDesc | SearchDateId
pageSizeinteiroOpcionalCOST DIAL — 1 to 10,000, DEFAULT 5. This is the most expensive family in the file at $3.00 per 1,000 rows
Exemplo:
10countryCodestringOpcionaldefault US
Exemplo:
USstartingRowinteiroOpcional1-based; default 1
keywordFilterstringOpcionalrestrict to ads that ran on keywords matching this
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.003/result, incluindo a taxa de serviço.