# Pinterest Ads Scraper (`lexis-solutions/pinterest-ads-scraper`) Actor

Scrape Pinterest ads to extract trending product insights, campaign performance, and audience data. Ideal for market research, competitor tracking, and digital marketing optimization. Fast, structured, and customizable ad data.

- **URL**: https://apify.com/lexis-solutions/pinterest-ads-scraper.md
- **Developed by:** [Lexis Solutions](https://apify.com/lexis-solutions) (community)
- **Categories:** Social media, Lead generation, Open source
- **Stats:** 30 total users, 0 monthly users, 100.0% runs succeeded, 14 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$35.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Pinterest Ads Scraper

![banner](https://images.ctfassets.net/dfcvkz6j859j/535bfwOYThN7EXkAFtH6yS/1f57414549cd97654f7b76918779e23a/pinterest-ads-guide-for-digital-agencies.png)

### What is the Pinterest Ads Scraper?

The **Pinterest Ads Scraper** is an Apify actor designed to collect **Pinterest ad data** using customizable filters such as **country**, **category**, **age**, **gender**, and date ranges. This tool is ideal for marketing analysts, researchers, and media monitoring platforms that need structured access to Pinterest’s public ad repository.

***

### 🚀 Key Features

- 🔍 **Filter by Date Range**: Define a start and end date to get only relevant ads.
- 🌍 **Country-Specific Scraping**: Target specific countries using ISO Alpha-2 codes.
- 🧑‍🤝‍🧑 **Demographic Filters**: Narrow results by age groups and gender.
- 🗂️ **Category Filtering**: Choose from available Pinterest ad categories (or select ALL).
- 📈 **Limit Results**: Specify how many ads to retrieve.
- 📸 **Includes Media Data**: Extract image links and content details from each ad.

***

### 🎯 Filter Value Reference

The following reference tables outline the available input options for each filter. These values must be used exactly as listed when setting the corresponding input fields in the actor.

***

#### 🌍 Countries (`country` input)

Use any of the following **ISO Alpha-2 codes**:

| Label          | Value |
| -------------- | ----- |
| Austria        | AT    |
| Belgium        | BE    |
| Bulgaria       | BG    |
| Brazil         | BR    |
| Croatia        | HR    |
| Cyprus         | CY    |
| Czech Republic | CZ    |
| Denmark        | DK    |
| Estonia        | EE    |
| Finland        | FI    |
| France         | FR    |
| Germany        | DE    |
| Greece         | GR    |
| Hungary        | HU    |
| Ireland        | IE    |
| Italy          | IT    |
| Latvia         | LV    |
| Lithuania      | LT    |
| Luxembourg     | LU    |
| Malta          | MT    |
| Netherlands    | NL    |
| Poland         | PL    |
| Portugal       | PT    |
| Romania        | RO    |
| Slovakia       | SK    |
| Slovenia       | SI    |
| Spain          | ES    |
| Sweden         | SE    |
| Turkey         | TR    |

***

#### 🗂 Categories (`category` input)

| Label              | Value             |
| ------------------ | ----------------- |
| All Categories     | ALL               |
| Animals            | ANIMALS           |
| Architecture       | ARCHITECTURE      |
| Art                | ART               |
| Beauty             | BEAUTY            |
| Children's fashion | CHILDRENS\_FASHION |
| Design             | DESIGN            |
| DIY and crafts     | DIY\_AND\_CRAFTS    |
| Education          | EDUCATION         |
| Electronics        | ELECTRONICS       |
| Entertainment      | ENTERTAINMENT     |
| Event planning     | EVENT\_PLANNING    |
| Finance            | FINANCE           |
| Food and drinks    | FOOD\_AND\_DRINKS   |
| Health             | HEALTH            |
| Home decor         | HOME\_DECOR        |
| Gardening          | GARDENING         |
| Men's fashion      | MENS\_FASHION      |
| Parenting          | PARENTING         |
| Quotes             | QUOTES            |
| Sport              | SPORT             |
| Travel             | TRAVEL            |
| Vehicles           | VEHICLES          |
| Wedding            | WEDDING           |
| Women's fashion    | WOMENS\_FASHION    |
| Other              | OTHER             |

***

#### 🎂 Ages (`age` input)

| Label    | Value       |
| -------- | ----------- |
| All Ages | ALL         |
| 18–24    | AGE\_18\_24   |
| 21–24    | AGE\_21\_24   |
| 18–20    | AGE\_18\_20   |
| 25–34    | AGE\_25\_34   |
| 35–44    | AGE\_35\_44   |
| 45–49    | AGE\_45\_49   |
| 50–54    | AGE\_50\_54   |
| 55–64    | AGE\_55\_64   |
| 65+      | AGE\_65\_PLUS |

***

#### ⚥ Genders (`gender` input)

| Label       | Value       |
| ----------- | ----------- |
| All Genders | ALL         |
| Male        | MALE        |
| Female      | FEMALE      |
| Unspecified | UNSPECIFIED |

***

Use these value mappings to ensure proper input validation when using the actor via API or programmatically.

### 🛠 Input Schema

The following fields are required or optional to customize your scraping task:

```json
{
  "start_date": "2025-04-01", // Required – format: YYYY-MM-DD
  "end_date": "2025-04-12", // Required – format: YYYY-MM-DD
  "country": "FR", // Required – ISO Alpha-2 country code
  "category": "ALL", // Optional – default is ALL
  "age": "ALL", // Optional – values like "18-24", "25-34", etc.
  "gender": "ALL", // Optional – "MALE", "FEMALE", or "UNSPECIFIED"
  "results_limit": 50 // Optional – max number of ads to fetch
}
```

### 📤 Output Schema

Each ad record in the dataset will have the following structure:

```json
{
  "pin_id": "969188782583356431",
  "ad_details": {
    "advertiser_names": null,
    "statement_of_reasons": null,
    "review_status": null,
    "violation_source": null,
    "violation_decision_means": null,
    "start_date": "2025-03-21",
    "end_date": "2025-04-09",
    "age_buckets": [
      "18-24",
      "25-34",
      "35-44",
      "45-49",
      "50-54",
      "55-64",
      "65+"
    ],
    "genders": ["FEMALE", "MALE", "UNSPECIFIED"],
    "postal_codes": [],
    "metros": [],
    "regions": [],
    "countries": ["France"],
    "content_commercial": true,
    "interests": [],
    "pinner_list_types": ["USER_LIST", "VISITOR"],
    "user_count_by_country": {
      "France": "0 - 10000"
    },
    "user_count_eu": "0 - 10000",
    "keywords_used": false,
    "negative_keywords_used": false,
    "image_link": "https://i.pinimg.com/474x/cc/69/cb/cc69cbaf7e657aec232ac2b4747346e4.jpg",
    "pin_data": {
      "image_link": "https://i.pinimg.com/474x/cc/69/cb/cc69cbaf7e657aec232ac2b4747346e4.jpg",
      "video_link": null,
      "details": "Beau pot en argile tortue de mer. Ce pot a été peint à la main en blanc",
      "content_creator_name": null,
      "story_pin_page_blocks": []
    }
  }
}
```

### Need to scrape ads from Google?

👉 Scrape Google ads with [Google Ads Scraper](https://apify.com/lexis-solutions/google-ads-scraper)

### Need to scrape ads from Bing?

👉 Scrape Bing ads with [Bing Ads Scraper](https://apify.com/lexis-solutions/bing-ads-scraper)

### Need to scrape ads from TikTok?

👉 Scrape TikTok ads with [TikTok Ads Scraper](https://apify.com/lexis-solutions/tiktok-ads-scraper)

### Need to scrape ads from Reddit?

👉 Scrape Reddit ads with [Reddit Ads Scraper](https://apify.com/lexis-solutions/reddit-ads-scraper)

***

👀 p.s.

Got feedback or need an extension?

Lexis Solutions is a [certified Apify Partner](https://apify.com/partners/find). We can help you with custom solutions or data extraction projects.

Contact us over [Email](mailto:scraping@lexis.solutions) or [LinkedIn](https://www.linkedin.com/company/lexis-solutions)

### Support Our Work 💝

If you're happy with our work and scrapers, you're welcome to leave us a company review [here](https://apify.com/partners/find/lexis-solutions/review) and leave a review for the scrapers you're subscribed to. It will take you less than a minute but it will mean a lot to us!

Image Credit: Pinterest Ads Transparency

# Actor input Schema

## `country` (type: `string`):

Ad Country

## `start_date` (type: `string`):

Select absolute date in format YYYY-MM-DD, The date range must be less than 30 days.

## `end_date` (type: `string`):

Select absolute date in format YYYY-MM-DD, The date range must be less than 30 days.

## `category` (type: `string`):

Ad Category

## `gender` (type: `string`):

Ad Gender

## `age` (type: `string`):

Ad Age

## `results_limit` (type: `integer`):

Limit number of results.

## Actor input object example

```json
{
  "country": "FR",
  "start_date": "2025-04-01",
  "end_date": "2025-04-12",
  "category": "ALL",
  "gender": "ALL",
  "age": "ALL",
  "results_limit": 10
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "country": "FR",
    "start_date": "2025-04-01",
    "end_date": "2025-04-12",
    "category": "ALL",
    "gender": "ALL",
    "age": "ALL",
    "results_limit": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("lexis-solutions/pinterest-ads-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "country": "FR",
    "start_date": "2025-04-01",
    "end_date": "2025-04-12",
    "category": "ALL",
    "gender": "ALL",
    "age": "ALL",
    "results_limit": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("lexis-solutions/pinterest-ads-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "country": "FR",
  "start_date": "2025-04-01",
  "end_date": "2025-04-12",
  "category": "ALL",
  "gender": "ALL",
  "age": "ALL",
  "results_limit": 10
}' |
apify call lexis-solutions/pinterest-ads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=lexis-solutions/pinterest-ads-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/5sC0wri0mEuKLqQvG/builds/SulfqS3C7Cvs3puVg/openapi.json
