Facebook ad library company ads by page id or name
scrapecreators.x.v1-facebook-adlibrary-company-adsFetches all ads currently running for a specific company from the Meta Ad Library.
- Price
- $0.00188/callAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
- Latency p50
- ——
- Last verified
- 20 oct. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-company-ads?pageId=367152833370567Preview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
trim | booléen | Facultatif | Set to true for a trimmed down version of the response | false |
cursor | chaîne | Facultatif | Cursor to paginate through results | AQHRBUAxNmFlxBVMFL6uTb1ICFsV65O4SqmPbcVZJhiveBpPS1hFHAmL6yCJcF760cXP |
pageId | chaîne | Facultatif | The companies ad library page id. You can get this with my Search For Companies Endpoint. Can either use this or companyName | 367152833370567 |
status | chaîne | Facultatif | Status of the ad. Defaults to ACTIVE. | ACTIVE |
country | chaîne | Facultatif | This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL. | ALL |
sort_by | chaîne | Facultatif | Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions. | total_impressions |
end_date | chaîne | Facultatif | End date to search for. Format: YYYY-MM-DD | 2025-12-31 |
language | chaîne | Facultatif | Language to filter ads on. Needs to be 2 letter language code, ie EN, ES, FR, etc | EN |
media_type | chaîne | Facultatif | Media type of the ad. Defaults to ALL. Meme refers to ads with image and text. Not sure why they call it meme. | ALL |
start_date | chaîne | Facultatif | Start date to search for. Format: YYYY-MM-DD | 2025-01-01 |
companyName | chaîne | Facultatif | The name of the company. Can either use this or pageId | Lululemon |
- Paramètres de requête
trimbooléenFacultatifSet to true for a trimmed down version of the response
Exemple :
falsecursorchaîneFacultatifCursor to paginate through results
Exemple :
AQHRBUAxNmFlxBVMFL6uTb1ICFsV65O4SqmPbcVZJhiveBpPS1hFHAmL6yCJcF760cXPpageIdchaîneFacultatifThe companies ad library page id. You can get this with my Search For Companies Endpoint. Can either use this or companyName
Exemple :
367152833370567statuschaîneFacultatifStatus of the ad. Defaults to ACTIVE.
Exemple :
ACTIVEcountrychaîneFacultatifThis can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.
Exemple :
ALLsort_bychaîneFacultatifSort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions.
Exemple :
total_impressionsend_datechaîneFacultatifEnd date to search for. Format: YYYY-MM-DD
Exemple :
2025-12-31languagechaîneFacultatifLanguage to filter ads on. Needs to be 2 letter language code, ie EN, ES, FR, etc
Exemple :
ENmedia_typechaîneFacultatifMedia type of the ad. Defaults to ALL. Meme refers to ads with image and text. Not sure why they call it meme.
Exemple :
ALLstart_datechaîneFacultatifStart date to search for. Format: YYYY-MM-DD
Exemple :
2025-01-01companyNamechaîneFacultatifThe name of the company. Can either use this or pageId
Exemple :
Lululemon
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-company-ads?pageId=367152833370567' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-company-ads?pageId=367152833370567",
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-company-ads?pageId=367152833370567", {
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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.00188/call, frais de service inclus.