# Pinterest Pins scraper (`data_dino/pinterest-pins-scraper`) Actor

Collect Pinterest pins from keyword search, profiles, boards, individual pins, or related pins — titles, image/video URLs, save counts, pinner and board details, and source-linked URLs.

- **URL**: https://apify.com/data_dino/pinterest-pins-scraper.md
- **Developed by:** [Data Dino](https://apify.com/data_dino) (community)
- **Features:** Limited permissions
- **Stats:** 2 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. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Pinterest Pins scraper

Collect Pinterest pins in one Apify run. Search by keyword, scrape all pins from a profile or board, fetch individual pins, or expand related pins — then receive structured records with titles, descriptions, image and video URLs, save counts, pinner and board details, and source links. Ready for export to JSON, CSV, or Excel.

### Why use this actor?

- **Multiple collection modes** — keyword search, full profiles, boards, individual pins, or related-pins expansion, all in a single run.
- **Structured pin records** — every pin follows the same flat, query-friendly shape: title, description, hashtags, image and video variants, dominant color, save counts, pinner profile, and source board.
- **Video support** — capture video pins with their HLS/MP4 URLs, duration, resolution, and thumbnail.
- **Traceable sources** — each record keeps its Pinterest pin URL plus which query or source produced it.
- **No login required** — runs against Pinterest's public site data, no credentials needed.

### Input

All fields are optional. Defaults collect up to 10 pins for the search "home office ideas".

| Field | Type | Default | Description |
|---|---|---:|---|
| `searchQueries` | string array | `["home office ideas"]` | Keywords to search Pinterest for pins. |
| `searchScope` | enum | `pins` | Search surface: `pins` or `videos`. |
| `profileUrls` | string array | `[]` | Pinterest profile URLs (or usernames) to scrape pins from. |
| `boardUrls` | string array | `[]` | Pinterest board URLs (or `/user/board/` paths) to scrape pins from. |
| `pinUrls` | string array | `[]` | Individual pin URLs (or numeric pin ids) to fetch. |
| `relatedPinUrl` | string | *(empty)* | A pin URL/id whose related pins to expand. |
| `maxPins` | integer | `10` | Stop after this many pins across all targets. |
| `includeProfileBoards` | boolean | `false` | Also walk each profile's boards. |
| `enrichProfilePins` | boolean | `true` | Fetch full detail for profile pins. |
| `delay` | number | `0.3` | Seconds between requests. |

#### Example input

```json
{
  "searchQueries": ["home office ideas", "mood board"],
  "profileUrls": ["https://www.pinterest.com/pinterest/"],
  "boardUrls": ["https://www.pinterest.com/pinterest/easy-and-chic-holiday-nail-ideas/"],
  "maxPins": 100,
  "includeProfileBoards": false,
  "enrichProfilePins": true
}
```

### Output

The actor pushes one dataset item per pin. Each item includes the pin ID and URL, title, description, alt text, hashtags, dominant color, image sizes and the original URL, video fields when the pin is a video, the outbound link and domain, save count, reaction counts, comment count, creation time, the pinner's profile, the source board, Pinterest's own visual annotations, the source type and value, and the scrape timestamp. Missing source values are returned as `null`.

A representative result:

```json
{
  "pinId": 424605071146306109,
  "pinUrl": "https://www.pinterest.com/pin/424605071146306109/",
  "title": "Cozy home office corner",
  "description": "A calm home office setup with warm lighting.",
  "altText": "home office desk setup",
  "imageUrl": "https://i.pinimg.com/originals/xx/yy/zz.jpg",
  "imageWidth": 735,
  "imageHeight": 1102,
  "isVideo": false,
  "domain": "example.com",
  "link": "https://example.com/home-office",
  "saveCount": 24104,
  "pinner": { "username": "designinspo", "fullName": "Design Inspo", "followerCount": 81200 },
  "board": { "name": "Office Ideas", "url": "https://www.pinterest.com/designinspo/office-ideas/" },
  "sourceType": "search",
  "sourceValue": "home office ideas",
  "partial": false,
  "scrapedAt": "2026-11-12T08:00:00Z"
}
```

### Practical limitations

- Results reflect public Pinterest data at run time and may change as pins are added or removed.
- Search, board, and related grids may return opaque `e1_…` pin ids that cannot be detail-enriched; those rows keep full grid fidelity but flag `partial: true`. Profile pins keep numeric ids and are enriched automatically.
- A run that cannot collect any pin is reported as failed rather than returning invented records.
- Use collected information in accordance with Pinterest's terms and applicable privacy and data-use requirements.

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords to search Pinterest for pins (e.g. "home office ideas"). One pin per matching result.

## `searchScope` (type: `string`):

Keyword search surface: image pins or video pins.

## `profileUrls` (type: `array`):

Pinterest profile URLs (or usernames) to scrape pins from. Profile pins are detail-enriched and include save counts.

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

Pinterest board URLs (or /user/board/ paths) to scrape pins from. Board feeds include save counts.

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

Individual pin URLs (or numeric pin ids) to fetch.

## `relatedPinUrl` (type: `string`):

A pin URL/id whose related pins to expand.

## `maxPins` (type: `integer`):

Stop after this many pins collected across all targets.

## `includeProfileBoards` (type: `boolean`):

For each profile URL, also walk its boards (adds a request per board).

## `enrichProfilePins` (type: `boolean`):

Fetch full detail for profile pins (numeric ids only).

## `delay` (type: `number`):

Seconds between requests.

## Actor input object example

```json
{
  "searchQueries": [
    "home office ideas"
  ],
  "searchScope": "pins",
  "profileUrls": [],
  "boardUrls": [],
  "pinUrls": [],
  "relatedPinUrl": "",
  "maxPins": 10,
  "includeProfileBoards": false,
  "enrichProfilePins": true,
  "delay": 0.3
}
```

# Actor output Schema

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

All scraped Pinterest pins, one item per row. Field shape: pinId, pinUrl, title, description, altText, hashtags, imageUrl, imageWidth, imageHeight, images, dominantColor, isVideo, videoUrl, videoContentType, videoDurationSec, videoWidth, videoHeight, videoThumbnailUrl, videoVariants, domain, link, saveCount, reactionCounts, commentCount, createdAt, pinner, board, visualAnnotations, sourceType, sourceValue, detailEnriched, resolvablePinId, partial, scrapedAt.

# 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 = {};

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data_dino/pinterest-pins-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/4N1YscsmSyGi6OMsT/builds/qibfSRDA9QvoYpaAh/openapi.json
