Wake API Docs

Facebook Ad Library Search

Searches the Meta Ad Library by keyword and returns matching ads.

1 credit / request
GET /v1/facebook/adLibrary/search/ads Try it

Overview

WakeScrap exposes this Facebook Ad Library endpoint with an LLM-friendly response by default. Set llm_friendly=false to receive the full response shape.

Searches the Meta Ad Library by keyword and returns matching ads. Each result includes ad_archive_id, page_name, is_active, publisher_platform, and a snapshot with body text, images, videos, and cta_text. Results cap around 1,500 via GET due to cursor size limits; switch to POST method with body params for larger result sets.

Required params: query.

Headers

x-api-key string required

Your Wake API access key.

Example:

YOUR_API_KEY

Query Parameters

query string required

Keyword to search for

Example:

running
sort_by string

Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions.

Example:

total_impressions

enum: total_impressions, relevancy_monthly_grouped

search_type string

If you want to search by exact phrase or not

Example:

keyword_unordered

enum: keyword_unordered, keyword_exact_phrase

ad_type string

Search for all ads or only political and issue ads

Example:

all

enum: all, political_and_issue_ads

country string

This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.

Example:

ALL
status string

Status of the ad. Defaults to ACTIVE.

Example:

ACTIVE

enum: ALL, ACTIVE, INACTIVE

media_type string

Media type of the ad. Defaults to ALL. Meme just means the ad has text and an image. No clue why they call it meme.

Example:

ALL

enum: ALL, IMAGE, VIDEO, MEME, IMAGE_AND_MEME, NONE

start_date string

Impressions start date. Needs to be in YYYY-MM-DD format.

Example:

2025-01-05
end_date string

Impressions end date. Needs to be in YYYY-MM-DD format.

Example:

2025-02-16
cursor string

Cursor to paginate through results

Example:

AQHRYLVDkoMkvGv7yK1rcce-vJmKiKv330R4v3j9KHSOaYvmF1bq1QkotG0rgW8Fkrj-
trim boolean

Set to true for a trimmed down version of the response

Example:

false
llm_friendly boolean

Defaults to true. When true, WakeScrap returns a compact LLM-friendly response. Set false to receive the full response shape.

Example:

true