Social Fetch
Facebook

Get Facebook Ad Library ad

Get a single Facebook Ad Library ad by archive id or public Ad Library URL.

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

API key (`sfk_...`)

Parameters
4
adIdstringquery

Facebook Ad Library archive id for the ad.

min 1 chars · max 4096 chars

urlstringquery

Public Facebook Ad Library URL for the ad.

min 1 chars · max 4096 chars

includeTranscriptbooleanquery

When true, includes a plain-text transcript when available for the ad video.

trimbooleanquery

When true, requests a smaller payload before normalization.

Response fields
62

Endpoint-specific response payload.

datalookupStatus
string

Whether the ad was found in the Ad Library.

one of: found, not_found

Ad details when found; otherwise null.

dataadid
string

Stable identifier for the ad.

min 1 chars

dataadadId
stringnullable

Platform ad id when available.

dataadurl
stringnullable

Public Facebook Ad Library URL for this ad when available.

Advertiser page summary for this ad.

dataadpageid
stringnullable

Facebook page id for the advertiser when available.

dataadpagename
stringnullable

Display name for the advertiser page when available.

dataadpageurl
stringnullable

Public Facebook URL for the advertiser page when available.

dataadpageisDeleted
booleannullable

Whether the advertiser page is marked deleted.

dataadpageprofilePictureUrl
stringnullable

Profile picture URL for the advertiser page when available.

dataadpagelikeCount
integernullable

Advertiser page like count when available.

≥ 0

Public categories for the advertiser page when available.

dataadpagecategories[]
stringoptional

min 1 chars

Campaign collation metadata for this ad.

dataadcampaigncollationId
stringnullable

Campaign collation id when available.

dataadcampaigncollationCount
integernullable

Number of ads in the campaign collation when available.

≥ 0

dataadisActive
boolean

Whether the ad is currently active.

Publisher platforms where the ad ran or is running.

dataadpublisherPlatforms[]
stringoptional

min 1 chars

dataadstartedAt
stringnullable

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

dataadendedAt
stringnullable

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

Ad categories reported by the platform.

dataadcategories[]
stringoptional

min 1 chars

Countries targeted or reached by the ad when available.

dataadcountries[]
stringoptional

min 1 chars

Impressions metadata when available.

dataadimpressionstext
stringnullable

Human-readable impressions label when available.

dataadimpressionsindex
integernullable

Impressions index when available.

Spend metadata when available.

dataadspendamount
stringnullable

Spend amount text when available.

dataadspendcurrency
stringnullable

Currency code for spend when available.

Creative content for this ad.

dataadcreativebodyText
stringnullable

Primary ad body text when available.

dataadcreativetitle
stringnullable

Ad title when available.

dataadcreativecaption
stringnullable

Ad caption when available.

dataadcreativelinkUrl
stringnullable

Primary link URL when available.

dataadcreativelinkDescription
stringnullable

Link description when available.

dataadcreativecallToAction
stringnullable

Call-to-action label when available.

dataadcreativecallToActionType
stringnullable

Call-to-action type when available.

dataadcreativedisplayFormat
stringnullable

Display format for the creative when available.

Image assets attached to the creative.

dataadcreativeimages[]url
stringnullable

Image URL when available.

dataadcreativeimages[]resizedUrl
stringnullable

Resized image URL when available.

dataadcreativeimages[]watermarkedResizedUrl
stringnullable

Watermarked resized image URL when available.

Video assets attached to the creative.

dataadcreativevideos[]hdUrl
stringnullable

High-definition video URL when available.

dataadcreativevideos[]sdUrl
stringnullable

Standard-definition video URL when available.

dataadcreativevideos[]previewImageUrl
stringnullable

Video preview image URL when available.

Carousel cards attached to the creative.

dataadcreativecards[]title
stringnullable

Card title when available.

dataadcreativecards[]body
stringnullable

Card body text when available.

dataadcreativecards[]caption
stringnullable

Card caption when available.

dataadcreativecards[]linkUrl
stringnullable

Card link URL when available.

dataadcreativecards[]imageUrl
stringnullable

Card image URL when available.

dataadcreativecards[]videoUrl
stringnullable

Card video URL when available.

datatranscript
stringnullable

Plain transcript text when requested and available. May be null when speech is not detected, the video exceeds supported length, or transcription is otherwise unavailable.

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/ads?adId=abc123&includeTranscript=false" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Ad Library ad detail (found or not found in body).

On this page

No Headings