Api Endpoint

SocialFetch

Search Facebook Ad Library ads by keyword and filters.

Open interactive test console

Offering

Provider
api.socialfetch.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Social Intelligence
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.socialfetch.dev/v1/facebook/ad-library/ads/search
MIME type
application/json
First seen
2026-10-16T01:50:45.949Z
Last seen
Tags
Facebook, social-data

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.014 USDC
Atomic price: 14000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "14000",
    "payTo": "0x02C2fCAfCe36B4AAdB39625866Bc6B1699d83043"
  }
]

Observed health

Status
Healthy
Latest latency
79 ms
Average latency
229 ms
HTTP status
402
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096,
          "description": "Search query text for Facebook Ad Library ads."
        },
        "sortBy": {
          "type": "string",
          "enum": [
            "impressions",
            "most-recent"
          ],
          "description": "Optional sort order for returned ads."
        },
        "searchType": {
          "type": "string",
          "enum": [
            "keyword-unordered",
            "exact-phrase"
          ],
          "description": "Optional keyword matching mode for the search query."
        },
        "adType": {
          "type": "string",
          "enum": [
            "all",
            "political-and-issue"
          ],
          "description": "Optional filter for all ads or political and issue ads."
        },
        "country": {
          "description": "Optional country code filter. Use ALL to search all countries.",
          "type": "string",
          "minLength": 2,
          "maxLength": 3
        },
        "language": {
          "description": "Optional ISO 639-1 language code (two letters, for example EN, ES or FR) to only return ads in that language.",
          "type": "string",
          "minLength": 2,
          "maxLength": 2,
          "pattern": "^[A-Za-z]{2}$"
        },
        "status": {
          "type": "string",
          "enum": [
            "all",
            "active",
            "inactive"
          ],
          "description": "Optional ad status filter."
        },
        "mediaType": {
          "type": "string",
          "enum": [
            "all",
            "image",
            "video",
            "meme",
            "image-and-meme",
            "none"
          ],
          "description": "Optional creative media filter."
        },
        "startDate": {
          "description": "Optional start date filter in YYYY-MM-DD format.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "endDate": {
          "description": "Optional end date filter in YYYY-MM-DD format.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "cursor": {
          "description": "Opaque pagination cursor from a previous response.",
          "type": "string",
          "minLength": 1
        },
        "trim": {
          "description": "When true, returns a smaller response with fewer fields.",
          "type": "boolean"
        }
      },
      "required": [
        "query"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "adType": {
              "description": "Optional filter for all ads or political and issue ads.",
              "enum": [
                "all",
                "political-and-issue"
              ],
              "type": "string"
            },
            "country": {
              "description": "Optional country code filter. Use ALL to search all countries.",
              "maxLength": 3,
              "minLength": 2,
              "type": "string"
            },
            "cursor": {
              "description": "Opaque pagination cursor from a previous response.",
              "minLength": 1,
              "type": "string"
            },
            "endDate": {
              "description": "Optional end date filter in YYYY-MM-DD format.",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            "language": {
              "description": "Optional ISO 639-1 language code (two letters, for example EN, ES or FR) to only return ads in that language.",
              "maxLength": 2,
              "minLength": 2,
              "pattern": "^[A-Za-z]{2}$",
              "type": "string"
            },
            "mediaType": {
              "description": "Optional creative media filter.",
              "enum": [
                "all",
                "image",
                "video",
                "meme",
                "image-and-meme",
                "none"
              ],
              "type": "string"
            },
            "query": {
              "description": "Search query text for Facebook Ad Library ads.",
              "maxLength": 4096,
              "minLength": 1,
              "type": "string"
            },
            "searchType": {
              "description": "Optional keyword matching mode for the search query.",
              "enum": [
                "keyword-unordered",
                "exact-phrase"
              ],
              "type": "string"
            },
            "sortBy": {
              "description": "Optional sort order for returned ads.",
              "enum": [
                "impressions",
                "most-recent"
              ],
              "type": "string"
            },
            "startDate": {
              "description": "Optional start date filter in YYYY-MM-DD format.",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            "status": {
              "description": "Optional ad status filter.",
              "enum": [
                "all",
                "active",
                "inactive"
              ],
              "type": "string"
            },
            "trim": {
              "description": "When true, returns a smaller response with fewer fields.",
              "type": "boolean"
            }
          },
          "required": [
            "query"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}