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/resultAt provider cost
- 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
Parameters
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 | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
domain | string | Required | the advertiser's root domain | spyfu.com |
sortBy | string | Optional | Best (default) | Worst | KeywordAsc | KeywordDesc | SearchDateId | |
pageSize | integer | 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 | string | Optional | default US | US |
startingRow | integer | Optional | 1-based; default 1 | |
keywordFilter | string | Optional | restrict to ads that ran on keywords matching this | |
- Query parameters
domainstringRequiredthe advertiser's root domain
Example:
spyfu.comsortBystringOptionalBest (default) | Worst | KeywordAsc | KeywordDesc | SearchDateId
pageSizeintegerOptionalCOST DIAL — 1 to 10,000, DEFAULT 5. This is the most expensive family in the file at $3.00 per 1,000 rows
Example:
10countryCodestringOptionaldefault US
Example:
USstartingRowintegerOptional1-based; default 1
keywordFilterstringOptionalrestrict to ads that ran on keywords matching this
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the 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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.003/result, including the service fee.