API · Facebook
GET /facebook/ads/company
Every ad of one advertiser (Facebook Page) in the Meta Ad Library, 30 a page, filterable.
| Request | GET /v1/facebook/ads/company |
| Operation id | facebook.ads.company |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Every ad of one advertiser (Facebook Page) in the Meta Ad Library, 30 a page, filterable.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
page | string | no | Page id, Page URL or vanity name. Example: 15087023444. |
company_name | string | no | Advertiser name, when you don’t have the Page. Example: Nike. |
country | string | no | ISO 3166-1 alpha-2 country the ads reached (US, GB, DE…), or ALL (default). |
status | "active" | "inactive" | "all" | no | active (default), inactive, or all. One of active, inactive, all. |
media_type | "all" | "image" | "video" | "meme" | "image_and_meme" | "none" | no | all (default), image, video, meme (image with text), image_and_meme, none (text only). One of all, image, video, meme, image_and_meme, none. |
ad_type | "all" | "political_and_issue_ads" | "housing" | "employment" | "credit" | "financial" | no | all (default), or one of Meta’s special ad categories: political_and_issue_ads, housing, employment, credit, financial. One of all, political_and_issue_ads, housing, employment, credit, financial. |
sort_by | "total_impressions" | "relevancy_monthly_grouped" | "total_active_time" | no | total_impressions (default, high to low), relevancy_monthly_grouped (most recent), or total_active_time (longest-running first, within each page of 30). One of total_impressions, relevancy_monthly_grouped, total_active_time. |
language | string | no | Comma-separated ISO 639-1 languages of the ad text (en,es). |
publisher_platforms | string | no | Comma-separated placements: facebook, instagram, audience_network, messenger, whatsapp, threads, oculus. |
start_date | string | no | YYYY-MM-DD: only ads delivered on or after this day. |
end_date | string | no | YYYY-MM-DD: only ads delivered on or before this day. |
after | string | no | The previous page’s page_info.end_cursor; keep the other filters the same. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of the advertiser’s ads, with the next cursor. | FacebookAdsPage |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The ad, Page or advertiser is not in the Meta Ad Library. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Facebook is temporarily unavailable. Retryable; nothing was charged. | Error |
FacebookAdsPage fields
| Field | Type | Description |
|---|---|---|
ads | FacebookAd[] | |
count | integer | null | Meta’s estimate of how many ads match, on the first page (null on later pages). Meta caps it at 50,001. |
page_info | object |
Errors use one shape everywhere; see Errors for every code and what to do.