Ads a Facebook Page runs, by Page id — Meta ad library
meta-ad-library.meta-ads.library.advertiserList every ad a specific Facebook Page is currently running
- 价格
- free按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/meta-ad-library.meta-ads.library.advertiser预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
the competitor-monitoring shape: pin the advertiser, page through everything they run. One Page can run hundreds of near-identical creative variants, so count DISTINCT ad_creative_bodies rather than rows when sizing a competitor's output
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
after | 字符串 | 可选 | ||
limit | 整数 | 可选 | 50 | |
fields | 字符串 | 必填 | id,page_id,page_name,ad_creative_bodies,ad_creative_link_titles,ad_snapshot_url,ad_delivery_start_time,ad_delivery_stop_time,publisher_platforms,media_type | |
search_page_ids | 数组 | 必填 | JSON array of up to 10 numeric Facebook Page ids. You need the id, not the vanity handle — get it from a keyword search's page_id, or from the Page's About section | ["20531316728"] |
ad_active_status | 字符串 | 可选 | ACTIVE (default) | INACTIVE | ALL | ACTIVE |
ad_delivery_date_min | 字符串 | 可选 | YYYY-MM-DD | |
ad_reached_countries | 数组 | 必填 | ["US"] | |
- 查询参数
after字符串可选limit整数可选示例:
50fields字符串必填示例:
id,page_id,page_name,ad_creative_bodies,ad_creative_link_titles,ad_snapshot_url,ad_delivery_start_time,ad_delivery_stop_time,publisher_platforms,media_typesearch_page_ids数组必填JSON array of up to 10 numeric Facebook Page ids. You need the id, not the vanity handle — get it from a keyword search's page_id, or from the Page's About section
示例:
["20531316728"]ad_active_status字符串可选ACTIVE (default) | INACTIVE | ALL
示例:
ACTIVEad_delivery_date_min字符串可选YYYY-MM-DD
ad_reached_countries数组必填示例:
["US"]
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/meta-ad-library.meta-ads.library.advertiser' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/meta-ad-library.meta-ads.library.advertiser",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/meta-ad-library.meta-ads.library.advertiser", {
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。