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/resultZum Anbieterpreis
- 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
Parameter
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.
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Abfrageparameter | ||||
domain | Zeichenkette | Erforderlich | the advertiser's root domain | spyfu.com |
sortBy | Zeichenkette | Optional | Best (default) | Worst | KeywordAsc | KeywordDesc | SearchDateId | |
pageSize | Ganzzahl | Optional | 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 | Zeichenkette | Optional | default US | US |
startingRow | Ganzzahl | Optional | 1-based; default 1 | |
keywordFilter | Zeichenkette | Optional | restrict to ads that ran on keywords matching this | |
- Abfrageparameter
domainZeichenketteErforderlichthe advertiser's root domain
Beispiel:
spyfu.comsortByZeichenketteOptionalBest (default) | Worst | KeywordAsc | KeywordDesc | SearchDateId
pageSizeGanzzahlOptionalCOST DIAL — 1 to 10,000, DEFAULT 5. This is the most expensive family in the file at $3.00 per 1,000 rows
Beispiel:
10countryCodeZeichenketteOptionaldefault US
Beispiel:
USstartingRowGanzzahlOptional1-based; default 1
keywordFilterZeichenketteOptionalrestrict to ads that ran on keywords matching this
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
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());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit $0.003/result einschließlich Servicegebühr abgerechnet.