Search Facebook Ad Library ads
Search Facebook Ad Library ads by keyword.
Operation
/v1/facebook/ad-library/ads/searchHeaders
API key (`sfk_...`)
Parameters
Search query text for Facebook Ad Library ads.
min 1 chars · max 4096 chars
Optional sort order for returned ads.
one of: impressions, most-recent
Optional keyword matching mode for the search query.
one of: keyword-unordered, exact-phrase
Optional filter for all ads or political and issue ads.
one of: all, political-and-issue
Optional country code filter. Use ALL to search all countries.
min 2 chars · max 3 chars
Optional ad status filter.
one of: all, active, inactive
Optional creative media filter.
one of: all, image, video, meme, image-and-meme, none
Optional start date filter in YYYY-MM-DD format.
pattern: ^\d{4}-\d{2}-\d{2}$
Optional end date filter in YYYY-MM-DD format.
pattern: ^\d{4}-\d{2}-\d{2}$
Opaque pagination cursor from a previous response.
min 1 chars
When true, returns a smaller response with fewer fields.
Response fields
Endpoint-specific response payload.
Search query that was evaluated for this response.
Ads returned for the requested search. This array may be empty when no ads match the filters.
Stable identifier for the ad.
min 1 chars
Platform ad id when available.
Public Facebook Ad Library URL for this ad when available.
Advertiser page summary for this ad.
Facebook page id for the advertiser when available.
Display name for the advertiser page when available.
Public Facebook URL for the advertiser page when available.
Whether the advertiser page is marked deleted.
Profile picture URL for the advertiser page when available.
Advertiser page like count when available.
≥ 0
Public categories for the advertiser page when available.
min 1 chars
Campaign collation metadata for this ad.
Campaign collation id when available.
Number of ads in the campaign collation when available.
≥ 0
Whether the ad is currently active.
Publisher platforms where the ad ran or is running.
min 1 chars
ISO-8601 timestamp for when the ad started, when available.
ISO-8601 timestamp for when the ad ended, when available.
Ad categories reported by the platform.
min 1 chars
Countries targeted or reached by the ad when available.
min 1 chars
Impressions metadata when available.
Human-readable impressions label when available.
Impressions index when available.
Spend metadata when available.
Spend amount text when available.
Currency code for spend when available.
Creative content for this ad.
Primary ad body text when available.
Ad title when available.
Ad caption when available.
Primary link URL when available.
Link description when available.
Call-to-action label when available.
Call-to-action type when available.
Display format for the creative when available.
Image assets attached to the creative.
Image URL when available.
Resized image URL when available.
Watermarked resized image URL when available.
Video assets attached to the creative.
High-definition video URL when available.
Standard-definition video URL when available.
Video preview image URL when available.
Carousel cards attached to the creative.
Card title when available.
Card body text when available.
Card caption when available.
Card link URL when available.
Card image URL when available.
Card video URL when available.
Pagination information for the current response.
Cursor to pass as `cursor` in the next request when `hasMore` is true; otherwise null.
Whether another page of ads can be requested.
Estimated total number of matching ads when available.
≥ 0
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
Responses
Facebook Ad Library ads matching the requested search.
Error codes