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/resultAu prix du fournisseur
- 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
Paramètres
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.
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
domain | chaîne | Obligatoire | the advertiser's root domain | spyfu.com |
sortBy | chaîne | Facultatif | Best (default) | Worst | KeywordAsc | KeywordDesc | SearchDateId | |
pageSize | entier | Facultatif | 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 | chaîne | Facultatif | default US | US |
startingRow | entier | Facultatif | 1-based; default 1 | |
keywordFilter | chaîne | Facultatif | restrict to ads that ran on keywords matching this | |
- Paramètres de requête
domainchaîneObligatoirethe advertiser's root domain
Exemple :
spyfu.comsortBychaîneFacultatifBest (default) | Worst | KeywordAsc | KeywordDesc | SearchDateId
pageSizeentierFacultatifCOST DIAL — 1 to 10,000, DEFAULT 5. This is the most expensive family in the file at $3.00 per 1,000 rows
Exemple :
10countryCodechaîneFacultatifdefault US
Exemple :
USstartingRowentierFacultatif1-based; default 1
keywordFilterchaîneFacultatifrestrict to ads that ran on keywords matching this
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.003/result, frais de service inclus.