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
- 价格
- $0.003/result按供应商原价
- 成功率
- 100%近 30 天 · 1,949 次
- 延迟 p50
- 198 毫秒p95 2.6 秒
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/spyfu.google.domain.ad_history预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
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.
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
domain | 字符串 | 必填 | the advertiser's root domain | spyfu.com |
sortBy | 字符串 | 可选 | Best (default) | Worst | KeywordAsc | KeywordDesc | SearchDateId | |
pageSize | 整数 | 可选 | 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 | 字符串 | 可选 | default US | US |
startingRow | 整数 | 可选 | 1-based; default 1 | |
keywordFilter | 字符串 | 可选 | restrict to ads that ran on keywords matching this | |
- 查询参数
domain字符串必填the advertiser's root domain
示例:
spyfu.comsortBy字符串可选Best (default) | Worst | KeywordAsc | KeywordDesc | SearchDateId
pageSize整数可选COST DIAL — 1 to 10,000, DEFAULT 5. This is the most expensive family in the file at $3.00 per 1,000 rows
示例:
10countryCode字符串可选default US
示例:
USstartingRow整数可选1-based; default 1
keywordFilter字符串可选restrict to ads that ran on keywords matching this
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.003/result 计费,已含服务费。