# Pinterest Media Scraper (`seymon/pinterest-media`) Actor

Scrape Pinterest images, videos, GIFS and carousel (slide) images with this actor!

- **URL**: https://apify.com/seymon/pinterest-media.md
- **Developed by:** [Seymon](https://apify.com/seymon) (community)
- **Categories:** Social media, Automation, Developer tools
- **Security:** Limited permissions
- **Stats:** 51 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 media

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

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 Media Downloader

**Extract any media from Pinterest effortlessly**

Pinterest Media Downloader is an Apify Actor that provides a powerful solution for accessing all types of Pinterest content. This comprehensive media extraction service handles the complexities of Pinterest's platform, delivering clean media URLs directly to your dataset.

### Features

- ✅ Download high-resolution images from individual pins
- ✅ Extract video content including reels and standard videos
- ✅ Save animated GIFs in their original quality
- ✅ Retrieve multi-image carousel posts with all contained media items
- ✅ Process Pinterest media regardless of content type or format
- ✅ Built-in proxy support to avoid IP blocking
- ✅ Structured output with metadata and error handling

### Supported Media Types

- **Images**: High-resolution photos and graphics
- **Videos**: Standard videos and reels with 720p quality
- **Story Videos**: Multi-page story content with video/image combinations
- **Carousels**: Multi-image posts with all contained media

### Input

The actor accepts Pinterest URLs through the `startUrls` field:

```json
{
  "startUrls": [
    { "url": "https://pinterest.com/pin/3870349675321760/" },
    { "url": "https://pinterest.com/pin/3870349675321760/" }
  ],
  "proxyConfiguration": { "useApifyProxy": true }
}
```

**Supported URL format:**

- Individual pins only: `https://pinterest.com/pin/{pin-id}/`

### Output

Each processed Pinterest URL produces a structured record in the dataset:

#### Single media extraction:

```json
{
  "url": "https://pinterest.com/pin/703756187938240/",
  "status": "success", 
  "multi_media": 0,
  "media": ["https://i.pinimg.com/originals/ab/cd/ef/image.jpg"],
  "scrapedAt": "2025-01-15T10:30:45.123Z"
}
```

#### Multi-media content (carousels/stories):

```json
{
  "url": "https://pinterest.com/pin/123456789/",
  "status": "success",
  "multi_media": 1, 
  "media": [
    "https://i.pinimg.com/originals/ab/cd/ef/image1.jpg",
    "https://i.pinimg.com/originals/gh/ij/kl/image2.jpg"
  ],
  "scrapedAt": "2025-01-15T10:30:45.123Z"
}
```

#### Error cases:

```json
{
  "url": "https://pinterest.com/pin/invalid/",
  "status": "failed",
  "error": "Invalid or unsupported Pinterest URL",
  "scrapedAt": "2025-01-15T10:30:45.123Z"
}
```

# Actor input Schema

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

Pinterest pin URLs to extract media from. Only individual pins are supported. Example:
• https://pinterest.com/pin/3870349675321760/

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

Proxy settings for the crawler. Recommended to use Apify Proxy to avoid IP blocking from Pinterest. Set to `{ "useApifyProxy": false }` to disable proxy usage.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://pinterest.com/pin/3870349675321760/"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Extracted media items (images, videos, story videos, carousel media) from the default dataset.

## `failedItems` (type: `string`):

URLs that could not be processed, with the failure reason.

# 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://pinterest.com/pin/3870349675321760/"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("seymon/pinterest-media").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://pinterest.com/pin/3870349675321760/" }],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("seymon/pinterest-media").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://pinterest.com/pin/3870349675321760/"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call seymon/pinterest-media --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,seymon/pinterest-media"
        }
    }
}
```

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/FP3lGlVwaLTg9IhUJ/builds/SC3ZJjPTx4ApxDkTn/openapi.json
