Domain Search API
按关键词搜索 Google Ads Transparency 域名。
接口地址
GET /api/v1/ads-statistics?action=domainSearch&keyword=ai请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
action | string | 是 | 固定值:domainSearch |
keyword | string | 是 | 搜索关键词 |
请求示例
GET /api/v1/ads-statistics?action=domainSearch&keyword=ai
Authorization: Bearer YOUR_API_KEY响应示例
{
"code": "ok",
"message": "ok",
"data": {
"endpoint": "ads-statistics",
"action": "domainSearch",
"costCredits": 1,
"remainingCredits": 99,
"query": {
"action": "domainSearch",
"keyword": "ai"
},
"result": [
{
"domain": "z.ai",
"host": "www.z.ai",
"id": 53293
}
]
}
}响应字段
| 字段 | 说明 |
|---|---|
data.endpoint | 固定值 ads-statistics |
data.action | 固定值 domainSearch |
data.costCredits | 本次请求消耗积分 |
data.remainingCredits | 扣费后的剩余积分 |
data.query.action | 规范化后的 action |
data.query.keyword | 规范化后的关键词 |
data.result[].domain | 根域名 |
data.result[].host | 匹配到的 host |
data.result[].id | 明文 host ID |