# Pinterest Scraper (`scrapeai/pinterest-scraper`) Actor

Scrapes Pinterest pins, user profiles, boards/collections, search results, and ideas pages. Supports comments, pagination, and proxy rotation.

- **URL**: https://apify.com/scrapeai/pinterest-scraper.md
- **Developed by:** [ScrapeAI](https://apify.com/scrapeai) (community)
- **Categories:** Social media, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $20.00 / 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.

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

This Apify Actor scrapes [Pinterest](https://www.pinterest.com) to collect structured data for pins, user profiles, boards/collections, search results, and ideas pages.

---

### Features

- **Pin detail** - Get all information per pin: images, videos, description, owner, board, like/repin/share counts, and more.
- **Comments** - Harvest all comments for a pin (paginated, no hard limit).
- **Ideas pages** - Fetch all pins from an ideas/topic feed URL.
- **User profile and pins** - Scrape a user profile info and/or all their pins.
- **Boards/Collections** - Get every pin from any board URL.
- **Search** - Search any keyword and retrieve all matching pin results.
- Bookmark-based **pagination** up to a configurable `endPage`.
- Global `maxItems` cap to avoid over-scraping.
- Apify Proxy integration for reliable access.

---

### Input Configuration

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

#### Fields

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `startUrls` | array | No\* | Pinterest URLs to scrape (pin, ideas, user, board, or search). |
| `search` | string | No\* | Keyword to search on Pinterest - generates a search URL automatically. |
| `includeUserInfoOnly` | boolean | No | For user profile URLs: output only user metadata, skip pins. Default false. |
| `includeComments` | boolean | No | Fetch all comments for each pin. Increases request count. Default false. |
| `maxItems` | integer | No | Maximum total items to push. Default 100. |
| `endPage` | integer | No | Last page of results to paginate through per URL. Default Infinite. |
| `proxy` | object | Yes | Proxy configuration. Apify Proxy (useApifyProxy: true) is recommended. |

At least one of `startUrls` or `search` must be provided.

#### Supported URL types

| URL pattern | Scraped as |
|-------------|-----------|
| `pinterest.com/pin/{id}/` | Pin detail |
| `pinterest.com/ideas/{category}/{id}/` | Ideas feed |
| `pinterest.com/{username}/` | User profile + pins |
| `pinterest.com/{username}/{board}/` | Board / collection feed |
| `pinterest.com/search/pins/?q=...` | Keyword search results |

***

### Output Structure

#### Pin record

```json
{
  "type": "pin",
  "url": "https://www.pinterest.com/pin/1096556209247124248",
  "id": "1096556209247124248",
  "title": "Altered Photographs",
  "description": "Whimsical Middle School Altered Photograph Art Project",
  "created_at": "Sat, 15 Oct 2022 14:56:20 +0000",
  "domain": "smallhandsbigart.com",
  "dominant_color": "#626862",
  "repin_count": 2538,
  "like_count": 162,
  "comment_count": 5,
  "share_count": 44,
  "images": { "236x": { "url": "https://i.pinimg.com/236x/..." } },
  "link": null,
  "is_video": false,
  "video_url": null,
  "owner": {
    "id": "VXNlcjo...",
    "username": "podailsaves2",
    "full_name": "Podail Saves",
    "follower_count": 0,
    "image_medium_url": "https://i.pinimg.com/75x75_RS/..."
  },
  "board": {
    "id": "Qm9hcmQ6...",
    "name": "Quick Saves",
    "url": "/podailsaves2/_quick_saves/",
    "privacy": "public"
  },
  "comments": []
}
```

#### User record (when includeUserInfoOnly is true)

```json
{
  "type": "user",
  "url": "https://www.pinterest.com/dudadelsanto/",
  "id": "...",
  "username": "dudadelsanto",
  "full_name": "...",
  "bio": "...",
  "website_url": "",
  "follower_count": 1200,
  "following_count": 340,
  "pin_count": 580,
  "board_count": 12,
  "image_medium_url": "https://i.pinimg.com/..."
}
```

***

### Proxy Usage

Pinterest blocks unauthenticated requests without good proxy coverage. Use Apify Proxy:

```json
{ "useApifyProxy": true }
```

***

### Tech Stack

- **Apify SDK** and **Crawlee** for crawling and dataset management
- **Puppeteer** for headless browsing and in-page fetch calls to Pinterest internal API
- **Node.js** (ESM project)

***

Happy scraping!

# Actor input Schema

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

List of Pinterest URLs to scrape. Supported types: pin detail, ideas, user profile, board/collection, or search URLs.

## `search` (type: `string`):

Keyword to search on Pinterest. Results are added to the scraping queue alongside any startUrls.

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

When scraping a user profile, output only the user metadata instead of all their pins. Fewer requests, faster results.

## `includeComments` (type: `boolean`):

Fetch all comments for each pin. Increases request count proportionally to the number of comments.

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

Maximum number of items to push to the dataset. Applies globally across all start URLs.

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

Last page number to paginate to for each URL. Default is Infinite.

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

Proxy servers to use. Apify Proxy is recommended for reliable Pinterest access.

## 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"
    }
  ],
  "includeUserInfoOnly": false,
  "includeComments": false,
  "maxItems": 100,
  "endPage": 99999,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# 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"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeai/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" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scrapeai/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"
    }
  ]
}' |
apify call scrapeai/pinterest-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Pinterest Scraper",
        "description": "Scrapes Pinterest pins, user profiles, boards/collections, search results, and ideas pages. Supports comments, pagination, and proxy rotation.",
        "version": "0.0",
        "x-build-id": "abZD1sriFuO4A4iiy"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapeai~pinterest-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapeai-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/scrapeai~pinterest-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapeai-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/scrapeai~pinterest-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapeai-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": [
                    "proxy"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "List of Pinterest URLs to scrape. Supported types: pin detail, ideas, user profile, board/collection, or search URLs.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL",
                                    "description": "Pinterest URL to scrape"
                                }
                            }
                        },
                        "default": [
                            {
                                "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"
                            }
                        ]
                    },
                    "search": {
                        "title": "Search Keyword",
                        "type": "string",
                        "description": "Keyword to search on Pinterest. Results are added to the scraping queue alongside any startUrls."
                    },
                    "includeUserInfoOnly": {
                        "title": "Include User Info Only",
                        "type": "boolean",
                        "description": "When scraping a user profile, output only the user metadata instead of all their pins. Fewer requests, faster results.",
                        "default": false
                    },
                    "includeComments": {
                        "title": "Include Comments",
                        "type": "boolean",
                        "description": "Fetch all comments for each pin. Increases request count proportionally to the number of comments.",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "type": "integer",
                        "description": "Maximum number of items to push to the dataset. Applies globally across all start URLs.",
                        "default": 100
                    },
                    "endPage": {
                        "title": "End Page",
                        "type": "integer",
                        "description": "Last page number to paginate to for each URL. Default is Infinite.",
                        "default": 99999
                    },
                    "proxy": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy servers to use. Apify Proxy is recommended for reliable Pinterest access.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
