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.
/v1/pinterest/ad-library/searchx-api-keyHeaders
Get your API keyYour ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.
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
FRExact advertiser name as the repository lists it; use Search advertisers to find it.
min 1 chars · max 200 chars
Example BrandFirst day of the delivery window (YYYY-MM-DD, UTC). Defaults to 30 days before end_date.
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.
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
Targeted gender: female, male or unspecified.
max 40 chars
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+
Opaque cursor from the previous page. Repeat the same inputs with it.
Random request correlation ID.
Upstream attempts, decoded response bytes and elapsed time.
Always included.
≥ 0
Always included.
≥ 0
Always included.
≥ 0
Whether usable public data was retrieved.
success, partial, failed or challenged.
one of: success, partial
Fixed-origin public source URL.
absolute HTTPS URL
UTC retrieval timestamp.
Complete refers to the fields this route reads; warnings name every omitted part.
Always included.
Always included.
Always included.
Always pinterest_ads_repository.
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
Exact advertiser name as the repository lists it; use Search advertisers to find it.
First day of the delivery window (YYYY-MM-DD, UTC). Defaults to 30 days before end_date.
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.
Always included.
Always included.
one of: pin, third_party
Always included.
absolute HTTPS URL
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Optional.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Optional.
Optional.
Whether another page is available.
Opaque cursor from the previous page. Repeat the same inputs with it.
No fields match.
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.
| 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. |