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

Fast Pinterest pins scraper. Search by keyword, scrape every pin from a board or user, or fetch single pin detail. Extracts images, title, description, save count, source link, dominant color, pinner and board. No browser.

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

## Pricing

from $2.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 Pins Scraper

Fast, low-cost Pinterest pins scraper. One actor, four input modes:

1. **Search query**: paginate Pinterest's search results for any free-text query.
2. **Board URL**: every pin from any public board.
3. **User profile**: every pin from any public user account.
4. **Single pin URL**: full per-pin detail including the outbound source link.

Direct read of Pinterest's public Resource API with TLS-fingerprint impersonation. No headless browser, no logins, no user cookies. Each pin record is one item in the default dataset.

### What you get per pin

Every record has the same shape, regardless of input mode:

- `id`, `url`, `title`, `description`, `altText`
- `imageUrl` (largest) plus `allImageUrls` (every size variant)
- `imageWidth`, `imageHeight`, `dominantColor`
- `isVideo`, `videoUrl` (MP4 for video pins)
- `sourceLink`, `domain`: the outbound URL the pin points to
- `saveCount`, `repinCount`, `commentCount`, `reactionCount`
- `createdAt`
- `pinner`: id, username, full name, follower count, profile URL, avatar
- `board`: id, name, URL, pin count, follower count
- `isPromoted`, `source`, `sourceInput`, `scrapedAt`

### Input

| Field | Type | Description |
|---|---|---|
| `searchQueries` | string[] | Pinterest search queries. One pin search per query. |
| `boardUrls` | string[] | Pinterest board URLs (e.g. `https://www.pinterest.com/{user}/{board}/`). |
| `userUrls` | string[] | Pinterest user URLs or bare usernames. |
| `pinUrls` | string[] | Pinterest pin URLs or bare pin IDs. |
| `maxResults` | integer | Cap on pins per search / board / user. Default 100. |
| `enrichWithDetails` | boolean | When true, fetch full per-pin detail (adds source link plus aggregated save count). |
| `proxyConfiguration` | object | Apify proxy config. Residential US recommended. |

You can mix input modes in a single run. Each input is independent; `maxResults` applies per input, not globally.

#### Example input

```json
{
    "searchQueries": ["minimalist kitchen", "japandi living room"],
    "boardUrls": ["https://www.pinterest.com/akoerten/scott-lane-kitchen/"],
    "userUrls": ["akoerten"],
    "pinUrls": ["https://www.pinterest.com/pin/4503668374286122/"],
    "maxResults": 50,
    "enrichWithDetails": false
}
````

### Pricing

Pay per result. $0.002 per pin record. No actor-start fee, no rental, no surprise charges.

That is $2.00 per 1,000 pins, undercutting the top Pinterest pin scrapers on Apify by 30 to 50 percent.

### How it works

- Cold-start GET to `https://www.pinterest.com/` to warm the anonymous cookie session.
- Each input mode hits the matching Pinterest Resource API endpoint:
  - search uses `BaseSearchResource`
  - board uses `BoardResource` plus `BoardFeedResource`
  - user uses `UserPinsResource`
  - pin uses `PinResource`
- Pagination is via Pinterest's bookmark token.
- TLS fingerprint impersonation via `curl_cffi` (chrome124 / chrome131 / safari17\_0 rotation) defeats Pinterest's stock-client block at the handshake layer.
- One 403 triggers automatic session rotation and re-warm.

No headless browser. No CDP. No Cloudflare cookie scraping. Just clean JSON API calls.

### Output format

