# 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:** 7 total users, 1 monthly users, 100.0% runs succeeded, 0 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/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 — 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(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 '{
  "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": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,leadsbrary/pinterest-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/kEYp2WgAxMqLBVPN4/builds/F7qdPTN11xdx0aHZ1/openapi.json
