Sources › Ads › Meta Ad Library › Ads by advertiser

Meta Ad Library Ads by advertiser API

Every ad one Facebook page is currently running.

Meta Ad LibraryGET /advertiser-adsAll plans10 Zap

Request

GET
https://api.zapi.ink/v1/ads:meta/advertiser-ads/:pageId

Send your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 10 minutes.

Parameters

NameTypeInRequiredDescription
pageIdstringpathYesFacebook page ID of the advertiser, from the search endpoint's `pageId` Example: 101039196037152
countrystringqueryNoISO 3166-1 alpha-2 country the ads were delivered in. Default ID Example: ID
activeStatusenum: active | inactive | allqueryNoDelivery status of the ads. Default active Example: active
mediaTypeenum: all | image | meme | image_and_meme | video | nonequeryNoCreative format filter. Default all Example: video
adTypeenum: all | political_and_issue_adsqueryNoAd category. Default all Example: all

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/ads:meta/advertiser-ads/101039196037152?country=ID&activeStatus=active&mediaType=video&adType=all" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/ads:meta/advertiser-ads/101039196037152?country=ID&activeStatus=active&mediaType=video&adType=all", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/ads:meta/advertiser-ads/101039196037152",
    params={"country":"ID","activeStatus":"active","mediaType":"video","adType":"all"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "ads:meta",
  "data": {
    "ads": [
      {
        "adId": "1201933001802999",
        "body": "Scorri un mondo di intrattenimento infinito, solo su TikTok",
        "cards": [
          {
            "body": "Scorri un mondo di intrattenimento infinito, solo su TikTok",
            "image": "https://scontent-cgk1-2.xx.fbcdn.net/v/t39.35426-6/582065307_1537419397293914_814462689383364053_n.jpg?_nc_cat=107&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=XfFVGMqy1NQQ7kNvwH8SKSR&_nc_oc=Adq…",
            "title": "TikTok - Videos, Shop & LIVE - Apps on Google Play",
            "caption": "play.google.com",
            "ctaText": "Download",
            "ctaType": "DOWNLOAD",
            "linkUrl": "https://www.tiktok.com/",
            "imageResized": "https://scontent-cgk1-2.xx.fbcdn.net/v/t39.35426-6/582065307_1537419397293914_814462689383364053_n.jpg?stp=dst-jpg_s600x600_tt6&_nc_cat=107&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=XfFVGMqy1…",
            "linkDescription": "Join your friends and discover videos you love, only on TikTok"
          },
          {
            "body": "Scorri un mondo di intrattenimento infinito, solo su TikTok",
            "image": "https://scontent-cgk2-2.xx.fbcdn.net/v/t39.35426-6/581731865_1390442412452861_3547426849243737041_n.jpg?_nc_cat=105&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=Ah9GEtzG06kQ7kNvwHM8VDs&_nc_oc=Ad…",
            "title": "TikTok - Videos, Shop & LIVE - Apps on Google Play",
            "caption": "play.google.com",
            "ctaText": "Download",
            "ctaType": "DOWNLOAD",
            "linkUrl": "https://www.tiktok.com/",
            "imageResized": "https://scontent-cgk2-2.xx.fbcdn.net/v/t39.35426-6/581731865_1390442412452861_3547426849243737041_n.jpg?stp=dst-jpg_s600x600_tt6&_nc_cat=105&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=Ah9GEtzG…",
            "linkDescription": "Join your friends and discover videos you love, only on TikTok"
          }
        ],
        "title": "TikTok - Videos, Shop & LIVE",
        "caption": "play.google.com",
        "ctaText": "Download",
        "ctaType": "DOWNLOAD",
        "endDate": 1788332400,
        "linkUrl": "http://play.google.com/store/apps/details?id=com.zhiliaoapp.musically",
        "isActive": true,
        "startDate": 1763107200,
        "categories": [
          "UNKNOWN"
        ],
        "reportCount": 0,
        "displayFormat": "DPA",
        "collationCount": 0,
        "totalActiveTime": 0,
        "impressionsIndex": -1,
        "publisherPlatforms": [
          "FACEBOOK",
          "INSTAGRAM"
        ],
        "containsSensitiveContent": false,
        "containsDigitalCreatedMedia": false
      },
      {
        "adId": "1167498484932939",
        "body": "Scorri un mondo di intrattenimento infinito, solo su TikTok",
        "cards": [
          {
            "body": "Scorri un mondo di intrattenimento infinito, solo su TikTok",
            "image": "https://scontent-cgk2-1.xx.fbcdn.net/v/t39.35426-6/581938746_1895111804758285_6665172458856455615_n.jpg?_nc_cat=106&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=1L2gaMS5VEoQ7kNvwE7J3kn&_nc_oc=Ad…",
            "title": "Scopri la magia di TikTok",
            "caption": "play.google.com",
            "ctaText": "Download",
            "ctaType": "DOWNLOAD",
            "linkUrl": "https://www.tiktok.com/",
            "imageResized": "https://scontent-cgk2-1.xx.fbcdn.net/v/t39.35426-6/581938746_1895111804758285_6665172458856455615_n.jpg?stp=dst-jpg_s600x600_tt6&_nc_cat=106&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=1L2gaMS5…",
            "linkDescription": "Join your friends and discover videos you love, only on TikTok"
          },
          {
            "body": "Scorri un mondo di intrattenimento infinito, solo su TikTok",
            "image": "https://scontent-cgk1-2.xx.fbcdn.net/v/t39.35426-6/583221475_624214347444471_6827425103835153825_n.jpg?_nc_cat=107&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=fuJ9X5_1KVEQ7kNvwGvXzOl&_nc_oc=Adp…",
            "title": "Scopri la magia di TikTok",
            "caption": "play.google.com",
            "ctaText": "Download",
            "ctaType": "DOWNLOAD",
            "linkUrl": "https://www.tiktok.com/",
            "imageResized": "https://scontent-cgk1-2.xx.fbcdn.net/v/t39.35426-6/583221475_624214347444471_6827425103835153825_n.jpg?stp=dst-jpg_s600x600_tt6&_nc_cat=107&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=fuJ9X5_1K…",
            "linkDescription": "Join your friends and discover videos you love, only on TikTok"
          }
        ],
        "title": "{{product.name}}",
        "caption": "play.google.com",
        "ctaText": "Download",
        "ctaType": "DOWNLOAD",
        "endDate": 1788332400,
        "linkUrl": "http://play.google.com/store/apps/details?id=com.zhiliaoapp.musically",
        "isActive": true,
        "startDate": 1763107200,
        "categories": [
          "UNKNOWN"
        ],
        "reportCount": 0,
        "displayFormat": "DPA",
        "collationCount": 0,
        "totalActiveTime": 0,
        "impressionsIndex": -1,
        "publisherPlatforms": [
          "FACEBOOK",
          "INSTAGRAM"
        ],
        "containsSensitiveContent": false,
        "containsDigitalCreatedMedia": false
      }
    ],
    "count": 30,
    "total": 46,
    "pageId": "101039196037152",
    "country": "ID",
    "pageName": "TikTok - EU",
    "pageSize": 30,
    "mediaType": "all",
    "activeStatus": "active",
    "pageLikeCount": 45901,
    "pageCategories": [
      "Entertainment website"
    ],
    "pageProfileUri": "https://www.facebook.com/100084043506456/"
  },
  "timestamp": "2026-09-02T07:34:29Z"
}

Frequently asked questions

How do I call the Meta Ad Library Ads by advertiser API?

Send a GET request to https://api.zapi.ink/v1/ads:meta/advertiser-ads/101039196037152 with your Zapi key in the x-api-key header. Parameters — required: pageId; optional: country, activeStatus, mediaType, adType. The response is JSON in the { project, data, timestamp } envelope.

What does the Meta Ad Library Ads by advertiser API return?

Every ad one Facebook page is currently running. The example response has the fields ads, count, total, pageId, country, pageName, pageSize, mediaType. Each item in ads has fields such as adId, body, cards, title, caption, ctaText, ctaType, endDate.

Is the Meta Ad Library Ads by advertiser API free?

Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 10 Zap. Paid plans raise the limits.

Can an AI assistant call the Meta Ad Library Ads by advertiser API?

Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "meta" and endpoint "advertiser-ads".

What other Meta Ad Library API endpoints are there?

It has 3 endpoints. Besides Ads by advertiser: Search ads, Ad detail.