---
title: "Facebook Company Ads API"
method: GET
path: "/v1/ad-library/facebook/company-ads"
tags: ["Facebook Ad Library"]
---

# Facebook Company Ads API

`GET /v1/ad-library/facebook/company-ads`

## Request

- Base URL: `https://api.captapi.com`
- URL: `https://api.captapi.com/v1/ad-library/facebook/company-ads`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Ads for one Meta page — active by default, cursor through the HTML batch, same envelope as /facebook/search.

List ads for one Meta page/advertiser. Prefer pageId (or libraryUrl) from /facebook/search-companies. status defaults to ACTIVE so the first page is what the page is running now — use ALL for historical/inactive variants (collation siblings share copy and consume a limit slot). A limit above 30 also scrolls the library past Meta's first ~30 ads, up to ~70–80 per call (~45–60s). nextCursor pages that fetched batch; hasMore is true only when nextCursor is present, and null with truncatedReason=library-page when the batch is spent but Meta still has more ads. searchResultsCount is Meta's upstream match count; retrievableCount is how many ads this cursor walk can actually return. A search-companies libraryUrl with active_status=all is rewritten to the requested filter. Flat 2 credits native.

Docs: https://captapi.com/apis/facebook-ad-library-company-ads

## Query parameters

- `url` string, required
- `country` string
- `limit` integer
- `status` 'ALL' | 'ACTIVE' | 'INACTIVE'
- `cursor` string
- `cache` boolean

## Response `200`

Success. The data object for this endpoint.

- object
  - `success` unknown, required
  - `data` object, required
    - `url` string: Canonical URL of the item.
    - `country` string: ISO market you queried (e.g. US). Envelope only — not a popular-creators feed market.
    - `totalReturned` integer: Ads on this page (length of ads[]).
    - `ads` object[]
      - `platform` string: Platform identifier for this response (matches the endpoint's platform).
      - `id` string: Id of this ads item.
      - `url` string: Canonical URL of the item.
      - `text` string: Text content.
      - `headline` string: Ad headline / title when Meta exposes it. Not a profile headline.
      - `cta` string: Call-to-action text.
      - `landingUrl` string: Landing page the ad links to.
      - `adFormat` string: Format of the ad creative.
      - `firstShown` string: Meta delivery-start date as YYYY-MM-DD (Pacific calendar day).
      - `lastShown` string: Meta delivery-end date as YYYY-MM-DD (Pacific calendar day).
      - `impressions` string: Estimated ad impressions.
      - `spend` string: Estimated ad spend.
      - `country` string: ISO market you queried (e.g. US). Envelope only — not a popular-creators feed market.
      - `advertiser` object: Advertiser running the ad.
        - `id` string: Id of this ads item.
        - `name` string
        - `url` string: Canonical URL of the item.
        - `logo` string
      - `media` string[]: Media attached to the item.

## Other responses

- `400`: Bad request: wrong platform URL, unknown endpoint, or an invalid parameter value. Not billed.
- `401`: Missing, invalid or revoked API key. Not billed.
- `402`: Not enough credits for this request. Not billed.
- `404`: The resource does not exist or is not public. Not billed.
- `422`: A required parameter is missing or has the wrong type. Not billed.
- `429`: Rate limit reached. Wait for Retry-After seconds. Not billed.
- `502`: The platform could not be reached or returned nothing usable. Retryable, not billed. 503 and 504 use the same envelope.

---

[API](https://skmtc.dev/captapi/apis/captapi-api.md) · [All operations](https://skmtc.dev/captapi/apis/captapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/captapi/apis/captapi-api/revisions/c9b9ac5ff1bd?raw)
