# Pinterest Scraper Pro (`crawlerbros/pinterest-scraper-pro`) Actor

Scrape Pinterest pins, board pins, user boards, and user profiles. Modes: search by keyword, pin detail by URL, user pins, user boards, board pins, and user profile. Pro filters: minSaves, imageOnly, excludeAds. No login required.

- **URL**: https://apify.com/crawlerbros/pinterest-scraper-pro.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** Social media, Automation, Developer tools
- **Stats:** 27 total users, 8 monthly users, 99.4% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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?

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 Scraper Pro

Scrape Pinterest pins, boards, and user profiles at scale. Search by keyword, fetch pin details directly, browse a user's pins, list a user's boards, pull pins from a specific board, or fetch a public profile summary - all without login cookies or a browser.

### Modes

| Mode | What it does |
|---|---|
| `search` | Keyword search - returns ranked pins matching your query |
| `pinDetail` | Direct pin lookup - fetch metadata for specific pin URLs or numeric pin IDs |
| `userPins` | Pins shown on a public user profile |
| `userBoards` | Public boards belonging to a user |
| `boardPins` | Pins inside a specific public board |
| `userProfile` | Public profile metadata for a user |

### What you get per pin

- `pinId`, `pinUrl`
- `title`, `description`, `altText`, `autoAltText`
- `imageUrl` and `images`
- `mediaType`, `isVideo`, `videoUrl`
- `saves`, `commentCount`, `reactionCount`
- `linkUrl`, `linkDomain`
- `creator`, `creatorFullName`, `creatorAvatar`, `creatorFollowerCount`, `creatorVerified`
- `boardName`, `boardUrl`, `boardPinCount`, `boardFollowerCount`, `boardSectionCount`
- `visualAnnotations`, `dominantColor`
- `richSummaryType`, `richSummarySite`, `richSummaryTitle`
- `isShoppable`, `isPromoted`
- `scrapedAt`

Empty fields are omitted - no nulls in output.

### What you get per profile

- `username`, `profileUrl`
- `fullName`, `bio`, `location`
- `followerCount`, `followingCount`, `pinCount`, `boardCount`, `monthlyViews`
- `avatarUrl`, `websiteUrl`
- `isVerified`
- `scrapedAt`

### What you get per board

Current `userBoards` output is intentionally lightweight and reliable:

- `boardSlug`, `boardName`, `boardUrl`
- `creator`
- `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | enum | `search` | `search`, `pinDetail`, `userPins`, `userBoards`, `boardPins`, `userProfile` |
| `keywords` | array | `["python tutorial"]` | Search terms used when `mode=search`. |
| `pinUrls` | array | `[]` | Direct pin URLs or numeric pin IDs used when `mode=pinDetail`. |
| `usernames` | array | `[]` | Pinterest usernames or full profile URLs used when `mode=userPins`, `mode=userBoards`, or `mode=userProfile`. |
| `boardUrls` | array | `[]` | Full board URLs or `username/board-slug` pairs used when `mode=boardPins`. |
| `maxItems` | integer | `50` | Hard cap on emitted records. Range `1-5000`. |
| `maxPages` | integer | `10` | Max result pages per keyword or board. Range `1-20`. |
| `language` | enum | `en` | Pinterest UI language. Affects ranked search results. |
| `minSaves` | integer | unset | Pro filter: drop pins with fewer than N saves. |
| `imageOnly` | boolean | `false` | Pro filter: keep image pins only. |
| `excludeAds` | boolean | `false` | Pro filter: drop promoted pins. |
| `commerceOnly` | boolean | `false` | Return only shoppable/product pins (Pinterest 'Products' filter). |

#### Example - keyword search

```json
{
  "mode": "search",
  "keywords": ["minimalist home office", "desk setup ideas"],
  "maxItems": 200,
  "minSaves": 100,
  "excludeAds": true,
  "commerceOnly": true
}
```

#### Example - pin detail lookup

```json
{
  "mode": "pinDetail",
  "pinUrls": [
    "https://www.pinterest.com/pin/123456789012345678/",
    "987654321098765432"
  ]
}
```

#### Example - board pins

```json
{
  "mode": "boardPins",
  "boardUrls": [
    "https://www.pinterest.com/nasa/hubble-images/",
    "earthlymanorfarm/cooking-recipes-for-dinner"
  ],
  "maxItems": 100
}
```

#### Example - user profile

```json
{
  "mode": "userProfile",
  "usernames": ["nasa", "natgeo"]
}
```

### Sample output

#### Pin

```json
{
  "recordType": "pin",
  "pinId": "123456789012345678",
  "pinUrl": "https://www.pinterest.com/pin/123456789012345678/",
  "title": "Minimalist Home Office Setup",
  "imageUrl": "https://i.pinimg.com/originals/aa/bb/cc/aabbcc1122334455.jpg",
  "mediaType": "image",
  "creator": "designblog",
  "boardName": "Home Office Ideas",
  "boardUrl": "https://www.pinterest.com/designblog/home-office-ideas/",
  "linkUrl": "https://designblog.example.com/minimalist-office",
  "scrapedAt": "2026-04-30T14:00:00+00:00"
}
```

#### Profile

```json
{
  "recordType": "profile",
  "username": "nasa",
  "profileUrl": "https://www.pinterest.com/nasa/",
  "fullName": "NASA",
  "followerCount": 1250000,
  "pinCount": 3400,
  "boardCount": 47,
  "avatarUrl": "https://i.pinimg.com/280x280_RS/.../nasa.jpg",
  "websiteUrl": "https://www.nasa.gov/",
  "isVerified": true,
  "scrapedAt": "2026-04-30T14:00:00+00:00"
}
```

#### Board

```json
{
  "recordType": "board",
  "boardSlug": "home-office-ideas",
  "boardName": "Home Office Ideas",
  "boardUrl": "https://www.pinterest.com/designblog/home-office-ideas/",
  "creator": "designblog",
  "scrapedAt": "2026-04-30T14:00:00+00:00"
}
```

### Proxy and reliability notes

- The actor is HTTP-only via `curl_cffi`.
- Pinterest may soft-block some datacenter IPs with empty or partial responses.
- On Apify cloud, the actor tries Apify Residential proxy first, then AUTO proxy, then falls back to no proxy if needed.
- `boardPins` and `userProfile` use public HTML fallback when Pinterest blocks the resource endpoint for anonymous access.

### FAQ

**Does it require a login or cookies?**\
No. All six modes use public Pinterest endpoints or public HTML pages.

**Is a proxy recommended?**\
Yes on Apify cloud. Pinterest can return empty or partial results from some datacenter IPs, so the actor prefers Apify Residential proxy and falls back automatically.

**How do I scrape only shoppable/product pins?**\
Set `commerceOnly: true` in your input. This applies Pinterest's native 'Products' filter and returns only pins linked to purchasable products.

**Why might `boardPins` or `userProfile` return fewer fields than `search` or `pinDetail`?**\
Pinterest exposes less data on some public HTML pages than on search/resource responses. The actor still returns a clean record instead of failing.

**Why might `saves` be missing on some pins?**\
Pinterest does not expose save counts on every pin type. When the API does not return a count, the field is omitted.

**What happens if a username, board, or pin does not exist?**\
The actor finishes cleanly. If nothing is found, it sets a status message instead of pushing placeholder rows.

# Actor input Schema

## `mode` (type: `string`):

What to scrape. `search` = keyword search. `pinDetail` = direct pin URLs. `userPins` = a user's own pins. `userBoards` = a user's boards. `boardPins` = all pins inside a specific board. `userProfile` = full profile metadata for a user.

## `keywords` (type: `array`):

Search terms (used when mode=`search`).

## `pinUrls` (type: `array`):

Direct pin URLs (used when mode=`pinDetail`).

## `usernames` (type: `array`):

Pinterest usernames (used when mode=`userPins`, `userBoards`, or `userProfile`).

## `boardUrls` (type: `array`):

Full Pinterest board URLs or `username/board-slug` pairs (used when mode=`boardPins`). e.g. `https://www.pinterest.com/nasa/hubble-images/` or `nasa/hubble-images`.

