AD
Identity & Enrichment · x402 · active demand

Facebook Ad Library search by keyword — every live and recent ad matching a search term…

Facebook Ad Library search by keyword — every live and recent ad matching a search term across all advertisers on Facebook, Instagram, Messenger and Threads. Returns the full ad creative (headline, body copy, CTA button + destination link, image and video URL…

by ads.apitoll.cloud · discovered, not yet claimed by its owner · updated 2026-10-14

30d calls513
30d payers6
MethodGET
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Facebook Ad Library search by keyword — every live and recent ad matching a search term across all advertisers on Facebook, Instagram, Messenger and Threads. Returns the full ad creative (headline, body copy, CTA button + destination link, image and video URLs), the advertiser, run dates and days-running, and platform mix. Commercial and political ads, no Meta API or login. Competitor ad intelligence, ad spy, and creative research for AI agents.

Tags: facebook-ads · ad-library · ads · keyword-search · ad-creative · bazaar

Call contract

Method
GET
Input
query parameters
Output
json
Last paid call
2026-10-14
Input example from Bazaar metadata
{
  "country": "US",
  "q": "running shoes"
}
Output example
{
  "ads": [
    {
      "adArchiveId": "1234567890123456",
      "bodyText": "Lightweight cushioning for your longest runs. Free shipping this week.",
      "country": "US",
      "ctaText": "Shop Now",
      "ctaType": "SHOP_NOW",
      "daysRunning": 28,
      "displayFormat": "VIDEO",
      "imageUrls": [
        "https://scontent.xx.fbcdn.net/v/img1.jpg"
      ],
      "isActive": true,
      "linkUrl": "https://acmefootwear.com/aeroglide?utm_source=fb",
      "linkUrlType": "destination",
      "mediaExpiresAt": "2026-06-29T22:19:28Z",
      "pageId": "100066543210987",
      "pageName": "Acme Footwear",
      "pageVerified": true,
      "publisherPlatform": [
        "FACEBOOK",
        "INSTAGRAM"
      ],
      "scrapedAt": "2026-06-25T14:32:09Z",
      "sourceUrl": "https://www.facebook.com/ads/library/?q=running%20shoes&country=US",
      "startDate": 1717200000,
      "templatedText": false,
      "title": "Run Further in the new AeroGlide",
      "videoUrl": "https://video.xx.fbcdn.net/v/ad_hd.mp4"
    }
  ],
  "asOf": "2026-06-25T14:32:10Z",
  "count": 25,
  "country": "US",
  "query": {
    "keyword": "running shoes"
  },
  "source": {
    "name": "Facebook Ad Library",
    "via": "Apify"
  }
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/27552.json for the price and payment options.
  3. Pay. Call GET https://ads.apitoll.cloud/v1/ads/facebook/search. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.03 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base, Solana
Demand
513 calls · 6 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.030x4ce88238F669d04351937420C931988e464a975a150s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
USDC$0.03HZ5rN5HmZpu2H16auY5Zt5SuJjCMBG77odVhAVSuhK1x150s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x4ce88238F669d04351937420C931988e464a975a",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "30000",
    "amountUsd": 0.03,
    "maxTimeoutSeconds": 150
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "HZ5rN5HmZpu2H16auY5Zt5SuJjCMBG77odVhAVSuhK1x",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "30000",
    "amountUsd": 0.03,
    "maxTimeoutSeconds": 150
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "properties": {
        "ads": {
          "items": {
            "properties": {
              "adArchiveId": {
                "type": "string"
              },
              "bodyText": {
                "type": "string"
              },
              "country": {
                "type": "string"
              },
              "ctaText": {
                "type": "string"
              },
              "ctaType": {
                "type": "string"
              },
              "daysRunning": {
                "type": "number"
              },
              "displayFormat": {
                "type": "string"
              },
              "imageUrls": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "isActive": {
                "type": "boolean"
              },
              "linkUrl": {
                "type": "string"
              },
              "linkUrlType": {
                "type": "string"
              },
              "mediaExpiresAt": {
                "type": "string"
              },
              "pageId": {
                "type": "string"
              },
              "pageName": {
                "type": "string"
              },
              "pageVerified": {
                "type": "boolean"
              },
              "publisherPlatform": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "scrapedAt": {
                "type": "string"
              },
              "sourceUrl": {
                "type": "string"
              },
              "startDate": {
                "type": "number"
              },
              "templatedText": {
                "type": "boolean"
              },
              "title": {
                "type": "string"
              },
              "videoUrl": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "asOf": {
          "type": "string"
        },
        "count": {
          "type": "number"
        },
        "country": {
          "type": "string"
        },
        "query": {
          "properties": {
            "keyword": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "source": {
          "properties": {
            "name": {
              "type": "string"
            },
            "via": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "ads": [
      {
        "adArchiveId": "string",
        "bodyText": "string",
        "country": "string",
        "ctaText": "string",
        "ctaType": "string",
        "daysRunning": 0,
        "displayFormat": "string",
        "imageUrls": [
          "string"
        ],
        "isActive": true,
        "linkUrl": "string",
        "linkUrlType": "string",
        "mediaExpiresAt": "string",
        "pageId": "string",
        "pageName": "string",
        "pageVerified": true,
        "publisherPlatform": [
          "string"
        ],
        "scrapedAt": "string",
        "sourceUrl": "string",
        "startDate": 0,
        "templatedText": true,
        "title": "string",
        "videoUrl": "string"
      }
    ],
    "asOf": "string",
    "count": 0,
    "country": "string",
    "query": {
      "keyword": "string"
    },
    "source": {
      "name": "string",
      "via": "string"
    }
  },
  "type": "string"
}

Examples

curl
curl "https://ads.apitoll.cloud/v1/ads/facebook/search"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://ads.apitoll.cloud/v1/ads/facebook/search");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://ads.apitoll.cloud/v1/ads/facebook/search")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
ads.apitoll.cloud
Endpoint
https://ads.apitoll.cloud/v1/ads/facebook/search
Machine-readable
/resources/27552.json