Facebook Ad Library advertiser profile API
An advertiser’s Ad Library profile: Page name, vanity name, category, likes, verification, Instagram username and followers, profile and cover photos, about text, political spend by disclaimer where it has any, and its top ad.
GET /v1/facebook/ads/advertisers/{page}Beta2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/facebook/ads/advertisers/15087023444",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "page_id": "15087023444", "page_info": { "page_id": "15087023444", "page_name": "Nike", "page_alias": "nike", "page_category": "Sportswear Store", "likes": 39487624, "page_verification": "BLUE_VERIFIED", "ig_username": "nike", "ig_followers": 289930009, "ig_verification": true, "profile_photo": "https://scontent-det1-1.xx.fbcdn.net/v/t39.30808-1/284964043_10159903868513445_76963539849…", "page_cover_photo": "https://scontent-det1-1.xx.fbcdn.net/v/t39.30808-6/285211224_10159903868008445_54773374688…", "page_profile_uri": "https://www.facebook.com/nike/", "entity_type": "PERSON_PROFILE", "page_is_deleted": false, "…": "2 more fields" }, "about": "", "page_spend": { "current_week": null, "lifetime_by_disclaimer": [], "weekly_by_disclaimer": [], "is_political_page": false }, "latest_ad": { "ad_archive_id": "1702938977100376", "page_id": "15087023444", "page_name": "Nike", "is_active": true, "start_date": 1744009200, "end_date": 1795507200, "publisher_platform": [ "FACEBOOK", "INSTAGRAM", "… 2 more" ], "collation_count": null, "collation_id": null, "categories": [ "UNKNOWN" ], "currency": "", "spend": null, "impressions_with_index": { "impressions_text": null, "impressions_index": -1 }, "reach_estimate": null, "…": "16 more fields" }}Parameters
| Name | Type | Description |
|---|---|---|
pagepath · required | string | Page id, Page URL or vanity name. Example: 15087023444. |
Response fields
200 with a FacebookAdvertiserProfile, in Facebook’s own JSON.
| Field | Type | Description |
|---|---|---|
page_id | string | |
page_info | object | |
about | string | null | The Page’s about text. |
page_spend | object | Spend on political and issue ads, by disclaimer (empty for most advertisers). |
latest_ad | object |
Status codes
| Status | Meaning |
|---|---|
200 | The advertiser’s profile. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The ad, Page or advertiser is not in the Meta Ad Library. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Facebook is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
What if the Page never advertised?
It answers 404 target_not_found, not charged: the Ad Library only profiles Pages with ads.
Facebook is a trademark of Meta Platforms, Inc. We are not affiliated with or endorsed by Meta.