# Pinterest Ads Library Scraper (`saswave/pinterest-ads-library-scraper`) Actor

Extract ads from pinterest ads library. Collect post content, comments, shares, publication date. Allow to get domain and company name of the ad owner

- **URL**: https://apify.com/saswave/pinterest-ads-library-scraper.md
- **Developed by:** [SASWAVE](https://apify.com/saswave) (community)
- **Categories:** SEO tools, Social media, E-commerce
- **Stats:** 29 total users, 2 monthly users, 65.9% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 📌 Pinterest Ads Library Scraper

The **Pinterest Ads Library Scraper** allows you to **extract promoted posts and ads** from Pinterest.

It collects detailed information about the ad content, publisher, performance, and audience targeting.

This tool is useful for **marketing analysis, competitor research, and ad monitoring**.

### ✨ Features

The scraper can collect:

- **Ad URL & Pin ID** (`url`, `pin_id`)

- **Title and description** (`title`, `description`)

- **SEO info** (`seo_title`, `seo_description`)

- **Annotations / Categories** (`annotations`)

- **Product link & availability** (`product_link`, `product_availability`)

- **Affiliate links** (`affiliate_link`)

- **Promoted status** (`is_promoted`, `is_promotable`)

- **Share and comment counts** (`share_count`, `comment_count`)

- **Domain and advertiser information** (`domain`, `advertiser_name`, `name`)

- **Price info** (`price_value`, `price_currency`, `has_price_dropped`)

- **Targeting info** including:

  - Age ranges (`ages`)

  - Countries and regions (`countries`, `regions`)

  - Genders (`genders`)

  - Keywords and negative keywords (`keywords_used`, `negative_keywords_used`)

  - Postal codes & metros (`postal_codes`, `metros`)

- **Commercial communication flag** (`commercial_communication`)

- **Reach estimates** (`reach_throughout_the_european_union`, `reach_by_country`)

- **Post creation date** (`created_at`)

- **Images** (`image`)

This allows you to **analyze Pinterest ad campaigns and track competitor activity** effectively.

### Ouput example

```json
{
  "url": "https://ads.pinterest.com/ads-repository/1027876314948917574",
  "pin_id": "1027876314948917574",
  "has_price_dropped": false,
  "seo_description": "dolls-rock",
  "seo_title": "Chic Grey Slash Neck Patchwork Knit Tops Spring | Knitting women sweater, Sweaters for women, Clothes for women",
  "annotations": [
    {
      "url": "https://www.pinterest.com/ideas/áo-len-cardigan/960738506279/",
      "name": "Áo Len Cardigan"
    },
    {
      "url": "https://www.pinterest.com/ideas/french-women-style/909719029745/",
      "name": "French Women Style"
    },
    {
      "url": "https://www.pinterest.com/ideas/winter-knit-sweater/894343272280/",
      "name": "Winter Knit Sweater"
    },
    {
      "url": "https://www.pinterest.com/ideas/cardigan-casual/898073315288/",
      "name": "Cardigan Casual"
    },
    {
      "url": "https://www.pinterest.com/ideas/cardigan-vintage/913309615946/",
      "name": "Cardigan Vintage"
    },
    {
      "url": "https://www.pinterest.com/ideas/womens-knit-tops/938667563121/",
      "name": "Womens Knit Tops"
    },
    {
      "url": "https://www.pinterest.com/ideas/holiday-tops/952854463291/",
      "name": "Holiday Tops"
    },
    {
      "url": "https://www.pinterest.com/shopping/chic-sweaters/925101712198/",
      "name": "Chic Sweaters"
    },
    {
      "url": "https://www.pinterest.com/ideas/knit-tops/905817715676/",
      "name": "Knit Tops"
    }
  ],
  "product_availability": null,
  "edited_fields": [
    "description"
  ],
  "method": "catalog_bulk_create",
  "pinned_to_board": null,
  "is_promotable": true,
  "affiliate_link": null,
  "product_link": "https://www.dollsrock.com/products/chic-grey-slash-neck-patchwork-knit-tops-spring?variant=298c1b74-95d2-4a65-86d2-ddd180746bb8",
  "is_promoted": false,
  "share_count": 0,
  "hashtags": [],
  "title": "Chic Grey Slash Neck Patchwork Knit Tops Spring S(Fit for EU 38-40, US 6-8, UK/AU 10-12, IT 42-44)",
  "description": "Chic Grey Slash Neck Patchwork Knit Tops SpringFabric: Knit BlendedSize Fit: Fit: This garment fits true to <a href=\"http://size.length/\">size.Length</a>: Size S measures 21.45\"from shoulder to hemBust: Great for any cup size. Waist: Loose Fit. Comfortable room throughout <a href=\"http://midsection.hip/\">midsection.Hip</a>: Loose Fit - room for hips. Hand Wash Cold.",
  "created_at": "Wed, 07 Aug 2024 11:22:51 +0000",
  "reaction_counts": {},
  "comment_count": 0,
  "domain": "dollsrock.com",
  "name": "DollsRock",
  "price_value": 0,
  "price_currency": "USD",
  "advertiser_name": "DollsRock",
  "date_range": "2024-08-18 - 2025-04-10",
  "ages": "18-24, 25-34, 35-44, 45-49, 50-54, 55-64, 65+",
  "commercial_communication": "Yes",
  "countries": "France, Portugal, Poland, Germany, Italy, Belgium, Netherlands, Ireland, Czech Republic, Spain, Turkey",
  "genders": "FEMALE, UNSPECIFIED, MALE",
  "interests": "None",
  "keywords_used": "No",
  "metros": "None",
  "negative_keywords_used": "No",
  "pinner_list_types": "None",
  "postal_codes": "None",
  "regions": "None",
  "reach_throughout_the_european_union": "0 - 10000",
  "reach_by_country": "Belgium: 0 - 10000, Spain: 0 - 10000, France: 0 - 10000, Poland: 0 - 10000, Italy: 0 - 10000, Germany: 0 - 10000, Turkey: 0 - 10000, Ireland: 0 - 10000, Portugal: 0 - 10000, Netherlands: 0 - 10000, Czech Republic: 0 - 10000",
  "image": "https://i.pinimg.com/474x/5b/a0/c3/5ba0c3d68e8c9a6017b187970e2ddcfb.jpg"
}
```

### 🚀 Use Cases

Competitor ad analysis: See what your competitors are promoting

Marketing insights: Analyze ad content, audience targeting, and reach

Trend tracking: Identify popular content and high-performing products

Affiliate and e-commerce monitoring: Track links and product promotions

### 💡 Notes

Scrapes publicly available ads from Pinterest Ads Library

Supports analysis of promoted content across multiple regions

Outputs structured JSON for further processing in dashboards or analytics tools

### 🛟 SUPPORT

Share your runs with the developer team and create issues on error to help us improve actor quality.

You might discover edge case we didn't test yet

We stay available anytime

# Actor input Schema

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

Category filter on search results

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

Country filter on search results

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

Gender filter on search results

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

Age filter on search results

## `advertiser_name` (type: `string`):

Advertiser name filter on search results

## `max_page` (type: `integer`):

Maximum depth to stop at (0 = no limit)

## `proxyConfiguration` (type: `object`):

The best option is usually Automatic proxy. But you can also use your own proxies or no proxy

## Actor input object example

```json
{
  "category": "all",
  "country": "FR",
  "gender": "ALL",
  "age": "ALL",
  "max_page": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "category": "all",
    "country": "FR",
    "gender": "ALL",
    "age": "ALL",
    "advertiser_name": "",
    "max_page": 1,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("saswave/pinterest-ads-library-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 = {
    "category": "all",
    "country": "FR",
    "gender": "ALL",
    "age": "ALL",
    "advertiser_name": "",
    "max_page": 1,
    "proxyConfiguration": { "useApifyProxy": False },
}

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

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

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

```

## CLI example

```bash
echo '{
  "category": "all",
  "country": "FR",
  "gender": "ALL",
  "age": "ALL",
  "advertiser_name": "",
  "max_page": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call saswave/pinterest-ads-library-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,saswave/pinterest-ads-library-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/RBoTPP1WZZfr33JHN/builds/QyqVnPxbmp3AjLHZE/openapi.json