The default dataset receives one record per pin in [camelCase JSON](https://docs.apify.com/platform/storage/dataset). Use the Overview view in Apify Console for a quick scrollable table; use `?format=csv` on the dataset URL for CSV. See the dataset schema for the full field list and types.

### Use cases

- Content marketing: discover trending visuals for any niche.
- Ecommerce trend research: track Pinterest saves on competitor product images.
- Creative inspiration mining: build moodboards programmatically.
- Influencer or pinner discovery: rank users by save velocity.
- Image dataset building for fashion, home decor, food, fitness verticals.

### Notes and limits

- Pinterest search re-ranks per session. Two runs of the same query 5 minutes apart return overlapping but different first pages.
- `saveCount` from search-only results is the per-pin repin count. Use `enrichWithDetails: true` to get the aggregated cross-pin save count from `aggregated_pin_data.aggregated_stats.saves` (usually 5 to 50 times larger).
- Pinterest's bookmark cursor walks hundreds of pages deep without re-warming.
- For boards or users with thousands of pins, set `maxResults` accordingly and budget more memory.
- Residential proxy is recommended for sustained scraping. Datacenter works for small jobs.

### Related actors

- Looking for Pinterest follower lists, comments, or board catalogs? Reach out and we will add them.

# Actor input Schema

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

Pinterest search queries. One pin search per query.

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

Pinterest board URLs (e.g. https://www.pinterest.com/akoerten/scott-lane-kitchen/). Returns every pin on each board.

## `userUrls` (type: `array`):

Pinterest user profile URLs (e.g. https://www.pinterest.com/akoerten/) or bare usernames. Returns every public pin from each user.

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

Pinterest pin URLs (e.g. https://www.pinterest.com/pin/4503668374286122/) or bare pin IDs. Returns full per-pin detail including outbound source link.

## `maxResults` (type: `integer`):

Cap on total pins returned per search query, per board, or per user.

## `enrichWithDetails` (type: `boolean`):

When true, the scraper hits each pin's detail endpoint to pull outbound source link, aggregated save count, and rich metadata. Adds time and a small per-pin request.

## `proxyConfiguration` (type: `object`):

Residential proxies are recommended for sustained scraping. Datacenter works for low-volume runs.

## Actor input object example

```json
{
  "searchQueries": [
    "minimalist kitchen"
  ],
  "boardUrls": [],
  "userUrls": [],
  "pinUrls": [],
  "maxResults": 50,
  "enrichWithDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset of Pinterest pin records.

## `datasetCsv` (type: `string`):

Same dataset rendered as CSV.

# 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 = {
    "searchQueries": [
        "minimalist kitchen"
    ],
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("cirkit/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 = {
    "searchQueries": ["minimalist kitchen"],
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("cirkit/pinterest-pins-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 '{
  "searchQueries": [
    "minimalist kitchen"
  ],
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call cirkit/pinterest-pins-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Pinterest Pins Scraper",
        "description": "Fast Pinterest pins scraper. Search by keyword, scrape every pin from a board or user, or fetch single pin detail. Extracts images, title, description, save count, source link, dominant color, pinner and board. No browser.",
        "version": "0.2",
        "x-build-id": "lam4WueJTjqyoHbhY"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/cirkit~pinterest-pins-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-cirkit-pinterest-pins-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/cirkit~pinterest-pins-scraper/runs": {
            "post": {
                "operationId": "runs-sync-cirkit-pinterest-pins-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/cirkit~pinterest-pins-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-cirkit-pinterest-pins-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",
                "properties": {
                    "searchQueries": {
                        "title": "Search Queries",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "Pinterest search queries. One pin search per query.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "boardUrls": {
                        "title": "Board URLs",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "Pinterest board URLs (e.g. https://www.pinterest.com/akoerten/scott-lane-kitchen/). Returns every pin on each board.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "userUrls": {
                        "title": "User Profile URLs or Usernames",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "Pinterest user profile URLs (e.g. https://www.pinterest.com/akoerten/) or bare usernames. Returns every public pin from each user.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "pinUrls": {
                        "title": "Single Pin URLs",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "Pinterest pin URLs (e.g. https://www.pinterest.com/pin/4503668374286122/) or bare pin IDs. Returns full per-pin detail including outbound source link.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxResults": {
                        "title": "Max Results Per Input",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Cap on total pins returned per search query, per board, or per user.",
                        "default": 100
                    },
                    "enrichWithDetails": {
                        "title": "Fetch Full Detail Per Pin",
                        "type": "boolean",
                        "description": "When true, the scraper hits each pin's detail endpoint to pull outbound source link, aggregated save count, and rich metadata. Adds time and a small per-pin request.",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Residential proxies are recommended for sustained scraping. Datacenter works for low-volume runs.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "US"
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
