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
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/meta-ad-library.meta-ads.library.advertiserPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。