Skip to content
scrapeatlas.Dashboard

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.

3 endpointsx-api-key

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

Base URL · local workerhttp://localhost:3063Public API: https://api.scrapeatlas.com.
Authenticationx-api-keyCustomer key from your account. See Authentication.

Endpoints

GET/v1/pinterest/ad-library/search

Search 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
GET/v1/pinterest/ad-library/ad

Get 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
GET/v1/pinterest/ad-library/advertisers/search

Search advertisers

Find advertiser names in the repository to pass as advertiser_name to Search ads.

Reference

Quick start

Create an API key on your account page, then call the public API. Values below are placeholders.

Terminal
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.
Error codes
9
HTTPfailure.codeMeaning
400invalid_requestInvalid, duplicate, unknown or conflicting inputs, a window wider than 30 days or older than a year, or parameters the source rejected.
401unauthorizedMissing or incorrect service key.
404not_foundMissing ad or route.
429upstream_rate_limitedSource throttling.
502upstream_challenged unsupported_pageRefused request or unsupported response structure.
502upstream_error unsafe_redirect response_too_large request_limitBounded source failure.
503busyWorker capacity reached.
504timeoutRequest deadline elapsed.
200partialSkipped ads, truncated targeting lists, advertiser names or nested data.