Skip to content

Facebook Ad Library Search API

GET https://api.fetchproof.com/v1/facebook/adLibrary/search/ads

Search the Meta Ad Library by keyword, with the Ad Library's own filters: country, language, status, media type, ad type, exact phrase, sort, and an impressions date range. Returns searchResults (one card per creative group, as the Ad Library shows them: ad_archive_id, page_name, is_active, publisher_platform, collation_count, start/end dates and a snapshot with body text, images, videos, cards and cta_text), searchResultsCount and a cursor. Page 1 holds up to 30 results; later pages about 10. To page, send the same filters with cursor. A cursor from page 2 on is tied to a short-lived upstream session: if it has expired, the response says so and you start again without a cursor. Use GET normally; for long cursors, use POST with the same parameters in the JSON body. Ids are strings.

Default cost: 1 credit per call 0 credits on error
Code & Payload

Quick start

Open interactive playground in Docs ↗

cURL

curl --request GET 'https://api.fetchproof.com/v1/facebook/adLibrary/search/ads?query=running+shoes' \
  --header 'x-api-key: YOUR_API_KEY'

JavaScript

const response = await fetch("https://api.fetchproof.com/v1/facebook/adLibrary/search/ads?query=running+shoes", {
  method: 'GET',
  headers: {
    'x-api-key': process.env.FETCHPROOF_API_KEY,
  },
});
const data = await response.json();
console.log(data);

Python

import os
import requests

response = requests.get(
    "https://api.fetchproof.com/v1/facebook/adLibrary/search/ads?query=running+shoes",
    headers={"x-api-key": os.environ["FETCHPROOF_API_KEY"]},
)
print(response.json())

Go

package main

import (
  "fmt"
  "io"
  "net/http"
  "os"
)

func main() {
  req, _ := http.NewRequest("GET", "https://api.fetchproof.com/v1/facebook/adLibrary/search/ads?query=running+shoes", nil)
  req.Header.Set("x-api-key", os.Getenv("FETCHPROOF_API_KEY"))
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(string(body))
}

PHP

