Search Facebook ad library ads by keyword
scrapecreators.x.v1-facebook-adlibrary-search-adsSearches the Meta Ad Library by keyword and returns matching ads.
- Price
- $0.00188/call제공업체 원가
- Success rate
- —성공률 데이터가 아직 없습니다성공률 데이터가 아직 없습니다
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-search-ads?query=runningPreview- Uses platform quota
- Synchronous response
- Reads public data
파라미터
sort_by is order-only: ranking by total_impressions does not mean the response carries verified spend or impression counts. Search may return a non-null collation_count that is null on scrapecreators.x.v1-facebook-adlibrary-ad detail for the same ad — grouping semantics differ between search and detail; do not treat collation_count as creative-variant or budget counts.
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 쿼리 파라미터 | ||||
trim | 불리언 | 선택 | Set to true for a trimmed down version of the response | false |
query | 문자열 | 필수 | Keyword to search for | running |
cursor | 문자열 | 선택 | Cursor to paginate through results | AQHRYLVDkoMkvGv7yK1rcce-vJmKiKv330R4v3j9KHSOaYvmF1bq1QkotG0rgW8Fkrj- |
status | 문자열 | 선택 | Status of the ad. Defaults to ACTIVE. | ACTIVE |
ad_type | 문자열 | 선택 | Search for all ads or only political and issue ads | all |
country | 문자열 | 선택 | This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL. | ALL |
sort_by | 문자열 | 선택 | Order only. One of: total_impressions | relevancy_monthly_grouped. Defaults to impressions ranking (total_impressions). Controls result ORDER, not verified performance — does not guarantee non-null spend, impressions_text, or a positive impressions_index. Those fields are often null / -1 for commercial ads and are not verified performance metrics. | total_impressions |
end_date | 문자열 | 선택 | Impressions end date. Needs to be in YYYY-MM-DD format. | 2025-02-16 |
media_type | 문자열 | 선택 | Media type of the ad. Defaults to ALL. Meme just means the ad has text and an image. No clue why they call it meme. | ALL |
start_date | 문자열 | 선택 | Impressions start date. Needs to be in YYYY-MM-DD format. | 2025-01-05 |
search_type | 문자열 | 선택 | If you want to search by exact phrase or not | keyword_unordered |
- 쿼리 파라미터
trim불리언선택Set to true for a trimmed down version of the response
예시:
falsequery문자열필수Keyword to search for
예시:
runningcursor문자열선택Cursor to paginate through results
예시:
AQHRYLVDkoMkvGv7yK1rcce-vJmKiKv330R4v3j9KHSOaYvmF1bq1QkotG0rgW8Fkrj-status문자열선택Status of the ad. Defaults to ACTIVE.
예시:
ACTIVEad_type문자열선택Search for all ads or only political and issue ads
예시:
allcountry문자열선택This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.
예시:
ALLsort_by문자열선택Order only. One of: total_impressions | relevancy_monthly_grouped. Defaults to impressions ranking (total_impressions). Controls result ORDER, not verified performance — does not guarantee non-null spend, impressions_text, or a positive impressions_index. Those fields are often null / -1 for commercial ads and are not verified performance metrics.
예시:
total_impressionsend_date문자열선택Impressions end date. Needs to be in YYYY-MM-DD format.
예시:
2025-02-16media_type문자열선택Media type of the ad. Defaults to ALL. Meme just means the ad has text and an image. No clue why they call it meme.
예시:
ALLstart_date문자열선택Impressions start date. Needs to be in YYYY-MM-DD format.
예시:
2025-01-05search_type문자열선택If you want to search by exact phrase or not
예시:
keyword_unordered
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-search-ads?query=running' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-search-ads?query=running",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-search-ads?query=running", {
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과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다. 호출 요금은 $0.00188/call이며 서비스 수수료가 포함되어 있습니다.