Facebook Ad Library Company Ads API
Provide one of: pageId, companyName. A company's ads from its Ad Library page, with the same filters as ad search. Returns results and a cursor. An empty page costs 0 credits, and an unknown companyName is a 404 at 0 credits.
Quick start
cURL
curl --request GET 'https://api.fetchproof.com/v1/facebook/adLibrary/company/ads?pageId=15087023444' \
--header 'x-api-key: YOUR_API_KEY' JavaScript
const response = await fetch("https://api.fetchproof.com/v1/facebook/adLibrary/company/ads?pageId=15087023444", {
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/company/ads?pageId=15087023444",
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/company/ads?pageId=15087023444", 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/company/ads?pageId=15087023444");
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,
"results": [
{
"ad_archive_id": "1702938977100376",
"ad_id": null,
"categories": [
"UNKNOWN"
],
"collation_count": null,
"collation_id": null,
"contains_digital_created_media": false,
"contains_sensitive_content": false,
"currency": "",
"end_date": 1794902400,
"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": "15087023444",
"page_is_deleted": false,
"page_name": "Nike",
"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": "Bring sports more fully into your day with the Nike App."
},
"branded_content": null,
"brazil_tax_id": null,
"byline": null,
"caption": "itunes.apple.com",
"cards": [
{
"body": "Bring sports more fully into your day with the Nike App.",
"cta_type": "INSTALL_MOBILE_APP",
"caption": "itunes.apple.com",
"link_description": "₱1,695",
"link_url": "https://www.nike.com/ph/t/dri-fit-icon-basketball-jersey-4Z5f8P/DV9968-010",
"title": "Nike Dri-FIT Icon Men's Basketball Jersey",
"cta_text": "Install 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/431718739_3499889103593675_2072398184202305018_n.jpg?ccb=1-7",
"resized_image_url": "https://scontent-iad6-1.xx.fbcdn.net/v/t39.35426-6/431718739_3499889103593675_2072398184202305018_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
"watermarked_resized_image_url": ""
},
{
"body": "Bring sports more fully into your day with the Nike App.",
"cta_type": "INSTALL_MOBILE_APP",
"caption": "itunes.apple.com",
"link_description": "₱3,995",
"link_url": "https://www.nike.com/ph/t/run-swift-3-road-running-shoes-2fHbzp/DR2698-002",
"title": "Nike Run Swift 3 Women's Road Running Shoes",
"cta_text": "Install 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/431679131_949214166636263_7090981238489979310_n.jpg?ccb=1-7",
"resized_image_url": "https://scontent-iad6-1.xx.fbcdn.net/v/t39.35426-6/431679131_949214166636263_7090981238489979310_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
"watermarked_resized_image_url": ""
},
{
"body": "Bring sports more fully into your day with the Nike App.",
"cta_type": "INSTALL_MOBILE_APP",
"caption": "itunes.apple.com",
"link_description": "₱3,599",
"link_url": "https://www.nike.com/ph/t/acg-polartec-wolf-tree-mid-rise-trousers-mVbQBn/CV0615-060",
"title": "Nike ACG Polartec ® 'Wolf Tree' Women's Mid-Rise Trousers",
"cta_text": "Install 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/431748186_289316047369916_1595311644416959995_n.jpg?ccb=1-7",
"resized_image_url": "https://scontent-iad3-2.xx.fbcdn.net/v/t39.35426-6/431748186_289316047369916_1595311644416959995_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
"watermarked_resized_image_url": ""
}
],
"cta_text": "Install now",
"cta_type": "INSTALL_MOBILE_APP",
"country_iso_code": null,
"disclaimer_label": null,
"display_format": "DPA",
"event": null,
"images": [],
"is_reshared": false,
"link_description": null,
"link_url": "http://itunes.apple.com/app/id1095459556",
"page_categories": [
"Sportswear",
"Product/service"
],
"page_id": "15087023444",
"page_is_deleted": false,
"page_like_count": 39489061,
"page_name": "Nike",
"page_profile_picture_url": "https://scontent-iad6-1.xx.fbcdn.net/v/t39.35426-6/431756959_712871054375981_2401799800446082357_n.jpg?stp=dst-jpg_s60x60_tt6&ccb=1-7",
"page_profile_uri": "https://www.facebook.com/nike/",
"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": 1744009200,
"state_media_run_label": null,
"targeted_or_reached_countries": [],
"total_active_time": null,
"url": "https://www.facebook.com/ads/library/?id=1702938977100376",
"start_date_string": "2025-04-07T07:00:00.000Z",
"end_date_string": "2026-11-17T08:00:00.000Z"
},
{
"ad_archive_id": "1559738104701476",
"ad_id": null,
"categories": [
"UNKNOWN"
],
"collation_count": null,
"collation_id": null,
"contains_digital_created_media": false,
"contains_sensitive_content": false,
"currency": "",
"end_date": 1794902400,
"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": "15087023444",
"page_is_deleted": false,
"page_name": "Nike",
"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": "Encuentra tu mejor estilo.\nLlegó el momento de que disfrutes los beneficios que la Nike App tiene para ti 😎. ¡Descárgala ahora!"
},
"branded_content": null,
"brazil_tax_id": null,
"byline": null,
"caption": "play.google.com",
"cards": [
{
"body": "Encuentra tu mejor estilo.\nLlegó el momento de que disfrutes los beneficios que la Nike App tiene para ti 😎. ¡Descárgala ahora!",
"cta_type": "INSTALL_MOBILE_APP",
"caption": "play.google.com",
"link_description": "$1,409",
"link_url": "https://www.nike.com/mx/t/pants-de-tejido-woven-upf-sportswear-tech-pack-Hv1J8m?cp=54413048966_soc_",
"title": "Pants de tejido Woven para hombre UPF Nike Sportswear Tech Pack - Negro",
"cta_text": "Install 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/399999246_1565808950832700_1918298054008645175_n.jpg?ccb=1-7",
"resized_image_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.35426-6/399999246_1565808950832700_1918298054008645175_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
"watermarked_resized_image_url": ""
},
{
"body": "Encuentra tu mejor estilo.\nLlegó el momento de que disfrutes los beneficios que la Nike App tiene para ti 😎. ¡Descárgala ahora!",
"cta_type": "INSTALL_MOBILE_APP",
"caption": "play.google.com",
"link_description": "$854",
"link_url": "https://www.nike.com/mx/t/shorts-dri-fit-de-18-900-versátiles-sin-forro-form-1Kl48s?cp=54413048966_soc_",
"title": "Shorts Dri-FIT de 18 cm versátiles sin forro para hombre Nike Form - Negro",
"cta_text": "Install 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/399960590_1003889420725694_6884301960231990928_n.jpg?ccb=1-7",
"resized_image_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.35426-6/399960590_1003889420725694_6884301960231990928_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
"watermarked_resized_image_url": ""
},
{
"body": "Encuentra tu mejor estilo.\nLlegó el momento de que disfrutes los beneficios que la Nike App tiene para ti 😎. ¡Descárgala ahora!",
"cta_type": "INSTALL_MOBILE_APP",
"caption": "play.google.com",
"link_description": "$2,699",
"link_url": "https://www.nike.com/mx/t/calzado-blazer-mid-77-se-j99WT3?cp=54413048966_soc_",
"title": "Calzado para hombre Nike Blazer Mid '77 SE - Blanco",
"cta_text": "Install 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/400107091_3246840442276703_8782322399633680368_n.jpg?ccb=1-7",
"resized_image_url": "https://scontent-iad6-1.xx.fbcdn.net/v/t39.35426-6/400107091_3246840442276703_8782322399633680368_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
"watermarked_resized_image_url": ""
}
],
"cta_text": "Install now",
"cta_type": "INSTALL_MOBILE_APP",
"country_iso_code": null,
"disclaimer_label": null,
"display_format": "DPA",
"event": null,
"images": [],
"is_reshared": false,
"link_description": null,
"link_url": "http://play.google.com/store/apps/details?id=com.nike.omega",
"page_categories": [
"Sportswear",
"Product/service"
],
"page_id": "15087023444",
"page_is_deleted": false,
"page_like_count": 39489061,
"page_name": "Nike",
"page_profile_picture_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.35426-6/400027547_358739853502630_8144226094621458298_n.jpg?stp=dst-jpg_s60x60_tt6&ccb=1-7",
"page_profile_uri": "https://www.facebook.com/nike/",
"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": 1745564400,
"state_media_run_label": null,
"targeted_or_reached_countries": [],
"total_active_time": null,
"url": "https://www.facebook.com/ads/library/?id=1559738104701476",
"start_date_string": "2025-04-25T07:00:00.000Z",
"end_date_string": "2026-11-17T08:00:00.000Z"
},
{
"ad_archive_id": "1057679207068133",
"ad_id": null,
"categories": [
"UNKNOWN"
],
"collation_count": null,
"collation_id": null,
"contains_digital_created_media": false,
"contains_sensitive_content": false,
"currency": "",
"end_date": 1794902400,
"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": "15087023444",
"page_is_deleted": false,
"page_name": "Nike",
"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": "Bring sports more fully into your day with the Nike App."
},
"branded_content": null,
"brazil_tax_id": null,
"byline": null,
"caption": "play.google.com",
"cards": [
{
"body": "Bring sports more fully into your day with the Nike App.",
"cta_type": "INSTALL_MOBILE_APP",
"caption": "play.google.com",
"link_description": "PHP495",
"link_url": "https://www.nike.com/ph/t/j-football-shinguards-8MpGrw/SP0040-419",
"title": "Nike J Football Shinguards",
"cta_text": "Install 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/514248256_2007842006679167_738662925823509757_n.jpg?ccb=1-7",
"resized_image_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.35426-6/514248256_2007842006679167_738662925823509757_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
"watermarked_resized_image_url": ""
},
{
"body": "Bring sports more fully into your day with the Nike App.",
"cta_type": "INSTALL_MOBILE_APP",
"caption": "play.google.com",
"link_description": "PHP1,045",
"link_url": "https://www.nike.com/ph/t/sportswear-club-essentials-t-shirt-d4gKTP/DX7903-100",
"title": "Nike Sportswear Club Essentials Women's T-Shirt",
"cta_text": "Install 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/547489510_2631332267217915_6290663163282196184_n.jpg?ccb=1-7",
"resized_image_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.35426-6/547489510_2631332267217915_6290663163282196184_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
"watermarked_resized_image_url": ""
},
{
"body": "Bring sports more fully into your day with the Nike App.",
"cta_type": "INSTALL_MOBILE_APP",
"caption": "play.google.com",
"link_description": "PHP979",
"link_url": "https://www.nike.com/ph/t/legend-dri-fit-fitness-t-shirt-NrPHV8/DX0996-068",
"title": "Nike Legend Men's Dri-FIT Fitness T-Shirt",
"cta_text": "Install 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/548877042_753764517477287_321911023206603797_n.jpg?ccb=1-7",
"resized_image_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.35426-6/548877042_753764517477287_321911023206603797_n.jpg?stp=dst-jpg_s600x600_tt6&ccb=1-7",
"watermarked_resized_image_url": ""
}
],
"cta_text": "Install now",
"cta_type": "INSTALL_MOBILE_APP",
"country_iso_code": null,
"disclaimer_label": null,
"display_format": "DPA",
"event": null,
"images": [],
"is_reshared": false,
"link_description": null,
"link_url": "http://play.google.com/store/apps/details?id=com.nike.omega",
"page_categories": [
"Sportswear"
],
"page_id": "15087023444",
"page_is_deleted": false,
"page_like_count": 39489061,
"page_name": "Nike",
"page_profile_picture_url": "https://scontent-iad6-1.xx.fbcdn.net/v/t39.35426-6/546844820_1307854347365679_5443987621560373995_n.jpg?stp=dst-jpg_s60x60_tt6&ccb=1-7",
"page_profile_uri": "https://www.facebook.com/nike/",
"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": 1788159600,
"state_media_run_label": null,
"targeted_or_reached_countries": [],
"total_active_time": null,
"url": "https://www.facebook.com/ads/library/?id=1057679207068133",
"start_date_string": "2026-08-31T07:00:00.000Z",
"end_date_string": "2026-11-17T08:00:00.000Z"
}
],
"cursor": "eyJuIjoyLCJzIjpudWxsLCJ1IjoiMDUyZWFkMTktM2ZlZC00OGVhLWJiNzEtOTdmZDdkYzQ4NzQ3IiwiYyI6IkFRSFRkZF9fcDRoaEdYX3A2Nk9BODl1TERSVTdpR1JzSUpadWpqY2RoNmUxUmppOGV0TkpQWmI4OGFIOVZITk4yc0VnIiwiayI6MjIwMH0"
} What it returns
- success boolean
- credits_remaining integer
- credits_charged integer
- results array
- cursor string
- Pass with the same filters for the next page. Null on the last page.
Parameters
Ad Library page id, from /v1/facebook/adLibrary/search/companies. Provide pageId or companyName.
Company name, resolved to its Ad Library page (exact name first, else the top match). Provide companyName or pageId.
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.
Status of the ad. Defaults to ACTIVE.
Ad media type. Defaults to ALL. MEME means an image with text.
Only ads in this language: a two-letter code such as EN, ES or FR.
Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions.
Only ads with impressions on or after this date, YYYY-MM-DD.
Only ads with impressions on or before this date, YYYY-MM-DD.
The cursor from the previous page. Send it with the same filters.
Use cases
- See every ad a brand is running on Facebook and Instagram
- Track a competitor's new creatives by country
- Pull a brand's video ads for creative research
- Check when a company's ads started and stopped
Billing
Errors cost zero credits. Empty results follow this operation’s rules.
Default: 1 credit when no rule matches.
- 0 credits when response field results is empty or absent.
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
Related Facebook Ad Library endpoints
FAQ
How much does the Facebook Ad Library Company Ads API cost?
A call costs 1 credit by default. A response whose results comes back empty costs 0 credits. 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, and one of pageId or companyName. You don't need a Facebook Ad Library account or developer app.
What does it return?
Typed JSON. Top-level fields include results 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.