Skip to content
scrapeatlas.Dashboard

Search ads

Try in Playground

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.

GET/v1/pinterest/ad-library/searchx-api-key
x-api-keystringrequiredheader

Your ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.

Query parameters
8
countrystringrequiredquery

Delivery country (required, case-insensitive): AT BE BG BR CY CZ DE DK EE ES FI FR GR HR HU IE IT LT LU LV MT NL NO PL PT RO SE SI SK TR.

max 40 chars

ExampleFR
advertiser_namestringquery

Exact advertiser name as the repository lists it; use Search advertisers to find it.

min 1 chars · max 200 chars

ExampleExample Brand
start_datestringquery

First day of the delivery window (YYYY-MM-DD, UTC). Defaults to 30 days before end_date.

end_datestringquery

Last day of the delivery window (YYYY-MM-DD). Defaults to today, or to 30 days after start_date when only start_date is given. The window may span at most 30 days and start at most one year and one day ago.

categorystringquery

Ad category: ANIMALS, ARCHITECTURE, ART, BEAUTY, CHILDRENS_FASHION, DESIGN, DIY_AND_CRAFTS, EDUCATION, ELECTRONICS, ENTERTAINMENT, EVENT_PLANNING, FINANCE, FOOD_AND_DRINKS, HEALTH, HOME_DECOR, GARDENING, MENS_FASHION, PARENTING, QUOTES, SPORT, TRAVEL, VEHICLES, WEDDING, WOMENS_FASHION or OTHER. Case-insensitive.

max 40 chars

genderstringquery

Targeted gender: female, male or unspecified.

max 40 chars

ageenumquery

Targeted age band: 18-24, 25-34, 35-44, 45-49, 50-54, 55-64 or 65+.

one of: 18-24, 25-34, 35-44, 45-49, 50-54, 55-64, 65+

cursorstringquery

Opaque cursor from the previous page. Repeat the same inputs with it.

Response fields
67
requestIdstring

Random request correlation ID.

Upstream attempts, decoded response bytes and elapsed time.

accounting.upstreamRequestsinteger

Always included.

≥ 0

accounting.responseBytesinteger

Always included.

≥ 0

accounting.durationMsnumber

Always included.

≥ 0

successboolean

Whether usable public data was retrieved.

statusenum

success, partial, failed or challenged.

one of: success, partial

sourceUrlstring

Fixed-origin public source URL.

absolute HTTPS URL

fetchedAtstring

UTC retrieval timestamp.

Complete refers to the fields this route reads; warnings name every omitted part.

coverage.sourcestring

Always included.

coverage.completeboolean

Always included.

coverage.warningsenum[]

Always included.

sourcestring

Always pinterest_ads_repository.

countryenum

Delivery country (required, case-insensitive): AT BE BG BR CY CZ DE DK EE ES FI FR GR HR HU IE IT LT LU LV MT NL NO PL PT RO SE SI SK TR.

one of: AT, BE, BG, BR, CY, CZ, DE, DK, EE, ES, FI, FR, GR, HR, HU, IE, IT, LT, LU, LV, MT, NL, NO, PL, PT, RO, SE, SI, SK, TR

advertiser_namestringnullable

Exact advertiser name as the repository lists it; use Search advertisers to find it.

start_datestring

First day of the delivery window (YYYY-MM-DD, UTC). Defaults to 30 days before end_date.

end_datestring

Last day of the delivery window (YYYY-MM-DD). Defaults to today, or to 30 days after start_date when only start_date is given. The window may span at most 30 days and start at most one year and one day ago.

Ads in source order: id, type (pin or third_party), url (repository page), pin_url, advertiser_names (null in search results; the ad route returns them), title, description, image_url, video_url, creator_name, destination_url, is_removed_creative, start_date and end_date (delivery dates), countries, regions, metros, postal_codes, age_buckets, genders, interests, pinner_list_types, devices, internet_service_providers, content_commercial, is_local_inventory, has_excluded_locations, keywords_used, negative_keywords_used, contextual_signals, geo_location, dsa_device_targeting, user_count_eu and user_count_by_country (reach bands), review_status, statement_of_reasons, violation_source, violation_decision_means, destination_urls, archival_info, is_verified_merchant and use_pinterest_ai (Brazil ads), story_pin_page_blocks and dynamic_images.

ads.idstring

Always included.

ads.typeenum

Always included.

one of: pin, third_party

ads.urlstring

Always included.

absolute HTTPS URL

ads.pin_urlstringnullable

Always included.

ads.advertiser_namesstring[]nullable

Always included.

ads.titlestringnullable

Always included.

ads.descriptionstringnullable

Always included.

ads.image_urlstringnullable

Always included.

ads.video_urlstringnullable

Always included.

ads.creator_namestringnullable

Always included.

ads.destination_urlstringnullable

Always included.

ads.is_removed_creativebooleannullable

Always included.

ads.start_datestringnullable

Always included.

ads.end_datestringnullable

Always included.

ads.countriesstring[]

Always included.

ads.regionsstring[]

Always included.

ads.metrosstring[]

Always included.

ads.postal_codesstring[]

Always included.

ads.age_bucketsstring[]

Always included.

ads.gendersstring[]

Always included.

ads.interestsstring[]

Always included.

ads.pinner_list_typesstring[]

Always included.

ads.devicesstring[]

Always included.

ads.internet_service_providersstring[]

Always included.

ads.content_commercialbooleannullable

Always included.

ads.is_local_inventorybooleannullable

Always included.

ads.has_excluded_locationsbooleannullable

Always included.

ads.keywords_usedbooleannullable

Always included.

ads.negative_keywords_usedbooleannullable

Always included.

ads.contextual_signalsstringnullable

Always included.

ads.geo_locationstringnullable

Always included.

ads.dsa_device_targetingstringnullable

Always included.

ads.user_count_eustringnullable

Always included.

ads.user_count_by_countryobject

Always included.

ads.review_statusstringnullable

Always included.

ads.statement_of_reasonsJSONoptional

Optional.

ads.violation_sourcestringnullable

Always included.

ads.violation_decision_meansstringnullable

Always included.

ads.destination_urlsstring[]

Always included.

Always included.

ads.archival_info.advertiser_namestringnullable

Always included.

ads.archival_info.archival_datestringnullable

Always included.

ads.is_verified_merchantbooleannullable

Always included.

ads.use_pinterest_aibooleannullable

Always included.

ads.story_pin_page_blocksJSONoptional

Optional.

ads.dynamic_imagesJSONoptional

Optional.

has_moreboolean

Whether another page is available.

cursorstringnullable

Opaque cursor from the previous page. Repeat the same inputs with it.

HTTP 200 returns the success variant. Check status: partial means usable data with warnings, and failed or challenged requests carry a failure object described in Errors & responses.

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.