Ad libraries
Snapchat Ads Library API
Search Snapchat ads by advertiser and read ad creatives, delivery dates, EU impressions and targeting, plus sponsored creator content.
Three endpoints read the Snap Ads Gallery: search ads that ran in the EU by paying advertiser, country, status and dates; get one ad with its creative, destination, impressions by country and targeting; and list sponsored Spotlight content by creator.
API availability: Available
http://localhost:3064Public API: https://api.scrapeatlas.com.Endpoints
/v1/snapchat/ads/searchSearch ads
Search ads that delivered in the EU by paying advertiser name, optionally filtered by countries, ACTIVE or PAUSED status and a delivery date range. Returns up to 10 ads per page with creatives, destinations, impressions by country and targeting. Pass nextCursor with the same filters for the next page.
Reference/v1/snapchat/ads/adGet an ad
Get one ad from the Snap Ads Gallery by ad ID or Ads Gallery link: creative, destination, delivery dates, impressions by EU country, targeting and the complete source record.
Reference/v1/snapchat/ads/sponsored-contentSponsored content
List live sponsored creator content (paid partnership posts such as Spotlight videos) from the Snap Ads Gallery, or the sponsored posts of one creator. Returns up to 10 items per page with creator, sponsor, content link and thumbnail.
ReferenceQuick start
Create an API key on your account page, then call the public API. Values below are placeholders.
curl "https://api.scrapeatlas.com/v1/snapchat/ads/search?advertiser=Nike&countries=fr%2Cde" \
-H "x-api-key: YOUR_API_KEY"Coverage & limits
- Independent, stateless worker: eight concurrent operations, with up to 16 more waiting at most 5 seconds for a slot; 20-second total deadline, including the wait; at most two upstream HTTP requests per operation (one read and one retry on a network failure or HTTP 5xx). Rate limits (HTTP 429, or HTTP 500 naming an exhausted query quota) are never retried.
- Fixed public HTTPS origin adsapi.snapchat.com (the documented Ads Gallery API). No login, cookies, browser, outbound link visits, media downloads or result storage. The service API key is never forwarded.
- The Ads Gallery covers ads that delivered in the EU in the last 12 months. Search needs an advertiser name; there is no keyword or all-ads search.
- Pages hold at most 10 ads or 10 sponsored content items.
- At most 8 MiB decoded JSON per operation, depth 64 and 250,000 parsed nodes.
| HTTP | failure.code | Meaning |
|---|---|---|
| 200 | partial | Usable data with source_item_failed:<count> when the source could not return some items of a page. |
| 400 | invalid_request | Missing, duplicate, malformed or unsupported parameters, a non-EU country, a link outside adsgallery.snap.com, or parameters the source rejected. |
| 401 | unauthorized | Missing or invalid worker API key. |
| 404 | not_found | Unknown ad ID or route. |
| 429 | upstream_rate_limited | Snapchat rate limited the request, or the Ads Gallery reported its query capacity exhausted. Retry later. |
| 502 | upstream_challenged | Snapchat refused the request. |
| 502 | upstream_error | Network failure or HTTP 5xx after one retry, or an unexpected source error. |
| 502 | unsupported_page | The source response was not the expected JSON, or an ad did not match the requested ID. |
| 502 | response_too_large | The source response exceeded the byte limit. |
| 502 | unsafe_redirect | The source redirected the request. |
| 502 | payload_too_complex | The source response exceeded the depth or node limit. |
| 502 | request_limit | The upstream request budget was exhausted. |
| 503 | busy | All retrieval slots and queue places are taken. |
| 504 | timeout | The operation exceeded its deadline. |