Platforms/Facebook/Company ads

Meta Ad Library Company Ads API

GET ยท 1 credit

Send an advertiser's Page id, and get its ads in Meta's Ad Library, about 10 a page, with the same filters as ad search.

GET /v1/facebook/ad-library/companies/ads

What people use it for

  • Competitor ad monitoring: list a competitor's running ads every day and catch new ones.
  • Creative testing: see how many versions of each ad an advertiser runs.
  • Seasonality: compare an advertiser's ads across date ranges.

How it works with other endpoints

Get the advertiser's page_id from Company search or from Profile. Each ad's id goes to Ad.

Limits

  • About 10 ads a page.
  • start_date and end_date go together, as YYYY-MM-DD.

Example request

const url = `${process.env.API_URL}/v1/facebook/ad-library/companies/ads?page_id=15087023444`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
page_idYesThe advertiser's Page id: the companies search's page_id, or the profile endpoint's page_id.
countryNoOnly ads shown in this country: a two-letter code (US), or ALL.
statusNoOnly ads running now, or those that stopped.
media_typeNoOnly ads with images, videos, memes (image and text), either, or none.
start_dateNoOnly ads shown in this date range (YYYY-MM-DD): give start_date and end_date together.
end_dateNoOnly ads shown in this date range (YYYY-MM-DD): give start_date and end_date together.
cursorNoFor the next page: page.next_cursor from the page before. Send the other parameters again with it.

Example response

{
  "data": [
    {
      "id": "1255232986092838",
      "url": "https://www.facebook.com/ads/library/?id=1255232986092838",
      "page_id": "15087023444",
      "page_name": "Nike",
      "page_url": "https://www.facebook.com/nike",
      "page_picture": "https://scontent.xx.fbcdn.net/v/t39.30808-6/nike-picture.jpg",
      "active": true,
      "started_at": "2026-11-10T00:00:00Z",
      "ended_at": null,
      "platforms": [
        "FACEBOOK",
        "INSTAGRAM"
      ],
      "format": "VIDEO",
      "text": "Made for the miles you haven't run yet.",
      "title": "New running shoes",
      "link_url": "https://www.nike.com/running",
      "cta": "Shop now",
      "image": "https://scontent.xx.fbcdn.net/v/t39.30808-6/ad-thumbnail.jpg",
      "video_url": "https://video.xx.fbcdn.net/v/t42.1790-2/ad.mp4",
      "versions": 3
    }
  ],
  "page": {
    "next_cursor": "eyJhZnRlciI6IkFRSGFYIn0",
    "has_more": true
  },
  "meta": {
    "platform": "facebook",
    "endpoint": "company_ads",
    "params": {
      "page_id": "15087023444",
      "country": "ALL",
      "status": "all",
      "media_type": "all"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-29T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

Where do I get the Page id?

From Company search, which finds advertisers by name, or from the page_id that Profile gives for a Page.

Can I list only running ads?

Yes: status=active. status=inactive lists the ads that stopped.

Which filters are there?

country, status, media_type and a date range, the same as Ad search.

Works with

On other platforms

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required