# Facebook Adlibrary Company Ads API (https://www.socialcrawl.dev/platforms/facebook/adlibrary-company-ads) > Returns ads from one company or page in the Facebook Ad Library, ordered by impressions or recency depending on `sort_by`. Same per-ad shape as `/v1/facebook/adlibrary/ad`: video creatives in `content.media_urls` and `content.thumbnail_url`, every ad signal on the `post.ext.ad` envelope (CTA, `link_url`, active status, dates, display format, headline, video URLs, plus the advertiser's `page_profile_uri`, `page_like_count` and `page_categories`). **`spend` and `reach_estimate` are populated for POLITICAL and issue ads only** and read null on commercial advertisers. `engagement.views` carries Facebook's audience REACH ESTIMATE, not a view count (an ad has no public view count); it is null on commercial advertisers and the same figure rides `post.ext.ad.reach_estimate` under its real name. `published_at` is the ad's first-run DATE: the `07:00:00Z` clock component is an artefact of Facebook's US Pacific day boundary and carries no sub-day meaning. `post.author.username` is null by design (an Ad Library record carries the page name, not its handle). A plain row carries no audience breakdown. Send `include=audience` and every ad is joined, in the same call, to the per-ad lookup: on an ad that ran in the EU, `post.ext.ad.eu_total_reach` is the total EU reach, `post.ext.ad.eu_reach_breakdown` lists each EU country with that reach split into age bands (18-24 to 65+) by `male`, `female` and `unknown`, and `target_ages`, `target_gender` and `target_locations` are who the advertiser targeted. These are counts Facebook publishes under EU transparency rules, so an ad that never ran in the EU has none of them and its row is refunded. Cost: 5 credits for the page plus 1 credit per ad filled from a fresh lookup (30 ads a page, so 35 credits at most); rows already in cache are free, rows that could not be filled are refunded, and a repeat of the same call within the cache window is 0 credits. Time: `include=audience` adds 3 to 6 seconds on a fresh page (the lookups run in parallel and the call waits for the slowest, never more than 12 seconds). The response carries a `hydration` block itemising rows, lookups, cache hits, credits and milliseconds. TL;DR: `GET /v1/facebook/adlibrary/company/ads` costs 5 credits for the page. include=audience holds 1 credit per ad (30 a page) and keeps only the rows filled from a fresh lookup, so a page is at most 35 credits; rows served from cache are free, ads that never ran in the EU and other unfilled rows are refunded, and a repeat of the same call within the cache window costs 0. and returns SocialCrawl's unified JSON schema. Single x-api-key auth, 100 free credits on signup. ## Parameters | Parameter | Required | Description | | --- | --- | --- | | `pageId` | no | Facebook page ID of the advertiser | | `companyName` | no | The name of the company. Can either use this or pageId | | `country` | no | This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL. | | `status` | no | Status of the ad. Defaults to ACTIVE. (ALL \| ACTIVE \| INACTIVE) | | `media_type` | no | Media type of the ad. Defaults to ALL. Meme refers to ads with image and text. Not sure why they call it meme. (ALL \| IMAGE \| VIDEO \| MEME \| IMAGE_AND_MEME \| NONE) | | `language` | no | Language to filter ads on. Needs to be 2 letter language code, ie EN, ES, FR, etc | | `sort_by` | no | Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions. (total_impressions \| relevancy_monthly_grouped) | | `start_date` | no | Start date to search for. Format: YYYY-MM-DD | | `end_date` | no | End date to search for. Format: YYYY-MM-DD | | `cursor` | no | Cursor to paginate through results | | `trim` | no | Set to true for a trimmed down version of the response | | `include` | no | Set to `audience` (one token only) to fill, on every ad that ran in the EU, `post.ext.ad.eu_total_reach`, `post.ext.ad.eu_reach_breakdown` (reach per EU country by age band and gender), `post.ext.ad.targets_eu`, `target_ages`, `target_gender` and `target_locations`. Holds 1 credit per ad (30 a page) and keeps only the rows filled from a fresh lookup; rows already in cache, ads that never ran in the EU and rows the lookup cannot fill are refunded, so a page is never more than 35 credits. The join takes 3 to 6 seconds on a fresh page, never more than 12 seconds a row, and nothing when the rows are already cached; read `data.hydration` for the rows, the credits held and kept, and the time. Without it the call is unchanged. (audience) | | `since` | no | Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Rows older than it are left off each page. This list is not in date order, so the walk does not stop at the date: keep following `next_cursor`, and each page costs what a page costs even when every row on it is filtered out. A row with no date is kept. `published_after`, `start_date`, `from_date`, `publish_time` (`yesterday`, `this-week`, `this-month`, `last-3-months`, `last-6-months`) and `max_age_days` are accepted and applied as `since`. | | `until` | no | Only rows published on or before this date: YYYY-MM-DD (that whole UTC day is included) or an ISO 8601 timestamp. Newer rows are left off each page and the walk does not stop, so older pages follow. A row with no date is kept. `published_before`, `end_date` and `to_date` are accepted and applied as `until`. | ## Code example ```bash curl -G "https://www.socialcrawl.dev/v1/facebook/adlibrary/company/ads" \ --data-urlencode "companyName=Lululemon" \ -H "x-api-key: sc_YOUR_API_KEY" ``` ## FAQ ### How do I list all ads from a Facebook advertiser? Send a GET request to /v1/facebook/adlibrary/company/ads with either pageId or companyName. SocialCrawl returns every ad the advertiser has ever run, with creative, status, spend range, and impressions metadata. ### What filters can I apply to narrow results? Filter by country (2-letter code), status (ACTIVE/INACTIVE/ALL), media_type (IMAGE/VIDEO/MEME), language, date range (start_date, end_date), and sort_by (total_impressions or relevancy_monthly_grouped). ### How much does listing competitor ads cost? Each request costs 5 credits on the advanced tier and returns a batch of ads with pagination. Trim responses with trim=true to save on payload size. New accounts get 100 free credits, no credit card required to start. ### Can I track a competitor's ad strategy over time? Yes. Pair start_date and end_date with sort_by=relevancy_monthly_grouped to see how a competitor's ad spend and creative strategy have shifted month by month. Perfect for competitive intelligence dashboards. ### Does it work for SMB advertisers or just big brands? Both. The Facebook Ad Library includes every advertiser that has ever run ads on Meta platforms, from solo founders to Fortune 500 brands. If they've run an ad, you can pull it via pageId or companyName. See the full Facebook API: https://www.socialcrawl.dev/platforms/facebook ## Pricing - Standard endpoints: 1 credit per call - Advanced endpoints: 5 credits per call - Premium endpoints: 10 credits per call - 100 free credits on signup, no credit card required. Cached responses cost 0 credits. Credit packs never expire. - Full pricing: https://www.socialcrawl.dev/pricing ## Explore with AI Questions this API answers, phrased for an AI assistant: - How to list every Facebook ad from one advertiser with SocialCrawl - How to track competitor ads on Meta with an API