# Pinterest Pin Scraper (`devcake/pinterest-pin-scraping`) Actor

Extract pins with prices, discounts, stock status, merchant verification, ratings and reviews, direct product
links, source websites (IKEA, SHEIN, etc.), visual annotations,

- **URL**: https://apify.com/devcake/pinterest-pin-scraping.md
- **Developed by:** [devcake](https://apify.com/devcake) (community)
- **Categories:** E-commerce, Social media, Automation
- **Stats:** 45 total users, 7 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $4.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 Product Data Scraper

Extract rich product data from Pinterest pins including prices, stock status, merchant info, and 40+ e-commerce fields. Perfect for price monitoring, competitor analysis, and dropshipping research.

### ✨ Features

#### Core Pin Data
- 📌 **Complete Pin Extraction** — ID, URL, title, description, domain, category
- 🖼️ **All Image Sizes** — Get 4 resolutions (236x, 474x, 736x, orig) with dimensions
- 🎥 **Video Support** — Video metadata when available
- 📊 **Engagement Metrics** — Saves, likes, comments, repins, shares
- 👤 **Creator Details** — Username, full name, avatar, follower count, verification
- 📦 **Board Information** — Board name, URL, privacy, owner details
- 🔄 **Original Creator** — Distinguish between pinner and original content creator

#### Product Data (When Available)
- 🛍️ **Product Detection** — Automatically identify product pins
- 💰 **Price Data** — Current price, original price, discounts, price ranges
- 📦 **Stock Status** — In-stock, out-of-stock, stale product detection
- 🏪 **Merchant Info** — Official merchant verification, follower count, avatar
- ⭐ **Ratings & Reviews** — Aggregate ratings and review counts
- 🌐 **Product Links** — Direct links to external product pages

#### Additional Features
- 💬 **Comments with Replies** — Extract user feedback and nested replies
- 🏷️ **Visual Tags** — Auto-generated product annotations
- 🔍 **SEO Metadata** — Breadcrumbs, canonical URLs, descriptions
- 🚀 **No Login Required** — Works without cookies for public pins
- 🌐 **Proxy Support** — Built-in Apify Proxy integration

### 💡 Use Cases

| Use Case | Description |
|----------|-------------|
| **Price Monitoring** | Track price changes across product pins |
| **Competitor Analysis** | Analyze competitor product pricing and availability |
| **Dropshipping Research** | Find trending products with pricing, ratings, and merchant info |
| **Product Discovery** | Identify trending products with rich e-commerce data |
| **Content Research** | Study trending pins and engagement patterns |
| **Affiliate Marketing** | Extract product links for affiliate programs |

### 💰 Pricing

**Pay per use** — $4 per 1,000 pins

No subscriptions, no commitments, no hidden fees. One run can process up to 10,000 pins. Control spending with Maximum Cost Per Run.

### 🔗 Other Pinterest Scrapers

Need different Pinterest data? We offer specialized tools for every use case:

| Actor | Pricing | Link |
|-------|---------|------|
| 🔍 **Pinterest Search Scraper** | $4 per 1,000 results | [View Actor](https://apify.com/devcake/pinterest-search-scraper) |
| 👤 **Pinterest Profile Scraper** | $4 per 1,000 profiles | [View Actor](https://apify.com/devcake/pinterest-profile-scraper) |
| 📁 **Pinterest Board Scraper** | $4 per 1,000 pins | [View Actor](https://apify.com/devcake/pinterest-board-scraper) |
| 🎯 **All-in-One Pinterest Scraper** | $25/month unlimited | [View Actor](https://apify.com/devcake/pinterest-data-scraper) |

### 📝 Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `startUrls` | array | ✅ Yes | Pinterest pin URLs |
| `includeComments` | boolean | No | Fetch comments for user feedback |
| `maxComments` | integer | No | Max comments per pin (1-100, default: 10) |
| `proxyConfig` | object | No | Proxy configuration (recommended) |
| `maxTotalChargeUsd` | number | No | Spending limit per run (default: $10) |

#### Supported URL Formats

````

https://www.pinterest.com/pin/123456789/
https://pinterest.com/pin/123456789/

````

### 📤 Output

Each pin includes 50+ data fields. Key fields include:

#### Basic Data
- `id`, `url`, `title`, `description`, `domain`, `link`
- `images.236x`, `images.474x`, `images.736x`, `images.orig`

#### Engagement
- `saves`, `like_count`, `comment_count`, `repin_count`, `share_count`

#### Creator & Board
- `pinner` — Username, full name, avatar, follower count, verification
- `board` — Name, URL, privacy, owner details
- `original_creator` — Original pin source for repin analysis

#### Product Data (When Available)
- `products` — Array with id, name, price, original price, stock status
- `site_name` — Source website (e.g., "IKEA", "Amazon")
- `official_merchant` — Verification status, followers, avatar
- `aggregate_rating` — Rating value, rating count, review count
- `tracked_link` — Direct product URL for affiliate tracking
- `visual_annotations` — Auto-generated product tags
- `seo_breadcrumbs` — Navigation breadcrumbs

#### Comments (When Enabled)
- `comments[]` — Array with nested replies (top-level + 2nd level)

### 🎯 Example

```json
{
  "startUrls": [
    {"url": "https://www.pinterest.com/pin/123456789/"}
  ],
  "includeComments": true,
  "maxComments": 20,
  "maxTotalChargeUsd": 15
}
````

```json
{
  "id": "885661082971610215",
  "url": "https://www.pinterest.com/pin/885661082971610215/",
  "title": "WHITE 1950S SPAGHETTI STRAP FLORAL A-LINE DRESS",
  "images": {
    "236x": {"url": "https://i.pinimg.com/236x/..."},
    "474x": {"url": "https://i.pinimg.com/474x/..."},
    "736x": {"url": "https://i.pinimg.com/736x/..."},
    "orig": {"url": "https://i.pinimg.com/originals/..."}
  },
  "saves": 11,
  "pinner": {"username": "allisonstephenson48", "follower_count": 0},
  "board": {"name": "stuff that I want to thrift", "privacy": "public"},
  "is_product_pin": true,
  "products": [{"id": "261870213372992", "name": "White 1950s Dress", "price": "$28.99", "standard_price": "$56.99"}],
  "site_name": "Retro Stage",
  "official_merchant": {"username": "retrostage_official", "follower_count": 28629, "is_verified_merchant": true},
  "aggregate_rating": {"rating_value": "4.3", "rating_count": 3}
}
```

### 🚀 Getting Started

1. **Add pin URLs** — Enter Pinterest pin URLs (e.g., pinterest.com/pin/123456789/)
2. **Enable comments** (optional) — Get user feedback and reviews
3. **Enable proxy** (recommended) — Use Apify Proxy for reliability
4. **Run** — Get complete pin data in JSON format

### 💡 Tips

- **Product Pins**: Check `is_product_pin: true` to identify product pins
- **Price Analysis**: Compare `price` vs `standard_price` to calculate discounts
- **Merchant Trust**: Verify `official_merchant.is_verified_merchant` for trusted sellers
- **Stock Monitoring**: Track `is_oos_product` for out-of-stock alerts
- **Content Discovery**: Use `original_creator` to find original content sources

***

### ❓ FAQ

**Q: Do I need Pinterest login credentials?**
A: No! This scraper works without login for all public pins. Login is only needed for private content.

**Q: How many pins can I scrape per run?**
A: Up to 10,000 pins per run. For larger datasets, split into multiple runs.

**Q: Does this work with video pins?**
A: Yes! Video pins include video URL and metadata in the output.

**Q: Can I track price changes over time?**
A: Yes. Store each run's output and compare `products[].price` fields to detect changes.

**Q: Are comments included?**
A: Only when `includeComments` is enabled. Includes nested replies (2 levels deep).

***

### ⚠️ Troubleshooting

**Getting blocked?**

- Enable Apify Proxy in the input (recommended)
- Reduce `maxResults` to slow down requests
- Add delays between requests

**Missing product data?**

- Not all pins are product pins. Check `is_product_pin` field
- Some merchants don't provide rich metadata to Pinterest

**Incomplete comments?**

- Some comments may be filtered by Pinterest
- Increase `maxComments` to fetch more replies

**Need help?** Contact us through Apify Console or check our documentation.

# Actor input Schema

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

Add Pinterest pin URLs to scrape (e.g., https://www.pinterest.com/pin/123456789/)

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

Fetch comments for each pin. When enabled, includes top-level comments and nested replies.

## `maxComments` (type: `integer`):

Maximum number of comments to fetch per pin (only used when includeComments is true)

## `proxyConfig` (type: `object`):

Configure proxy rotation. Using SHARED\_PROXY is recommended for Pinterest.

## `maxTotalChargeUsd` (type: `number`):

Set a spending limit for this run. The actor will stop when this amount is reached.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.pinterest.com/pin/123456789/"
    }
  ],
  "includeComments": false,
  "maxComments": 10,
  "maxTotalChargeUsd": 10
}
```

# Actor output Schema

## `allResults` (type: `string`):

Complete dataset with all pin data

## `overview` (type: `string`):

Pinterest pins with all image sizes (236x-orig), videos, engagement metrics, creator info, boards, and 40+ product fields including pricing, stock status, merchant data, ratings, and tracked links

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

// Run the Actor and wait for it to finish
const run = await client.actor("devcake/pinterest-pin-scraping").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/123456789/" }] }

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

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Pinterest Pin Scraper",
        "description": "Extract pins with prices, discounts, stock status, merchant verification, ratings and reviews, direct product\nlinks, source websites (IKEA, SHEIN, etc.), visual annotations,",
        "version": "0.0",
        "x-build-id": "kVIWHAMkpBIBrItUg"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/devcake~pinterest-pin-scraping/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-devcake-pinterest-pin-scraping",
                "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/devcake~pinterest-pin-scraping/runs": {
            "post": {
                "operationId": "runs-sync-devcake-pinterest-pin-scraping",
                "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/devcake~pinterest-pin-scraping/run-sync": {
            "post": {
                "operationId": "run-sync-devcake-pinterest-pin-scraping",
                "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": "📎 Pin URLs",
                        "type": "array",
                        "description": "Add Pinterest pin URLs to scrape (e.g., https://www.pinterest.com/pin/123456789/)",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "includeComments": {
                        "title": "💬 Include Comments",
                        "type": "boolean",
                        "description": "Fetch comments for each pin. When enabled, includes top-level comments and nested replies.",
                        "default": false
                    },
                    "maxComments": {
                        "title": "📝 Max Comments per Pin",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum number of comments to fetch per pin (only used when includeComments is true)",
                        "default": 10
                    },
                    "proxyConfig": {
                        "title": "🌐 Proxy Configuration",
                        "type": "object",
                        "description": "Configure proxy rotation. Using SHARED_PROXY is recommended for Pinterest."
                    },
                    "maxTotalChargeUsd": {
                        "title": "💰 Maximum Cost Per Run (USD)",
                        "minimum": 1,
                        "type": "number",
                        "description": "Set a spending limit for this run. The actor will stop when this amount is reached.",
                        "default": 10
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