## `maxItems` (type: `integer`):

Hard cap on emitted pins/boards.

## `language` (type: `string`):

Pinterest UI language (affects ranked search results).

## `maxPages` (type: `integer`):

Maximum search result pages to walk per keyword or board (1 page ≈ 25 pins). Default 10.

## `minSaves` (type: `integer`):

Drop pins with fewer than N saves.

## `imageOnly` (type: `boolean`):

Drop video pins, keep image pins only.

## `excludeAds` (type: `boolean`):

Drop promoted/sponsored pins.

## `commerceOnly` (type: `boolean`):

Pro filter: when true, return only product/shoppable pins. Equivalent to Pinterest's native 'Products' filter (commerce\_only=true).

## Actor input object example

```json
{
  "mode": "search",
  "keywords": [
    "python tutorial"
  ],
  "pinUrls": [],
  "usernames": [],
  "boardUrls": [],
  "maxItems": 50,
  "language": "en",
  "maxPages": 10,
  "imageOnly": false,
  "excludeAds": false,
  "commerceOnly": false
}
```

# 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 = {
    "mode": "search",
    "keywords": [
        "python tutorial"
    ],
    "pinUrls": [],
    "usernames": [],
    "boardUrls": [],
    "maxItems": 50,
    "language": "en",
    "maxPages": 10,
    "imageOnly": false,
    "excludeAds": false,
    "commerceOnly": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/pinterest-scraper-pro").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 = {
    "mode": "search",
    "keywords": ["python tutorial"],
    "pinUrls": [],
    "usernames": [],
    "boardUrls": [],
    "maxItems": 50,
    "language": "en",
    "maxPages": 10,
    "imageOnly": False,
    "excludeAds": False,
    "commerceOnly": False,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/pinterest-scraper-pro").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 '{
  "mode": "search",
  "keywords": [
    "python tutorial"
  ],
  "pinUrls": [],
  "usernames": [],
  "boardUrls": [],
  "maxItems": 50,
  "language": "en",
  "maxPages": 10,
  "imageOnly": false,
  "excludeAds": false,
  "commerceOnly": false
}' |
apify call crawlerbros/pinterest-scraper-pro --silent --output-dataset

```

## MCP server setup

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

```

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/j7UYseiRucblHIEEN/builds/Gvwdf8VlgZml0LEjS/openapi.json
