Ad libraries
Pinterest Ads Library API
Search Pinterest ads by country, advertiser, date, category, gender and age, and read each ad's targeting and reach.
Search the public Pinterest Ads Repository for ads shown in the EU, Brazil, Norway and Turkey by country, advertiser, delivery dates, ad category, gender and age, read each ad's creative, advertiser, delivery dates, targeting (ages, genders, interests, locations, keywords) and reach bands by country, and look up advertiser names.
API availability: Available
http://localhost:3063Public API: https://api.scrapeatlas.com.Endpoints
/v1/pinterest/ad-library/searchSearch ads
Search one page of up to 25 ads shown in one country, optionally for one advertiser, ad category, gender or age band, within a delivery window of up to 30 days in the last year. Pass the returned cursor with the same inputs to continue.
Reference/v1/pinterest/ad-library/adGet ad
Read one ad from the repository by ID or repository URL: creative, advertiser names, delivery dates, targeting and reach bands by country, plus moderation details for removed ads and destination URLs and archive records for Brazil.
Reference/v1/pinterest/ad-library/advertisers/searchSearch advertisers
Find advertiser names in the repository to pass as advertiser_name to Search ads.
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/pinterest/ad-library/search?country=FR&advertiser_name=Example+Brand" \
-H "x-api-key: YOUR_API_KEY"Coverage & limits
- Four active operations with a queue of eight and a 15-second queue wait; 30-second deadline covering the queue; two upstream attempts per operation (one transient retry).
- 25 ads per search page; 50 advertiser names per lookup; delivery windows of up to 30 days within the last year and one day.
- 4 MiB per response and per operation. Targeting and URL lists keep 200 entries each; source JSON passed through (statements of reasons, story pages, dynamic images) is capped at 6 levels and 1,000 values, beyond which it becomes null with a warning.
- Plain HTTPS through Pinterest's public web resource endpoint with an optional proxy pool. No login, cookies or account. No storage or media downloads.
- Media URLs are returned as published.
| HTTP | failure.code | Meaning |
|---|---|---|
| 400 | invalid_request | Invalid, duplicate, unknown or conflicting inputs, a window wider than 30 days or older than a year, or parameters the source rejected. |
| 401 | unauthorized | Missing or incorrect service key. |
| 404 | not_found | Missing ad or route. |
| 429 | upstream_rate_limited | Source throttling. |
| 502 | upstream_challenged unsupported_page | Refused request or unsupported response structure. |
| 502 | upstream_error unsafe_redirect response_too_large request_limit | Bounded source failure. |
| 503 | busy | Worker capacity reached. |
| 504 | timeout | Request deadline elapsed. |
| 200 | partial | Skipped ads, truncated targeting lists, advertiser names or nested data. |