PixelSpyer

The PixelSpyer API

Pull ads and advertiser data into dashboards, spreadsheets, Slack bots or your own product. JSON over HTTPS, authenticated with a personal key. Available on the Agency plan.

Authentication

Create a key in Settings → API keys and send it in the Authorization header on every request. Responses are wrapped as { ok: true, data: … }.

Authorization: Bearer ps_live_xxxxxxxxxxxxxxxxxxxxxxxx

Errors and limits

  • 60 requests per minute per key; daily quota by plan (Agency: 5,000 calls).
  • Errors return { ok: false, error: { code, message } } with HTTP 400, 401, 402, 404 or 429.
  • Counts above 10,000 are capped and flagged with capped: true.
GET/api/v1/ads

Search ads

qKeywords in the ad copy (supports quotes, OR and -exclusions)
scopeall (default), brand or domain
statusactive or inactive
nicheComma-separated niche slugs, e.g. skincare,fashion
countryComma-separated country names, e.g. Germany,France
platformfacebook, instagram, messenger, threads, audience_network
mediavideo, image, carousel, text
ctaCall-to-action label, e.g. Shop now
since24h, 7d, 30d, 90d, 6m, 1y
minDays / maxDaysRun-time window in days
minCountriesMinimum number of delivery countries
previewonly = ads with captured creatives (default all for the API)
sortnewest, oldest, longest, reach, likes, relevance
page / per_pagePagination (per_page max 60)
curl -H "Authorization: Bearer $PIXELSPYER_KEY" \
  "https://pixelspyer.com/api/v1/ads?q=%22free%20shipping%22&status=active&minDays=30&per_page=5"
GET/api/v1/ads/{id}

Get one ad

idMeta Ad Library ID
curl -H "Authorization: Bearer $PIXELSPYER_KEY" https://pixelspyer.com/api/v1/ads/1024218063490791
GET/api/v1/advertisers

List advertisers

qName contains
nicheNiche slug
countryCountry name in top markets
sortactive, ads, recent, likes, name, video
page / per_pagePagination (per_page max 100)
curl -H "Authorization: Bearer $PIXELSPYER_KEY" "https://pixelspyer.com/api/v1/advertisers?niche=skincare&sort=active"
GET/api/v1/advertisers/{pageId}

Advertiser profile and insights

pageIdFacebook page ID
curl -H "Authorization: Bearer $PIXELSPYER_KEY" https://pixelspyer.com/api/v1/advertisers/100556499722298
GET/api/v1/advertisers/{pageId}/ads

Ads by an advertiser

pageIdFacebook page ID
…Any /ads filter
curl -H "Authorization: Bearer $PIXELSPYER_KEY" "https://pixelspyer.com/api/v1/advertisers/100556499722298/ads?status=active"
GET/api/v1/me

Your plan and usage

curl -H "Authorization: Bearer $PIXELSPYER_KEY" https://pixelspyer.com/api/v1/me

Build on the ad library

Agency plans include API access with 5,000 calls a day.

PixelSpyer API — Facebook ad library data for your own tools · PixelSpyer