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/callAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- 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
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
trim | booleano | Opcional | Set to true for a trimmed down version of the response | false |
cursor | cadena | Opcional | Cursor to paginate through results | AQHRBUAxNmFlxBVMFL6uTb1ICFsV65O4SqmPbcVZJhiveBpPS1hFHAmL6yCJcF760cXP |
pageId | cadena | Opcional | The companies ad library page id. You can get this with my Search For Companies Endpoint. Can either use this or companyName | 367152833370567 |
status | cadena | Opcional | Status of the ad. Defaults to ACTIVE. | ACTIVE |
country | cadena | Opcional | This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL. | ALL |
sort_by | cadena | Opcional | Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions. | total_impressions |
end_date | cadena | Opcional | End date to search for. Format: YYYY-MM-DD | 2025-12-31 |
language | cadena | Opcional | Language to filter ads on. Needs to be 2 letter language code, ie EN, ES, FR, etc | EN |
media_type | cadena | Opcional | 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 | cadena | Opcional | Start date to search for. Format: YYYY-MM-DD | 2025-01-01 |
companyName | cadena | Opcional | The name of the company. Can either use this or pageId | Lululemon |
- Parámetros de consulta
trimbooleanoOpcionalSet to true for a trimmed down version of the response
Ejemplo:
falsecursorcadenaOpcionalCursor to paginate through results
Ejemplo:
AQHRBUAxNmFlxBVMFL6uTb1ICFsV65O4SqmPbcVZJhiveBpPS1hFHAmL6yCJcF760cXPpageIdcadenaOpcionalThe companies ad library page id. You can get this with my Search For Companies Endpoint. Can either use this or companyName
Ejemplo:
367152833370567statuscadenaOpcionalStatus of the ad. Defaults to ACTIVE.
Ejemplo:
ACTIVEcountrycadenaOpcionalThis can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.
Ejemplo:
ALLsort_bycadenaOpcionalSort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions.
Ejemplo:
total_impressionsend_datecadenaOpcionalEnd date to search for. Format: YYYY-MM-DD
Ejemplo:
2025-12-31languagecadenaOpcionalLanguage to filter ads on. Needs to be 2 letter language code, ie EN, ES, FR, etc
Ejemplo:
ENmedia_typecadenaOpcionalMedia type of the ad. Defaults to ALL. Meme refers to ads with image and text. Not sure why they call it meme.
Ejemplo:
ALLstart_datecadenaOpcionalStart date to search for. Format: YYYY-MM-DD
Ejemplo:
2025-01-01companyNamecadenaOpcionalThe name of the company. Can either use this or pageId
Ejemplo:
Lululemon
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.00188/call, incluida la tarifa de servicio.