# Pinterest Scraper Pins, Boards, Profiles & Search (`leadsbrary/pinterest-scraper`) Actor

Scrape Pinterest pins, boards, profiles and search results. Extract image URLs, repins, likes, shares, pinner info and outbound links. Perfect for lead generation, trend research, competitor analysis and visual content sourcing.

- **URL**: https://apify.com/leadsbrary/pinterest-scraper.md
- **Developed by:** [Alexandre Manguis](https://apify.com/leadsbrary) (community)
- **Categories:** Lead generation, SEO tools, Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 — Pins, Boards, Profiles & Search

Scrape Pinterest pins, boards, profiles and search results at scale. Extract image URLs, repins, likes, shares, pinner info and outbound links — without any API key. Ready for lead generation, trend research, competitor analysis and visual content sourcing.

---

### What you can scrape

| URL type | Example | What you get |
|---|---|---|
| **Pin page** | `/pin/ID/` | Full pin: image, title, description, link, engagement, pinner, board |
| **Profile** | `/username/` | All pins posted by a user, with board attribution |
| **Board** | `/username/board/` | All pins saved in a specific board |
| **Search** | `/search/pins/?q=...` | Pins matching any keyword search |
| **Ideas / Topics** | `/ideas/topic/ID/` | Pins from a curated topic feed |

---

### How to use

#### 1. Set start URLs

Paste one or more Pinterest URLs. You can mix types freely — pins, profiles, boards and searches in the same run.

#### 2. Control volume

| Input | Default | Description |
|---|---|---|
| **Max items per URL** | 20 | Maximum pins to collect per URL — each URL runs independently |
| **End page** | 1 | Scroll depth for paginated pages (boards, search, profiles). Each page adds ~25 pins |

#### 3. Options

| Option | Default | Description |
|---|---|---|
| **User / board info only** | Off | Return only profile/board metadata, skip individual pins |
| **Custom map function** | — | JavaScript function applied to each item before saving |

#### 4. Proxy

Apify Proxy with **residential IPs** is strongly recommended. Without proxy, Pinterest will block requests with CAPTCHA walls.

---

### Output

Every item has a `type` field: `"pin"` or `"board"`.

#### Pin

```json
{
  "type": "pin",
  "id": "1096556209247124248",
  "url": "https://www.pinterest.com/pin/1096556209247124248/",
  "title": "Whimsical Middle School Altered Photograph Art Project",
  "description": "Altered Photographs art class project",
  "link": "https://smallhandsbigart.com/altered-photos",
  "domain": "smallhandsbigart.com",
  "imageUrl": "https://i.pinimg.com/originals/8a/83/64/8a8364da0e09c9bfd85616f7bdfae8f7.jpg",
  "thumbnailUrl": "https://i.pinimg.com/236x/8a/83/64/8a8364da0e09c9bfd85616f7bdfae8f7.jpg",
  "isVideo": false,
  "videoUrl": null,
  "repinCount": 2538,
  "likeCount": 162,
  "shareCount": 44,
  "commentCount": 5,
  "createdAt": "Sat, 15 Oct 2022 14:56:20 +0000",
  "pinnerUsername": "podailsaves2",
  "pinnerName": "Podail Saves",
  "pinnerProfileUrl": "https://www.pinterest.com/podailsaves2/",
  "pinnerAvatarUrl": "https://i.pinimg.com/75x75_RS/31/bc/60/31bc60a4d13972049a4a2fa153a9b444.jpg",
  "boardName": "Quick Saves",
  "boardUrl": "https://www.pinterest.com/podailsaves2/_quick_saves/"
}
````

> **Note:** `repinCount`, `likeCount`, `shareCount` and `commentCount` are fully populated for individual pin pages. For feed results (search, board, profile), they may be `null` — this is a Pinterest API limitation for unauthenticated access.

***

### Use cases

- **Lead generation** — Find creators and businesses in any niche with their website URLs and outbound links
- **Trend research** — Monitor search results and ideas pages for emerging topics
- **Competitor analysis** — Track which pins get the most repins and shares in your category
- **E-commerce** — Collect product pins with outbound links for affiliate or market research
- **Content sourcing** — Gather high-quality images with full attribution (pinner, board, source link)
- **Influencer discovery** — Identify active pinners by scraping profiles in a category

***

### Notes

- Pinterest requires **Apify Proxy** (residential) for reliable scraping
- `endPage` controls scroll depth — each page triggers Pinterest's infinite scroll and loads ~25 more items
- Engagement counts (`repinCount`, `likeCount`, etc.) are fully available on individual pin pages; may be `null` for feed/search results
- Billing is **per result** — you are charged only for items actually saved to the dataset

***

### Keywords

Pinterest scraper, scrape Pinterest, Pinterest data extractor, Pinterest API alternative, Pinterest pins scraper, Pinterest board scraper, Pinterest profile scraper, Pinterest search scraper, extract Pinterest images, Pinterest repins, Pinterest likes, Pinterest pinner data, Pinterest outbound links, Pinterest lead generation, Pinterest influencer research, Pinterest trend analysis, Pinterest marketing tool, Pinterest content scraper, social media scraper, visual content extractor, Pinterest crawler, Pinterest no-API scraper

# Actor input Schema

## `startUrls` (type: `array`):

Pinterest URLs to scrape. Supports: pin pages, user profiles, boards, search results, and ideas pages.

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

Maximum number of items to save per URL. Each start URL is processed independently up to this limit. Total items = maxItems × number of URLs.

## `endPage` (type: `integer`):

Number of scroll pages to load for paginated results (boards, search, profiles). Each page scrolls to the bottom to trigger Pinterest's infinite scroll.

## `includeUserInfoOnly` (type: `boolean`):

For profile and board URLs: only return the profile/board metadata without individual pins.

## `proxy` (type: `object`):

Proxy settings. Apify Proxy with residential IPs is strongly recommended to avoid blocks.

## `customMapFunction` (type: `string`):

Optional JavaScript function applied to each output item before saving. Must return an object.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.pinterest.com/pin/1054827543951238554/"
    },
    {
      "url": "https://www.pinterest.com/ideas/beauty/935541271955/"
    },
    {
      "url": "https://www.pinterest.com/dudadelsanto/"
    },
    {
      "url": "https://www.pinterest.com/dudadelsanto/nail-inspo/"
    },
    {
      "url": "https://www.pinterest.com/search/pins/?q=Valentine%E2%80%99s%20Nail%20Art&rs=hub_page"
    }
  ],
  "maxItems": 20,
  "endPage": 1,
  "includeUserInfoOnly": false,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset containing all scraped pins, profiles and boards.

# 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 = {
    "startUrls": [
        {
            "url": "https://www.pinterest.com/pin/1054827543951238554/"
        },
        {
            "url": "https://www.pinterest.com/ideas/beauty/935541271955/"
        },
        {
            "url": "https://www.pinterest.com/dudadelsanto/"
        },
        {
            "url": "https://www.pinterest.com/dudadelsanto/nail-inspo/"
        },
        {
            "url": "https://www.pinterest.com/search/pins/?q=Valentine%E2%80%99s%20Nail%20Art&rs=hub_page"
        }
    ],
    "maxItems": 20,
    "endPage": 1,
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("leadsbrary/pinterest-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 = {
    "startUrls": [
        { "url": "https://www.pinterest.com/pin/1054827543951238554/" },
        { "url": "https://www.pinterest.com/ideas/beauty/935541271955/" },
        { "url": "https://www.pinterest.com/dudadelsanto/" },
        { "url": "https://www.pinterest.com/dudadelsanto/nail-inspo/" },
        { "url": "https://www.pinterest.com/search/pins/?q=Valentine%E2%80%99s%20Nail%20Art&rs=hub_page" },
    ],
    "maxItems": 20,
    "endPage": 1,
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("leadsbrary/pinterest-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 '{
  "startUrls": [
    {
      "url": "https://www.pinterest.com/pin/1054827543951238554/"
    },
    {
      "url": "https://www.pinterest.com/ideas/beauty/935541271955/"
    },
    {
      "url": "https://www.pinterest.com/dudadelsanto/"
    },
    {
      "url": "https://www.pinterest.com/dudadelsanto/nail-inspo/"
    },
    {
      "url": "https://www.pinterest.com/search/pins/?q=Valentine%E2%80%99s%20Nail%20Art&rs=hub_page"
    }
  ],
  "maxItems": 20,
  "endPage": 1,
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call leadsbrary/pinterest-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Pinterest Scraper Pins, Boards, Profiles & Search",
        "description": "Scrape Pinterest pins, boards, profiles and search results. Extract image URLs, repins, likes, shares, pinner info and outbound links. Perfect for lead generation, trend research, competitor analysis and visual content sourcing.",
        "version": "1.0",
        "x-build-id": "F7qdPTN11xdx0aHZ1"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/leadsbrary~pinterest-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-leadsbrary-pinterest-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/leadsbrary~pinterest-scraper/runs": {
            "post": {
                "operationId": "runs-sync-leadsbrary-pinterest-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/leadsbrary~pinterest-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-leadsbrary-pinterest-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "Pinterest URLs to scrape. Supports: pin pages, user profiles, boards, search results, and ideas pages.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "maxItems": {
                        "title": "Max items per URL",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of items to save per URL. Each start URL is processed independently up to this limit. Total items = maxItems × number of URLs.",
                        "default": 20
                    },
                    "endPage": {
                        "title": "End page",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Number of scroll pages to load for paginated results (boards, search, profiles). Each page scrolls to the bottom to trigger Pinterest's infinite scroll.",
                        "default": 1
                    },
                    "includeUserInfoOnly": {
                        "title": "User / board info only (no pins)",
                        "type": "boolean",
                        "description": "For profile and board URLs: only return the profile/board metadata without individual pins.",
                        "default": false
                    },
                    "proxy": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings. Apify Proxy with residential IPs is strongly recommended to avoid blocks."
                    },
                    "customMapFunction": {
                        "title": "Custom map function",
                        "type": "string",
                        "description": "Optional JavaScript function applied to each output item before saving. Must return an object."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
