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/callPelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- 20 de out. de 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 | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
trim | booleano | Opcional | Set to true for a trimmed down version of the response | false |
cursor | string | Opcional | Cursor to paginate through results | AQHRBUAxNmFlxBVMFL6uTb1ICFsV65O4SqmPbcVZJhiveBpPS1hFHAmL6yCJcF760cXP |
pageId | string | 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 | string | Opcional | Status of the ad. Defaults to ACTIVE. | ACTIVE |
country | string | 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 | string | Opcional | Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions. | total_impressions |
end_date | string | Opcional | End date to search for. Format: YYYY-MM-DD | 2025-12-31 |
language | string | Opcional | Language to filter ads on. Needs to be 2 letter language code, ie EN, ES, FR, etc | EN |
media_type | string | 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 | string | Opcional | Start date to search for. Format: YYYY-MM-DD | 2025-01-01 |
companyName | string | 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
Exemplo:
falsecursorstringOpcionalCursor to paginate through results
Exemplo:
AQHRBUAxNmFlxBVMFL6uTb1ICFsV65O4SqmPbcVZJhiveBpPS1hFHAmL6yCJcF760cXPpageIdstringOpcionalThe companies ad library page id. You can get this with my Search For Companies Endpoint. Can either use this or companyName
Exemplo:
367152833370567statusstringOpcionalStatus of the ad. Defaults to ACTIVE.
Exemplo:
ACTIVEcountrystringOpcionalThis can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.
Exemplo:
ALLsort_bystringOpcionalSort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions.
Exemplo:
total_impressionsend_datestringOpcionalEnd date to search for. Format: YYYY-MM-DD
Exemplo:
2025-12-31languagestringOpcionalLanguage to filter ads on. Needs to be 2 letter language code, ie EN, ES, FR, etc
Exemplo:
ENmedia_typestringOpcionalMedia type of the ad. Defaults to ALL. Meme refers to ads with image and text. Not sure why they call it meme.
Exemplo:
ALLstart_datestringOpcionalStart date to search for. Format: YYYY-MM-DD
Exemplo:
2025-01-01companyNamestringOpcionalThe name of the company. Can either use this or pageId
Exemplo:
Lululemon
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no 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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.00188/call, incluindo a taxa de serviço.