<?php
$ch = curl_init("https://api.fetchproof.com/v1/facebook/adLibrary/search/ads?query=running+shoes");
curl_setopt_array($ch, [
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    'x-api-key: ' . getenv('FETCHPROOF_API_KEY'),
  ],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
{
  "success": true,
  "credits_remaining": 100,
  "credits_charged": 1,
  "searchResults": [
    {
      "ad_archive_id": "953573607005202",
      "ad_id": null,
      "categories": [
        "UNKNOWN"
      ],
      "collation_count": null,
      "collation_id": null,
      "contains_digital_created_media": false,
      "contains_sensitive_content": false,
      "currency": "",
      "end_date": 1794816000,
      "fev_info": null,
      "gated_type": "ELIGIBLE",
      "has_user_reported": false,
      "hide_data_status": "NONE",
      "impressions_with_index": {
        "impressions_text": null,
        "impressions_index": -1
      },
      "is_aaa_eligible": false,
      "is_active": true,
      "menu_items": [],
      "page_id": "269617286730030",
      "page_is_deleted": false,
      "page_name": "Meesho",
      "publisher_platform": [
        "FACEBOOK",
        "INSTAGRAM",
        "AUDIENCE_NETWORK"
      ],
      "reach_estimate": null,
      "regional_regulation_data": {
        "finserv": {
          "is_deemed_finserv": false,
          "is_limited_delivery": false
        },
        "tw_anti_scam": {
          "is_limited_delivery": false
        }
      },
      "report_count": null,
      "snapshot": {
        "body": {
          "text": "Another reason to try Meesho? 🤩 Get up to 35% off on your first order! Also enjoy 🚚 Free Delivery 💸 Cash-on-delivery ↩️ Easy returns 💰 Instant refunds"
        },
        "branded_content": null,
        "brazil_tax_id": null,
        "byline": null,
        "caption": "meesho.com",
        "cards": [
          {
            "body": "Another reason to try Meesho? 🤩 Get up to 35% off on your first order! Also enjoy 🚚 Free Delivery 💸 Cash-on-delivery ↩️ Easy returns 💰 Instant refunds",
            "cta_type": "SHOP_NOW",
            "caption": "meesho.com",
            "link_description": "",
            "link_url": "https://www.meesho.com/HF%20WARSI%20(%20WHITE+%20BLACK,,,%20MU%20DADDY%20IS%20MY%20SUPER%20HERO/p/1NSI6I",
            "title": "HF WARSI ( WHITE+ BLACK,,, MU DADDY IS MY SUPER HERO",
            "cta_text": "Shop Now",
            "video_hd_url": null,
            "video_preview_image_url": null,
            "video_sd_url": null,
            "watermarked_video_hd_url": null,
            "watermarked_video_sd_url": null,
            "image_crops": [],
            "original_image_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.35426-6/711310076_1404727938156982_4921839411713034875_n.jpg?ccb=1-7",
            "resized_image_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.35426-6/711310076_1404727938156982_4921839411713034875_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
            "watermarked_resized_image_url": ""
          },
          {
            "body": "Another reason to try Meesho? 🤩 Get up to 35% off on your first order! Also enjoy 🚚 Free Delivery 💸 Cash-on-delivery ↩️ Easy returns 💰 Instant refunds",
            "cta_type": "SHOP_NOW",
            "caption": "meesho.com",
            "link_description": "",
            "link_url": "https://www.meesho.com/Girls%20%20%20Lehenga%20Cholis%20Pack%20Of%201/p/5YTJH",
            "title": "Girls   Lehenga Cholis Pack Of 1",
            "cta_text": "Shop Now",
            "video_hd_url": null,
            "video_preview_image_url": null,
            "video_sd_url": null,
            "watermarked_video_hd_url": null,
            "watermarked_video_sd_url": null,
            "image_crops": [],
            "original_image_url": "https://scontent-iad3-2.xx.fbcdn.net/v/t39.35426-6/718980681_1731387721190739_2686662753274987601_n.jpg?ccb=1-7",
            "resized_image_url": "https://scontent-iad3-2.xx.fbcdn.net/v/t39.35426-6/718980681_1731387721190739_2686662753274987601_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
            "watermarked_resized_image_url": ""
          },
          {
            "body": "Another reason to try Meesho? 🤩 Get up to 35% off on your first order! Also enjoy 🚚 Free Delivery 💸 Cash-on-delivery ↩️ Easy returns 💰 Instant refunds",
            "cta_type": "SHOP_NOW",
            "caption": "meesho.com",
            "link_description": "",
            "link_url": "https://www.meesho.com/Navy%20Blue%20Printed%20Running%20Shoes%20For%20Men/p/LJ7P",
            "title": "Navy Blue Printed Running Shoes For Men",
            "cta_text": "Shop Now",
            "video_hd_url": null,
            "video_preview_image_url": null,
            "video_sd_url": null,
            "watermarked_video_hd_url": null,
            "watermarked_video_sd_url": null,
            "image_crops": [],
            "original_image_url": "https://scontent-iad6-1.xx.fbcdn.net/v/t39.35426-6/719599669_933899656346797_7217650739417595866_n.jpg?ccb=1-7",
            "resized_image_url": "https://scontent-iad6-1.xx.fbcdn.net/v/t39.35426-6/719599669_933899656346797_7217650739417595866_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
            "watermarked_resized_image_url": ""
          }
        ],
        "cta_text": "Shop now",
        "cta_type": "SHOP_NOW",
        "country_iso_code": null,
        "disclaimer_label": null,
        "display_format": "DPA",
        "event": null,
        "images": [],
        "is_reshared": false,
        "link_description": null,
        "link_url": "http://Meesho.com/",
        "page_categories": [
          "Shopping"
        ],
        "page_id": "269617286730030",
        "page_is_deleted": false,
        "page_like_count": 1854563,
        "page_name": "Meesho",
        "page_profile_picture_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.35426-6/720616121_999236822844645_3944833976755217805_n.jpg?stp=dst-jpg_s60x60_tt6&ccb=1-7",
        "page_profile_uri": "https://www.facebook.com/meeshosupply/",
        "root_reshared_post": null,
        "title": "{{product.name}}",
        "videos": [],
        "additional_info": null,
        "ec_certificates": [],
        "extra_images": [],
        "extra_links": [],
        "extra_texts": [],
        "extra_videos": []
      },
      "spend": null,
      "start_date": 1788332400,
      "state_media_run_label": null,
      "targeted_or_reached_countries": [],
      "total_active_time": null,
      "url": "https://www.facebook.com/ads/library/?id=953573607005202",
      "start_date_string": "2026-09-02T07:00:00.000Z",
      "end_date_string": "2026-11-16T08:00:00.000Z"
    },
    {
      "ad_archive_id": "1779502603077516",
      "ad_id": null,
      "categories": [
        "UNKNOWN"
      ],
      "collation_count": null,
      "collation_id": null,
      "contains_digital_created_media": false,
      "contains_sensitive_content": false,
      "currency": "",
      "end_date": 1794816000,
      "fev_info": null,
      "gated_type": "ELIGIBLE",
      "has_user_reported": false,
      "hide_data_status": "NONE",
      "impressions_with_index": {
        "impressions_text": null,
        "impressions_index": -1
      },
      "is_aaa_eligible": false,
      "is_active": true,
      "menu_items": [],
      "page_id": "269617286730030",
      "page_is_deleted": false,
      "page_name": "Meesho",
      "publisher_platform": [
        "FACEBOOK",
        "INSTAGRAM",
        "AUDIENCE_NETWORK"
      ],
      "reach_estimate": null,
      "regional_regulation_data": {
        "finserv": {
          "is_deemed_finserv": false,
          "is_limited_delivery": false
        },
        "tw_anti_scam": {
          "is_limited_delivery": false
        }
      },
      "report_count": null,
      "snapshot": {
        "body": {
          "text": "Another reason to try Meesho? 🤩 Get up to 35% off on your first order! Also enjoy 🚚 Free Delivery 💸 Cash-on-delivery ↩️ Easy returns 💰 Instant refunds"
        },
        "branded_content": null,
        "brazil_tax_id": null,
        "byline": null,
        "caption": "meesho.com",
        "cards": [
          {
            "body": "Another reason to try Meesho? 🤩 Get up to 35% off on your first order! Also enjoy 🚚 Free Delivery 💸 Cash-on-delivery ↩️ Easy returns 💰 Instant refunds",
            "cta_type": "SHOP_NOW",
            "caption": "meesho.com",
            "link_description": "",
            "link_url": "https://www.meesho.com/Girls%20%20%20Lehenga%20Cholis%20Pack%20Of%201/p/5YTJH",
            "title": "Girls   Lehenga Cholis Pack Of 1",
            "cta_text": "Shop Now",
            "video_hd_url": null,
            "video_preview_image_url": null,
            "video_sd_url": null,
            "watermarked_video_hd_url": null,
            "watermarked_video_sd_url": null,
            "image_crops": [],
            "original_image_url": "https://scontent-iad3-2.xx.fbcdn.net/v/t39.35426-6/720049666_1043655491568077_7127803926643295326_n.jpg?ccb=1-7",
            "resized_image_url": "https://scontent-iad3-2.xx.fbcdn.net/v/t39.35426-6/720049666_1043655491568077_7127803926643295326_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
            "watermarked_resized_image_url": ""
          },
          {
            "body": "Another reason to try Meesho? 🤩 Get up to 35% off on your first order! Also enjoy 🚚 Free Delivery 💸 Cash-on-delivery ↩️ Easy returns 💰 Instant refunds",
            "cta_type": "SHOP_NOW",
            "caption": "meesho.com",
            "link_description": "",
            "link_url": "https://www.meesho.com/Navy%20Blue%20Printed%20Running%20Shoes%20For%20Men/p/LJ7P",
            "title": "Navy Blue Printed Running Shoes For Men",
            "cta_text": "Shop Now",
            "video_hd_url": null,
            "video_preview_image_url": null,
            "video_sd_url": null,
            "watermarked_video_hd_url": null,
            "watermarked_video_sd_url": null,
            "image_crops": [],
            "original_image_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.35426-6/720031181_1588585899564723_518853154572175840_n.jpg?ccb=1-7",
            "resized_image_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.35426-6/720031181_1588585899564723_518853154572175840_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
            "watermarked_resized_image_url": ""
          },
          {
            "body": "Another reason to try Meesho? 🤩 Get up to 35% off on your first order! Also enjoy 🚚 Free Delivery 💸 Cash-on-delivery ↩️ Easy returns 💰 Instant refunds",
            "cta_type": "SHOP_NOW",
            "caption": "meesho.com",
            "link_description": "",
            "link_url": "https://www.meesho.com/HF%20WARSI%20(%20WHITE+%20BLACK,,,%20MU%20DADDY%20IS%20MY%20SUPER%20HERO/p/1NSI6I",
            "title": "HF WARSI ( WHITE+ BLACK,,, MU DADDY IS MY SUPER HERO",
            "cta_text": "Shop Now",
            "video_hd_url": null,
            "video_preview_image_url": null,
            "video_sd_url": null,
            "watermarked_video_hd_url": null,
            "watermarked_video_sd_url": null,
            "image_crops": [],
            "original_image_url": "https://scontent-iad3-2.xx.fbcdn.net/v/t39.35426-6/720242843_1913173552688509_4017626773566325394_n.jpg?ccb=1-7",
            "resized_image_url": "https://scontent-iad3-2.xx.fbcdn.net/v/t39.35426-6/720242843_1913173552688509_4017626773566325394_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
            "watermarked_resized_image_url": ""
          }
        ],
        "cta_text": "Shop now",
        "cta_type": "SHOP_NOW",
        "country_iso_code": null,
        "disclaimer_label": null,
        "display_format": "DPA",
        "event": null,
        "images": [],
        "is_reshared": false,
        "link_description": null,
        "link_url": "http://www.meesho.com/",
        "page_categories": [
          "Shopping"
        ],
        "page_id": "269617286730030",
        "page_is_deleted": false,
        "page_like_count": 1854563,
        "page_name": "Meesho",
        "page_profile_picture_url": "https://scontent-iad3-2.xx.fbcdn.net/v/t39.35426-6/721189421_1014021764537612_2538789601771530654_n.jpg?stp=dst-jpg_s60x60_tt6&ccb=1-7",
        "page_profile_uri": "https://www.facebook.com/meeshosupply/",
        "root_reshared_post": null,
        "title": "{{product.name}}",
        "videos": [],
        "additional_info": null,
        "ec_certificates": [],
        "extra_images": [],
        "extra_links": [],
        "extra_texts": [],
        "extra_videos": []
      },
      "spend": null,
      "start_date": 1788332400,
      "state_media_run_label": null,
      "targeted_or_reached_countries": [],
      "total_active_time": null,
      "url": "https://www.facebook.com/ads/library/?id=1779502603077516",
      "start_date_string": "2026-09-02T07:00:00.000Z",
      "end_date_string": "2026-11-16T08:00:00.000Z"
    },
    {
      "ad_archive_id": "1773321330526397",
      "ad_id": null,
      "categories": [
        "UNKNOWN"
      ],
      "collation_count": null,
      "collation_id": null,
      "contains_digital_created_media": false,
      "contains_sensitive_content": false,
      "currency": "",
      "end_date": 1794816000,
      "fev_info": null,
      "gated_type": "ELIGIBLE",
      "has_user_reported": false,
      "hide_data_status": "NONE",
      "impressions_with_index": {
        "impressions_text": null,
        "impressions_index": -1
      },
      "is_aaa_eligible": false,
      "is_active": true,
      "menu_items": [],
      "page_id": "269617286730030",
      "page_is_deleted": false,
      "page_name": "Meesho",
      "publisher_platform": [
        "FACEBOOK",
        "INSTAGRAM",
        "AUDIENCE_NETWORK"
      ],
      "reach_estimate": null,
      "regional_regulation_data": {
        "finserv": {
          "is_deemed_finserv": false,
          "is_limited_delivery": false
        },
        "tw_anti_scam": {
          "is_limited_delivery": false
        }
      },
      "report_count": null,
      "snapshot": {
        "body": {
          "text": "Another reason to try Meesho? 🤩 Get up to 35% off on your first order! Also enjoy 🚚 Free Delivery 💸 Cash-on-delivery ↩️ Easy returns 💰 Instant refunds"
        },
        "branded_content": null,
        "brazil_tax_id": null,
        "byline": null,
        "caption": "meesho.com",
        "cards": [
          {
            "body": "Another reason to try Meesho? 🤩 Get up to 35% off on your first order! Also enjoy 🚚 Free Delivery 💸 Cash-on-delivery ↩️ Easy returns 💰 Instant refunds",
            "cta_type": "SHOP_NOW",
            "caption": "meesho.com",
            "link_description": "₹85",
            "link_url": "https://www.meesho.com/HF%20WARSI%20(%20WHITE+%20BLACK,,,%20MU%20DADDY%20IS%20MY%20SUPER%20HERO/p/1NSI6I",
            "title": "HF WARSI ( WHITE+ BLACK,,, MU DADDY IS MY SUPER HERO",
            "cta_text": "Shop Now",
            "video_hd_url": null,
            "video_preview_image_url": null,
            "video_sd_url": null,
            "watermarked_video_hd_url": null,
            "watermarked_video_sd_url": null,
            "image_crops": [],
            "original_image_url": "https://scontent-iad6-1.xx.fbcdn.net/v/t39.35426-6/725860219_1771987933660907_7735450207815869998_n.jpg?ccb=1-7",
            "resized_image_url": "https://scontent-iad6-1.xx.fbcdn.net/v/t39.35426-6/725860219_1771987933660907_7735450207815869998_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
            "watermarked_resized_image_url": ""
          },
          {
            "body": "Another reason to try Meesho? 🤩 Get up to 35% off on your first order! Also enjoy 🚚 Free Delivery 💸 Cash-on-delivery ↩️ Easy returns 💰 Instant refunds",
            "cta_type": "SHOP_NOW",
            "caption": "meesho.com",
            "link_description": "₹215",
            "link_url": "https://www.meesho.com/Girls%20%20%20Lehenga%20Cholis%20Pack%20Of%201/p/5YTJH",
            "title": "Girls   Lehenga Cholis Pack Of 1",
            "cta_text": "Shop Now",
            "video_hd_url": null,
            "video_preview_image_url": null,
            "video_sd_url": null,
            "watermarked_video_hd_url": null,
            "watermarked_video_sd_url": null,
            "image_crops": [],
            "original_image_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.35426-6/725319311_1614094743410179_6631985672103979995_n.jpg?ccb=1-7",
            "resized_image_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.35426-6/725319311_1614094743410179_6631985672103979995_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
            "watermarked_resized_image_url": ""
          },
          {
            "body": "Another reason to try Meesho? 🤩 Get up to 35% off on your first order! Also enjoy 🚚 Free Delivery 💸 Cash-on-delivery ↩️ Easy returns 💰 Instant refunds",
            "cta_type": "SHOP_NOW",
            "caption": "meesho.com",
            "link_description": "₹238",
            "link_url": "https://www.meesho.com/StyFun%20Women's%20Bra/p/5ZJT6",
            "title": "StyFun Women's Bra",
            "cta_text": "Shop Now",
            "video_hd_url": null,
            "video_preview_image_url": null,
            "video_sd_url": null,
            "watermarked_video_hd_url": null,
            "watermarked_video_sd_url": null,
            "image_crops": [],
            "original_image_url": "https://scontent-iad6-1.xx.fbcdn.net/v/t39.35426-6/725584546_1819382926112039_6148740998578962985_n.jpg?ccb=1-7",
            "resized_image_url": "https://scontent-iad6-1.xx.fbcdn.net/v/t39.35426-6/725584546_1819382926112039_6148740998578962985_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
            "watermarked_resized_image_url": ""
          }
        ],
        "cta_text": "Shop now",
        "cta_type": "SHOP_NOW",
        "country_iso_code": null,
        "disclaimer_label": null,
        "display_format": "DPA",
        "event": null,
        "images": [],
        "is_reshared": false,
        "link_description": null,
        "link_url": "http://meesho.com/",
        "page_categories": [
          "Shopping"
        ],
        "page_id": "269617286730030",
        "page_is_deleted": false,
        "page_like_count": 1854563,
        "page_name": "Meesho",
        "page_profile_picture_url": "https://scontent-iad6-1.xx.fbcdn.net/v/t39.35426-6/726954336_28333033216284993_3422134120289596517_n.jpg?stp=dst-jpg_s60x60_tt6&ccb=1-7",
        "page_profile_uri": "https://www.facebook.com/meeshosupply/",
        "root_reshared_post": null,
        "title": "{{product.name}}",
        "videos": [],
        "additional_info": null,
        "ec_certificates": [],
        "extra_images": [],
        "extra_links": [],
        "extra_texts": [],
        "extra_videos": []
      },
      "spend": null,
      "start_date": 1788332400,
      "state_media_run_label": null,
      "targeted_or_reached_countries": [],
      "total_active_time": null,
      "url": "https://www.facebook.com/ads/library/?id=1773321330526397",
      "start_date_string": "2026-09-02T07:00:00.000Z",
      "end_date_string": "2026-11-16T08:00:00.000Z"
    }
  ],
  "searchResultsCount": 50001,
  "cursor": "eyJuIjoyLCJzIjpudWxsLCJ1IjoiYTMwMWFjMzktNjYzOC00ZDg5LTlhNDUtYTcxM2FhYjI1YmExIiwiYyI6IkFRSFROaFB6cjV0VldsRHowUEFlT0JTbXdfVGxWTy1UY3htbUdMZTZHZEhJc1BkSnh6NkpMY1dkREs1SWx6dnN1b29rIiwiayI6NTAwMDF9"
}
Response JSON · /v1/facebook/adLibrary/search/ads

What it returns

success boolean
credits_remaining integer
credits_charged integer
searchResults array
searchResultsCount integernull
The Ad Library's result count for the search (it caps at 50,001); null when Facebook does not report one
cursor stringnull
Pass with the same filters to get the next page; null on the last page

Parameters

query string query required

Keyword to search for (up to 200 characters)

sort_by string query optional

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

Options: total_impressionsrelevancy_monthly_grouped
search_type string query optional

keyword_unordered (default) matches the words in any order; keyword_exact_phrase matches the phrase as written.

Options: keyword_unorderedkeyword_exact_phrase
ad_type string query optional

Search for all ads or only political and issue ads

Options: allpolitical_and_issue_ads
country string query optional

Where Facebook showed the ad: one two-letter country code, such as US, or ALL (default). Results can include advertisers from other countries whose ads reached it.

language string query optional

Only ads in this language: a two-letter code such as EN, ES or FR.

status string query optional

Status of the ad. Defaults to ACTIVE.

Options: ALLACTIVEINACTIVE
media_type string query optional

Ad media type. Defaults to ALL. MEME means an image with text.

Options: ALLIMAGEVIDEOMEMEIMAGE_AND_MEMENONE
start_date string query optional

Only ads with impressions on or after this date, YYYY-MM-DD.

end_date string query optional

Only ads with impressions on or before this date, YYYY-MM-DD.

trim boolean query optional

Set true for a trimmed response.

cursor string query optional

The cursor from the previous page. Send it with the same filters.

Use cases

Billing

Errors cost zero credits. Empty results follow this operation’s rules.

Default: 1 credit

An empty result costs 0 credits.

How charges are determined

Cost is decided per call, not per endpoint: the same operation can cost different amounts depending on what it returns.

A call that fails costs 0 credits. A result served from cache costs 0 credits.

`default` is the cost when no rule matches. Rules are evaluated in order and the first whose conditions all hold wins.

A `when` condition is one of: `param` (the request parameter is true), `outcome` (the classifier's outcome), `empty` / `nonEmpty` (a response field is empty and absent, or a non-empty array or string), `flag` (a response field is exactly true).

A cost of `{ perStartedMinute: n, of: [fields] }` is n x max(1, ceil(seconds / 60)), so even a short result bills at least one minute.

Guides

FAQ

How much does the Facebook Ad Library Search API cost?

A call costs 1 credit by default. Errors cost 0 credits. New accounts get 100 free credits with no card. After that, credits come in one-time packs that never expire: 25,000 for $27 and 500,000 for $297 (plus any tax). There is no subscription.

What do I need to call it?

An API key in the x-api-key header, plus query. You don't need a Facebook Ad Library account or developer app.

What does it return?

Typed JSON. Top-level fields include searchResults, searchResultsCount and cursor. The full schema and a real sample response are on this page and in the API reference.

Is this an official Facebook Ad Library API?

No. Fetchproof is an unofficial API that returns public Facebook Ad Library data only.