Skip to main content

Search

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READscrape-creators.scrape_creators_facebook_ad_library_get_v1_facebook_adlibrary_search_ads
  • Contract tier: legacy
  • Risk: read
  • Catalog version: scrape-creators-2026.07.12.1
  • Descriptor hash: 27e7f529bce8adf0bfee10d5cbb88cf62e08d2bedc17425b99745eb1b1f9a4d2

Use this when you need ScrapeCreators Facebook Ad Library data from GET /v1/facebook/adLibrary/search/ads for Search. 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. Returns the ScrapeCreators response in the standard MCP envelope with ok/data/error/meta. This is read-only. Requires the portal grant header and a ScrapeCreators BYOK API key.

Request Body

{
"jsonrpc": "2.0",
"id": "scrape-creators-scrape-creators-facebook-ad-library-get-v1-facebook-adlibrary-search-ads-example",
"method": "tools/call",
"params": {
"name": "scrape-creators.scrape_creators_facebook_ad_library_get_v1_facebook_adlibrary_search_ads",
"arguments": {
"body": "",
"trim": "",
"query": "",
"cursor": "",
"params": "",
"status": "ALL",
"ad_type": "all",
"compact": "",
"country": "",
"sort_by": "total_impressions"
}
}
}

Arguments Schema

{
"type": "object",
"properties": {
"body": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Body",
"default": null,
"description": "JSON request body for provider endpoints that accept one."
},
"trim": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Trim",
"default": null,
"description": "Set to true for a trimmed down version of the response"
},
"query": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Query",
"default": null,
"description": "Keyword to search for"
},
"cursor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cursor",
"default": null,
"description": "Cursor to paginate through results"
},
"params": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"title": "Params",
"default": null,
"description": "Optional advanced query parameter object. Prefer the documented top-level parameters when available."
},
"status": {
"enum": [
"ALL",
"ACTIVE",
"INACTIVE"
],
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null,
"description": "Status of the ad. Defaults to ACTIVE."
},
"ad_type": {
"enum": [
"all",
"political_and_issue_ads"
],
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ad Type",
"default": null,
"description": "Search for all ads or only political and issue ads"
},
"compact": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Compact",
"default": null,
"description": "When true, trims large list payloads before returning them to the agent."
},
"country": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Country",
"default": null,
"description": "This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL."
},
"sort_by": {
"enum": [
"total_impressions",
"relevancy_monthly_grouped"
],
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sort By",
"default": null,
"description": "Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions."
},
"end_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "End Date",
"default": null,
"description": "Impressions end date. Needs to be in YYYY-MM-DD format."
},
"max_items": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Max Items",
"default": null,
"description": "Maximum number of list items to return when compacting provider responses."
},
"media_type": {
"enum": [
"ALL",
"IMAGE",
"VIDEO",
"MEME",
"IMAGE_AND_MEME",
"NONE"
],
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Media Type",
"default": null,
"description": "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."
},
"start_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Start Date",
"default": null,
"description": "Impressions start date. Needs to be in YYYY-MM-DD format."
},
"include_raw": {
"type": "boolean",
"title": "Include Raw",
"default": false,
"description": "When true, returns both compact normalized data and the raw provider payload; this can be large."
},
"path_params": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"title": "Path Params",
"default": null,
"description": "Path template values for endpoints that expose path placeholders."
},
"search_type": {
"enum": [
"keyword_unordered",
"keyword_exact_phrase"
],
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Search Type",
"default": null,
"description": "If you want to search by exact phrase or not"
},
"search_query": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Search Query",
"default": null,
"description": "Alias for query: Keyword to search for"
},
"cache_ttl_seconds": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Cache Ttl Seconds",
"default": null,
"description": "Optional cache lifetime for idempotent GET requests."
},
"confirm_high_cost": {
"type": "boolean",
"title": "Confirm High Cost",
"default": false,
"description": "Set true only when intentionally running a high-credit or write-intent request."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the local or provider operation completed successfully."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Bounded operation result when ok is true."
},
"meta": {
"type": "object",
"description": "Safe request, pagination, cache, and timing metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Safe structured error when ok is false."
}
},
"description": "Scrape Creators MCP normalized response envelope.",
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "scrape-creators-scrape-creators-facebook-ad-library-get-v1-facebook-adlibrary-search-ads-example",
"method": "tools/call",
"params": {
"name": "scrape-creators.scrape_creators_facebook_ad_library_get_v1_facebook_adlibrary_search_ads",
"arguments": {
"body": "",
"trim": "",
"query": "",
"cursor": "",
"params": "",
"status": "ALL",
"ad_type": "all",
"compact": "",
"country": "",
"sort_by": "total_impressions"
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool scrape-creators.scrape_creators_facebook_ad_library_get_v1_facebook_adlibrary_search_ads executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}