GET /v1/meta_ads/stored/insights
Meta Ad Library insights API: an advertiser's ad strategy by page id
Returns the ad strategy of one tracked advertiser: total and active ad counts, how long ads run, the split by format, CTA and platform, top link domains, a 6-month launch series and the 5 longest-running active ads. Send the page_id. This is a stored read: an advertiser we do not track is a 404.
- Price
- $0.0010 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/meta_ads/stored/insights?page_id=9465008123' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/meta_ads/stored/insights",
params={
"page_id": "9465008123",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
page_id required | query | string | Meta Page id of the advertiser (from /v1/meta_ads/stored/search or /v1/meta_ads/search_companies). |
Example response
The example response of the API reference, with lists cut to their first 3 items and long text shortened.
{
"data": {
"advertiser": {
"page_id": "9465008123",
"page_name": "Amazon.com",
"page_username": "61557458285618",
"category": "Business",
"verification": null,
"profile_pic_url": "https://scontent.fdps2-1.fna.fbcdn.net/v/t39.35426-6/652509937_795416030301968_1974627614417241229_n.jpg?stp=dst-jpg_s60x60_tt6&_nc_cat=102&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=5SzjOYQZd9IQ7kNvwGxRPY1&_nc_oc=Adog-itRXhj4WlrVlpYJbMZHuJYdznsb4uS8lC…",
"profile_pic_cdn_url": null,
"ig_username": null,
"country": null,
"likes": 182227,
"ig_followers": null,
"is_tracked": true,
"ad_count": 1002,
"active_ad_count": 870,
"first_seen_at": "2026-07-08T17:11:38.292306Z",
"last_crawled_at": "2026-07-09T03:49:33.779010Z",
"deep_crawled_at": "2026-07-08T21:35:31.714013Z",
"ads_seen": 1002,
"ads_active": 870
},
"total_ads": 1002,
"active_ads": 870,
"avg_days_active": 117.6,
"max_days_active": 2129,
"avg_collation_count": 1.8,
"first_ad_started_at": "2020-08-31T07:00:00Z",
"last_checked_at": "2026-07-09T03:49:33.783463Z",
"display_format_distribution": {
"VIDEO": 484,
"DPA": 361,
"DCO": 126,
"IMAGE": 26,
"CAROUSEL": 5
},
"cta_type_distribution": {
"SHOP_NOW": 884,
"LEARN_MORE": 73,
"UNKNOWN": 45
},
"publisher_platform_distribution": {
"INSTAGRAM": 890,
"FACEBOOK": 823,
"WHATSAPP": 9,
"AUDIENCE_NETWORK": 9,
"THREADS": 9,
"MESSENGER": 5
},
"top_link_domains": {
"amazon.com": 889,
"aboutamazon.com": 43,
"pharmacy.amazon.com": 13,
"blog.aboutamazon.com": 10,
"a.co": 2
},
"ads_started_by_month": {
"2026-02": 32,
"2026-03": 292,
"2026-04": 276,
"2026-05": 35,
"2026-06": 194,
"2026-07": 10
},
"longest_running_active_ads": [
{
"ad_archive_id": "601761209218990",
"title": "Amazon.com",
"cta_type": "SHOP_NOW",
"link_domain": "amazon.com",
"display_format": "DPA",
"start_date": "2025-07-02T07:00:00Z",
"days_active_now": 372,
"collation_count": null
},
{
"ad_archive_id": "1918530298971522",
"title": "Amazon.com",
"cta_type": "SHOP_NOW",
"link_domain": "amazon.com",
"display_format": "DPA",
"start_date": "2025-07-02T07:00:00Z",
"days_active_now": 372,
"collation_count": null
}
]
},
"meta": {
"cost": "$0.0010",
"balance": "$0.7972",
"request_id": "req_d0f419a3ad0f40b16398594b122165ad"
}
}How it works
Aggregate ad-strategy insights for one advertiser: total/active ad counts, longevity (active ads age dynamically from start_date; ended ads use their recorded lifetime), display-format / CTA / publisher-platform distributions, top link domains, a 6-month launch series, and the 5 longest-running active ads.
last_checked_at is the most recent ingest snapshot.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | Advertiser not tracked. |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |