Meta ads search
Search the Meta Ad Library for ads whose TEXT contains a keyword — what ads about a product, offer or topic say, across advertisers. It matches the ad copy, not the advertiser: for one brand's own ads find its page with meta_ads_advertisers, then meta_ads_page_ads. Cite each ad's url.
AuthorizationBearer <esk_live_…>A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.
Scope: social:query
Endless-Api-Version?stringPin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.
application/json- body
organization_id*string^org_max_credits?integerRefuse the call when its quoted ceiling exceeds this many credits.
-9007199254740991 <= value <= 9007199254740991tool_call_id?|The tool call behind this read, for the ledger. Every read that runs is billed, a repeated id too.
conversation_id?|The chat this call belongs to, for cost attribution.
message_id?|The chat turn this call belongs to, for cost attribution.
run_lock?booleanThe chat turn holds its conversation's run lock: the read is refused once the turn no longer does (it was stopped).
input*OK
application/json- response
operation*stringOperation name — see the operations catalog.
"instagram_profile""instagram_user_posts""instagram_user_reels""instagram_user_stories""instagram_user_highlights""instagram_highlight_stories""instagram_post""instagram_post_comments""instagram_search""instagram_hashtag_posts""tiktok_profile""tiktok_user_posts""tiktok_post""tiktok_post_comments""tiktok_search""tiktok_hashtag_posts""tiktok_music_posts""tiktok_trending""tiktok_trend_scan""linkedin_profile""linkedin_company""linkedin_user_posts""linkedin_company_posts""linkedin_post""linkedin_search_people""linkedin_search_posts""linkedin_ads""youtube_channel""youtube_channel_videos""youtube_channel_playlists""youtube_channel_shorts""youtube_video""youtube_search""youtube_trending""facebook_page""facebook_page_posts""facebook_page_reels""facebook_post""facebook_post_comments""facebook_group""facebook_group_posts""facebook_search""reddit_search""reddit_subreddit_posts""reddit_post""reddit_post_comments""x_search""x_profile""x_user_posts""x_post""x_post_comments""x_user_connections""x_tweet_engagers""x_trends""threads_profile""threads_user_posts""threads_search""meta_ads_advertisers""meta_ads_page_ads""meta_ads_search""resolve_mention"result*requests*integer0 <= value <= 9007199254740991credits_charged*integer0 <= value <= 9007199254740991curl -X POST 'https://api.endless.app/social/meta_ads_search' \ -H 'Content-Type: application/json' \ -d '{ "organization_id": "string", "input": { "query": "string" }}'{ "operation": "instagram_profile", "result": { "query": "string", "summary": "string", "count": -9007199254740991, "total": 0, "skipped_templates": -9007199254740991, "ads": [ { "id": "string", "url": "string", "page_id": "string", "page_name": "string", "text": "string", "title": "string", "link_url": "string", "cta": "string", "format": "string", "platforms": [ "string" ], "is_active": true, "started_at": "string", "ended_at": "string", "image_url": "string", "video_url": "string", "versions": 0 } ] }, "requests": 0, "credits_charged": 0}Meta ads page ads POST
The ads one advertiser runs on Facebook, Instagram, Messenger, WhatsApp and Threads, from the Meta Ad Library: copy, headline, landing link, call to action, format, platforms, dates and creative. Takes the advertiser's `page_id` from `meta_ads_advertisers`. Ordered by impressions unless `sort` is 'recent'. Meta does not publish spend or reach for commercial ads, so don't report them. Cite each ad's `url`.
List social operations GET
The social operations this workspace can run: each one's name, network, description and the JSON Schema of its input and output. Call one with `POST /social/{operation}`.