Search the Meta ad library by keyword
meta-ad-library.meta-ads.library.searchSearch publicly running Facebook and Instagram ads by keyword
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/meta-ad-library.meta-ads.library.searchPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
give it either search_terms or search_page_ids — a call with neither returns an error, not the whole library. ad_snapshot_url is the human-viewable render of the creative and needs the access token appended to load. Results are ads Meta has KEPT: commercial ads leave the library some time after they stop running, so this is a live-ish view, not an archive
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
after | 文字列 | 任意 | paging.cursors.after from the previous response | |
limit | 整数 | 任意 | page size; 25 by default, a few hundred is the practical ceiling before Meta starts timing out | 25 |
fields | 文字列 | 必須 | comma-separated; nothing but id comes back by default | id,page_id,page_name,ad_creative_bodies,ad_creative_link_titles,ad_creative_link_captions,ad_snapshot_url,ad_delivery_start_time,ad_delivery_stop_time,publisher_platforms,languages,estimated_audience_size |
ad_type | 文字列 | 任意 | ALL (default) | POLITICAL_AND_ISSUE_ADS | HOUSING_ADS | EMPLOYMENT_ADS | FINANCIAL_PRODUCTS_AND_SERVICES_ADS | ALL |
languages | 配列 | 任意 | ISO 639-1 codes (plus CMN, YUE) | ["en"] |
media_type | 文字列 | 任意 | ALL | IMAGE | MEME | VIDEO | NONE | VIDEO |
search_type | 文字列 | 任意 | KEYWORD_UNORDERED (default, all words in any order) | KEYWORD_EXACT_PHRASE | KEYWORD_UNORDERED |
search_terms | 文字列 | 任意 | max 100 characters; matched against the ad's text. Required in practice unless you filter by search_page_ids instead | project management software |
ad_active_status | 文字列 | 任意 | ACTIVE (default) | INACTIVE | ALL — ALL is what you want for creative research, since a competitor's best-performing ad may have finished | ALL |
publisher_platforms | 配列 | 任意 | FACEBOOK | INSTAGRAM | AUDIENCE_NETWORK | MESSENGER | WHATSAPP | OCULUS | THREADS | ["INSTAGRAM"] |
ad_delivery_date_max | 文字列 | 任意 | YYYY-MM-DD | |
ad_delivery_date_min | 文字列 | 任意 | YYYY-MM-DD; ads that were delivering on or after this date | 2026-06-01 |
ad_reached_countries | 配列 | 必須 | REQUIRED on every ads_archive call. JSON array of ISO country codes, URL-encoded — ["US"] — or ALL | ["US"] |
estimated_audience_size_min | 整数 | 任意 | one of the fixed buckets 100 | 1000 | 5000 | 10000 | 50000 | 100000 | 500000 | 1000000 | |
- クエリパラメータ
after文字列任意paging.cursors.after from the previous response
limit整数任意page size; 25 by default, a few hundred is the practical ceiling before Meta starts timing out
例:
25fields文字列必須comma-separated; nothing but id comes back by default
例:
id,page_id,page_name,ad_creative_bodies,ad_creative_link_titles,ad_creative_link_captions,ad_snapshot_url,ad_delivery_start_time,ad_delivery_stop_time,publisher_platforms,languages,estimated_audience_sizead_type文字列任意ALL (default) | POLITICAL_AND_ISSUE_ADS | HOUSING_ADS | EMPLOYMENT_ADS | FINANCIAL_PRODUCTS_AND_SERVICES_ADS
例:
ALLlanguages配列任意ISO 639-1 codes (plus CMN, YUE)
例:
["en"]media_type文字列任意ALL | IMAGE | MEME | VIDEO | NONE
例:
VIDEOsearch_type文字列任意KEYWORD_UNORDERED (default, all words in any order) | KEYWORD_EXACT_PHRASE
例:
KEYWORD_UNORDEREDsearch_terms文字列任意max 100 characters; matched against the ad's text. Required in practice unless you filter by search_page_ids instead
例:
project management softwaread_active_status文字列任意ACTIVE (default) | INACTIVE | ALL — ALL is what you want for creative research, since a competitor's best-performing ad may have finished
例:
ALLpublisher_platforms配列任意FACEBOOK | INSTAGRAM | AUDIENCE_NETWORK | MESSENGER | WHATSAPP | OCULUS | THREADS
例:
["INSTAGRAM"]ad_delivery_date_max文字列任意YYYY-MM-DD
ad_delivery_date_min文字列任意YYYY-MM-DD; ads that were delivering on or after this date
例:
2026-06-01ad_reached_countries配列必須REQUIRED on every ads_archive call. JSON array of ISO country codes, URL-encoded — ["US"] — or ALL
例:
["US"]estimated_audience_size_min整数任意one of the fixed buckets 100 | 1000 | 5000 | 10000 | 50000 | 100000 | 500000 | 1000000
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
curl -X GET 'https://toolswitch.dev/v1/tools/meta-ad-library.meta-ads.library.search' \
-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.search",
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.search", {
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 です。サービス料を含みます。