# 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:** 27 total users, 0 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

$25.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/actors/running/actors-in-store.md#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 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/%C3%A1o-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
