{
"count": 2,
"max": 2,
"partial": false,
"duration_ms": 6487,
"items": [
{
"ad_id": "1035557939127607",
"page_id": "1017990781592052",
"page_name": "Ollie",
"page_url": "https://www.facebook.com/MyOllie/",
"page_picture_url": "https://scontent-lax3-2.xx.fbcdn.net/v/t39.35426-6/711349424_28295790646676030_5918466164151345700_n.jpg?stp=dst-jpg_s60x60_tt6&_nc_cat=110&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=wiFRH1E75AgQ7kNvwFfVA1m&_nc_oc=AdogT3cx0eNt6SRMOkYp_7Dd4jVmMaS5vjf89jrh3RM2wwqN9a7wJJvLO7tInqclVRA&_nc_zt=14&_nc_ht=scontent-lax3-2.xx&_nc_gid=tdETLBeQEOKMnHyk-4-ytA&_nc_ss=70389&oh=00_AQU11-pXXyXqX8gNYf-WhmCuRtnqXcAy7jDxB_4tqupNVg&oe=6B13B630",
"page_categories": [
"Pet Supplies"
],
"page_like_count": 72100,
"is_active": true,
"start_date": "2026-06-01T07:00:00Z",
"end_date": "2026-11-30T08:00:00Z",
"platforms": [
"facebook",
"instagram",
"messenger",
"threads"
],
"search_country": "US",
"reached_countries": [],
"ad_text": "FETCH 50% OFF + FREE WELCOME KIT 🧡 Ollie creates fresh meals with a simple mission: your dog’s wellness. \n\n🐾 Custom meal plans for your pup\n🥕 100% fresh, human-grade ingredients\n🩺 Formulated with vet nutritionists \n🐕 Unlimited routine health screenings\n⭐️ Thousands of raving reviews\n\nDiscover the perfect meal plan for your dog with a quick quiz!",
"title": "Get 50% OFF Your First Box!",
"link_description": null,
"caption": "www.ollie.com",
"cta_text": "Shop now",
"cta_type": "SHOP_NOW",
"link_url": "https://www.ollie.com/try-ollie/?offer_code=HAPPYPAWS",
"display_format": "VIDEO",
"image_urls": [],
"video_urls": [
"https://video-lax3-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQODrGeD0nsHkBrk45xIt-Kaho2KxylUB33razWmZCNRH0edsJkV0_XtOtnC5BZSl3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S_DD4QKQ&oe=6B13B99F"
],
"cards": [],
"variants_count": 1,
"collation_id": "1696547541254623",
"spend_range": null,
"impressions_range": null,
"impressions_text": null,
"reach_estimate": null,
"currency": null,
"ad_library_url": "https://www.facebook.com/ads/library/?id=1035557939127607",
"source_url": "https://www.facebook.com/ads/library/?id=1035557939127607",
"scraped_at": "2026-11-30T19:44:05Z"
},
{
"ad_id": "1287559446042089",
"page_id": "780375105369159",
"page_name": "Hungryroot",
"page_url": "https://www.facebook.com/100084984665003/",
"page_picture_url": "https://scontent-lax3-2.xx.fbcdn.net/v/t39.35426-6/676603104_931738469765977_5656615153323614637_n.jpg?stp=dst-jpg_s60x60_tt6&_nc_cat=103&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=L6hD0lDWPgkQ7kNvwH4ZwBw&_nc_oc=AdoPuxUczVviAfbPS46LnfruJZI5i0prZ8zZxWYp88hznz5_ZdLED0_IoNj393l8xrw&_nc_zt=14&_nc_ht=scontent-lax3-2.xx&_nc_gid=tdETLBeQEOKMnHyk-4-ytA&_nc_ss=70389&oh=00_AQV-1e5cr4YGG4epO68gMPRd00Ac8Mmk9AxNRT9tQU8c_A&oe=6B13B0DC",
"page_categories": [
"Business"
],
"page_like_count": 6908,
"is_active": true,
"start_date": "2026-04-28T07:00:00Z",
"end_date": "2026-11-30T08:00:00Z",
"platforms": [
"facebook",
"instagram",
"messenger",
"threads"
],
"search_country": "US",
"reached_countries": [],
"ad_text": "This is what happens when I decide I’m done thinking about groceries. Meals, snacks, breakfast, lunch — all handled without the mental load. Hungryroot builds your order around your family, your schedule, and how you actually eat… which is why my husband is now carrying half the kitchen across the table 😅 If you’re tired of answering “what’s for dinner?” every single night, this has been such an easy solution for busy weeks. 💸 I shared the discount code at the end of the video if you want to try it for less. #HungryrootPartner #hungryroot #ad #hungryrootdelivery #hungryroothaul",
"title": null,
"link_description": null,
"caption": "eat.hungryroot.com",
"cta_text": "See details",
"cta_type": "SEE_DETAILS",
"link_url": "https://eat.hungryroot.com/WTEH-home-B-40",
"display_format": "VIDEO",
"image_urls": [],
"video_urls": [
"https://video-lax3-2.xx.fbcdn.net/o1/v/t2/f2/m86/AQPIqD1Ca8CcMlHrLER8JYe-LJ28RlHDRfURbxN3RDqEYEzDdSX2vCc3o0qLwc7UX8q8IDWwpX5IkYeYWc5JrfdZtUNvShOsBvovMdo.mp4?_nc_cat=105&_nc_sid=b66105&_nc_ht=video-lax3-2.xx.fbcdn.net&_nc_ohc=v7mt7jqQJLIQ7kNvwGGEegy&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5WSV9VU0VDQVNFX1BST0RVQ1RfVFlQRS4uQzMuMzYwLmRhc2hfYmFzZWxpbmVfM192MSIsInhwdl9hc3NldF9pZCI6MTk3ODU5MDIzMjY5NjM3NCwiYXNzZXRfYWdlX2RheXMiOjMyOSwidmlfdXNlY2FzZV9pZCI6MTIzNzQsImR1cmF0aW9uX3MiOjEwMiwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&vs=33c0ea124c6b2b4a&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC85QTQxQzE1RjBERTIyMUZENkM3OENDOTQyMDExMjZCNl92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYRmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC84NzM5NDc2MzUxODUwMTRfNzcwNDM5MzI2MzkwNzk1NjM5OC5tcDQVAgLIARIAKAAYABsDiAd1c2Vfb2lsATEScHJvZ3Jlc3NpdmVfcmVjaXBlATESY29weV9zYW1wbGVfZ3JvdXBzATEVAAAm7NjO_43hgwcVAigCQzMsF0BZiIMSbpeNGBJkYXNoX2Jhc2VsaW5lXzNfdjERAHUAZazBAQA&_nc_gid=tdETLBeQEOKMnHyk-4-ytA&_nc_ss=70389&_nc_map=urlgen_bucketless&_nc_zt=28&_nc_enc=U_igPHW66VODmqqTyx7jgYUOOCM88N4flqlsgxbBfVWYwjGJ889a0TLearUVcDgOLu9PDizbNDogHC4TS9xYPBbigZhIxjO341nZ4fuuU_pEItr5pRyGtx-v5n8&oh=00_AQV33xzvOVo6rOofVpEHaR6duKHUOTKbyqIyIGDRC6SreA&oe=6B0F946A"
],
"cards": [],
"variants_count": 3,
"collation_id": "891747377111218",
"spend_range": null,
"impressions_range": null,
"impressions_text": null,
"reach_estimate": null,
"currency": null,
"ad_library_url": "https://www.facebook.com/ads/library/?id=1287559446042089",
"source_url": "https://www.facebook.com/ads/library/?id=1287559446042089",
"scraped_at": "2026-11-30T19:44:05Z"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15798/facebook+ad+library+ads+data+api/43291/search+ads?query=meal kit&country=US&status=active&media=all&max=20' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Facebook Ad Library Ads Data API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime.
Search the Meta Ad Library by keyword, page ID or Ad Library URL: ad text, media links, CTA, landing page, platforms, dates and page details as JSON.
Up to 20 ads per call, set with max.
Ad ID, page ID, name, URL, picture, categories and like count, active flag, start and end dates, platforms, ad text, title, caption, call to action, landing URL, display format, image and video links, carousel cards, variant count, the Ad Library link and, where Meta shows them, spend and impression ranges and reached countries.
Yes. Put the Facebook page ID in query to get that page's ads.
No. Political and issue ads are removed.
In our tests a call took about 5 to 9 seconds.
You get count 0 and an empty items list.
400 means a parameter is missing or invalid, and the message names it. 408 means the source was too slow and nothing came back in time; retry the call. 429 means too many calls are running at once or the daily capacity is reached; the message says which and when to retry. 502 means the source failed; retry the call. 500 means an internal error.
No. It reads only public pages that a logged-out visitor can see, and never logs in.
Each call has a fixed time limit of about 20 seconds. If the source is slow, you get the items collected within that limit and partial is true; call again for a complete answer. If nothing came back in time you get 408 instead. partial is false when the answer is complete.
Search by keyword, Facebook page ID, or a pasted Meta Ad Library search URL. The endpoint returns matching public ads as JSON.
Filter results by country, whether ads are active, and media type. These filters help focus the returned ads on a particular market or format.
You can specify a country to filter the public Ad Library results. The response may also include reached countries for an ad when Meta provides that information.
The JSON response includes summary fields such as count, max, partial, and duration_ms, plus an items array containing ad records. Each item groups ad details with information about its Facebook page.
Start_date and end_date indicate the dates associated with an ad’s run in the Ad Library. An end date may be absent or unavailable for an ad that is still active.
Depending on what Meta exposes, an ad record can include image or video links, carousel cards, display format, call to action, and landing-page URL. Some fields may not be present for every ad.
Page_id, page_name, page_url, page_picture_url, page_categories, and page_like_count help identify the advertiser and provide context for comparing ads from different pages.
The available details depend on what Meta makes public for that ad. For example, spend and impression ranges or reached countries may appear only when Meta provides them.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund