Social Fetch
Facebook

List Facebook company ads

List ads a company or page is running in the Facebook Ad Library.

GET/v1/facebook/ad-library/companies/ads
1credit
x-api-key*stringheader

API key (`sfk_...`)

Parameters
10
pageIdstringquery

Facebook page id when you have it instead of a company name.

min 1 chars · max 4096 chars

companyNamestringquery

Company or page name to search when you do not have a page id.

min 1 chars · max 4096 chars

countrystringquery

Optional country code filter. Use ALL to search all countries.

min 2 chars · max 3 chars

statusstringquery

Optional ad status filter.

one of: all, active, inactive

mediaTypestringquery

Optional creative media filter.

one of: all, image, video, meme, image-and-meme, none

languagestringquery

Optional language code filter.

min 2 chars · max 8 chars

sortBystringquery

Optional sort order for returned ads.

one of: impressions, most-recent

startDatestringquery

Optional start date filter in YYYY-MM-DD format.

pattern: ^\d{4}-\d{2}-\d{2}$

endDatestringquery

Optional end date filter in YYYY-MM-DD format.

pattern: ^\d{4}-\d{2}-\d{2}$

cursorstringquery

Opaque pagination cursor from a previous response (`data.page.nextCursor`).

min 1 chars

Response fields
60

Endpoint-specific response payload.

datalookupStatus
string

Whether the company or page resolved for this request.

one of: found, not_found

Ads returned for the requested company or page. This array may be empty when the lookup resolves but no ads match the filters.

dataads[]id
string

Stable identifier for the ad.

min 1 chars

dataads[]adId
stringnullable

Platform ad id when available.

dataads[]url
stringnullable

Public Facebook Ad Library URL for this ad when available.

Advertiser page summary for this ad.

dataads[]pageid
stringnullable

Facebook page id for the advertiser when available.

dataads[]pagename
stringnullable

Display name for the advertiser page when available.

dataads[]pageurl
stringnullable

Public Facebook URL for the advertiser page when available.

dataads[]pageisDeleted
booleannullable

Whether the advertiser page is marked deleted.

dataads[]pageprofilePictureUrl
stringnullable

Profile picture URL for the advertiser page when available.

Campaign collation metadata for this ad.

dataads[]campaigncollationId
stringnullable

Campaign collation id when available.

dataads[]campaigncollationCount
integernullable

Number of ads in the campaign collation when available.

≥ 0

dataads[]isActive
boolean

Whether the ad is currently active.

Publisher platforms where the ad ran or is running.

dataads[]publisherPlatforms[]
stringoptional

min 1 chars

dataads[]startedAt
stringnullable

ISO-8601 timestamp for when the ad started, when available.

dataads[]endedAt
stringnullable

ISO-8601 timestamp for when the ad ended, when available.

Ad categories reported by the platform.

dataads[]categories[]
stringoptional

min 1 chars

Countries targeted or reached by the ad when available.

dataads[]countries[]
stringoptional

min 1 chars

Impressions metadata when available.

dataads[]impressionstext
stringnullable

Human-readable impressions label when available.

dataads[]impressionsindex
integernullable

Impressions index when available.

Spend metadata when available.

dataads[]spendamount
stringnullable

Spend amount text when available.

dataads[]spendcurrency
stringnullable

Currency code for spend when available.

Creative content for this ad.

dataads[]creativebodyText
stringnullable

Primary ad body text when available.

dataads[]creativetitle
stringnullable

Ad title when available.

dataads[]creativecaption
stringnullable

Ad caption when available.

dataads[]creativelinkUrl
stringnullable

Primary link URL when available.

dataads[]creativelinkDescription
stringnullable

Link description when available.

dataads[]creativecallToAction
stringnullable

Call-to-action label when available.

dataads[]creativedisplayFormat
stringnullable

Display format for the creative when available.

Image assets attached to the creative.

dataads[]creativeimages[]url
stringnullable

Image URL when available.

dataads[]creativeimages[]width
integeroptional

Image width in pixels when available.

≥ 0

dataads[]creativeimages[]height
integeroptional

Image height in pixels when available.

≥ 0

Video assets attached to the creative.

dataads[]creativevideos[]hdUrl
stringnullable

High-definition video URL when available.

dataads[]creativevideos[]sdUrl
stringnullable

Standard-definition video URL when available.

dataads[]creativevideos[]previewImageUrl
stringnullable

Video preview image URL when available.

Carousel cards attached to the creative.

dataads[]creativecards[]title
stringnullable

Card title when available.

dataads[]creativecards[]body
stringnullable

Card body text when available.

dataads[]creativecards[]caption
stringnullable

Card caption when available.

dataads[]creativecards[]linkUrl
stringnullable

Card link URL when available.

dataads[]creativecards[]imageUrl
stringnullable

Card image URL when available.

dataads[]creativecards[]videoUrl
stringnullable

Card video URL when available.

Pagination information for the current response.

datapagenextCursor
stringnullable

Cursor to pass as `cursor` in the next request when `hasMore` is true; otherwise null.

datapagehasMore
boolean

Whether another page of ads can be requested.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/facebook/ad-library/companies/ads?pageId=abc123" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Ads for the requested company or page. Check `data.lookupStatus` for `found` vs `not_found`.

On this page

No Headings