# Pinterest Pin Downloader (`headlessagent/pinterest-pin-downloader`) Actor

Download and extract detailed metadata, images, and videos from public Pinterest Pins using their URLs. Supports JSON output with pin stats, image and video links, user and board profiles.

- **URL**: https://apify.com/headlessagent/pinterest-pin-downloader.md
- **Developed by:** [Headless Agent](https://apify.com/headlessagent) (community)
- **Categories:** Social media, Automation, Other
- **Features:** Limited permissions
- **Stats:** 64 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 1.00 out of 5 stars

## Pricing

from $2.50 / 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 Pin Downloader

This Apify Actor allows you to extract and download detailed data from individual Pinterest Pin URLs. The Actor fetches metadata such as image and video links, user and board information, pin statistics, and more, making it an ideal tool for automation workflows, analytics, or archiving Pinterest content.

### Features

- Fetches detailed data from Pinterest pin pages using only their URLs.
- Parses pin metadata: description, share count, repins, creation date, stats, and domain.
- Retrieves all available image resolutions and direct video links (if present).
- Extracts full user and board profiles associated with each pin.
- Outputs structured JSON for seamless integration with your applications.

### Input

Input must contain the `startUrls` array, where each item is an object with a `url` property set to a valid Pinterest Pin URL.

**Example Input:**

```json
{
  "startUrls": [
    {"url": "https://www.pinterest.com/pin/4292562140075204/"},
    {"url": "https://www.pinterest.com/pin/99360735501154891/"}
  ]
}
```

> *Note*: Any valid Pinterest Pin URL format is accepted; the script extracts and standardizes the Pin ID from the provided URLs.

### Output

The output is a structured JSON object per pin, containing:

- `entityId`, `url`, `trackedLink`
- `description`, `domain`, `createdAt`
- Stats: `commentCount`, `savesCount`, `likesCount`, `shareCount`, `repinCount`, `isRepin`
- `images`: array of available image sizes/variants with URLs and metadata
- `videos`: video URLs and metadata (if present)
- `board`: board details (ID, name, URL, privacy, and image)
- `user`: user profile data (username, full name, follower count, profile image, etc.)

Each result is stored in the Apify dataset and can be exported as JSON, CSV, XLSX, or accessed via the API.

**Example Output:**

```json
{
	"entityId": "4292562140075204",
	"url": "https://pinterest.com/pin/4292562140075204",
	"trackedLink": "",
	"description": "Create beautiful, personalized art with our easy and aesthetic painting projects. Our DIY tutorials and videos provide simple guidance to help you bring your artistic vision to life. Perfect for beginners and experienced artists alike. #AestheticPainting #DIYProjects #ArtInspiration",
	"domain": "Uploaded by user",
	"commentCount": 243,
	"savesCount": 43018,
	"likesCount": 21712,
	"shareCount": 101,
	"isRepin": true,
	"repinCount": 1993,
	"createdAt": "Wed, 21 May 2025 23:06:55 +0000",
	"images": [
		{
			"url": "https://i.pinimg.com/236x/88/14/db/8814db9adc4fcd6c3214def18dd6b64a.jpg",
			"height": 419,
			"width": 236,
			"quality": "236x",
			"extension": "jpg"
		},
		{
			"url": "https://i.pinimg.com/474x/88/14/db/8814db9adc4fcd6c3214def18dd6b64a.jpg",
			"height": 842,
			"width": 474,
			"quality": "474x",
			"extension": "jpg"
		},
		{
			"url": "https://i.pinimg.com/564x/88/14/db/8814db9adc4fcd6c3214def18dd6b64a.jpg",
			"height": 1002,
			"width": 564,
			"quality": "564x",
			"extension": "jpg"
		},
		{
			"url": "https://i.pinimg.com/736x/88/14/db/8814db9adc4fcd6c3214def18dd6b64a.jpg",
			"height": 1024,
			"width": 576,
			"quality": "736x",
			"extension": "jpg"
		}
	],
	"videos": {
		"id": "VmlkZW86NTM4MzM4MTI0OTgwNzE0ODg4Nw==",
		"duration": 69800,
		"entityId": "5383381249807148887",
		"viewCount": "1816970",
		"videoList": {
			"vHLSV4": {
				"captionsUrls": {},
				"thumbnail": "https://i.pinimg.com/videos/thumbnails/originals/66/21/68/662168ac2e56f1545e2929aacd0fd41b.0000000.jpg",
				"url": "https://v1.pinimg.com/videos/iht/hls/66/21/68/662168ac2e56f1545e2929aacd0fd41b.m3u8",
				"width": 576,
				"height": 1024,
				"duration": 69800
			},
			"v720P": {
				"captionsUrls": {},
				"thumbnail": "https://i.pinimg.com/videos/thumbnails/originals/66/21/68/662168ac2e56f1545e2929aacd0fd41b.0000000.jpg",
				"url": "https://v1.pinimg.com/videos/iht/720p/66/21/68/662168ac2e56f1545e2929aacd0fd41b.mp4",
				"width": 576,
				"height": 1024,
				"duration": 69800
			}
		}
	},
	"board": {
		"id": "Qm9hcmQ6NDI5MjYzMDgzNDI0MzU1Mg==",
		"entityId": "4292630834243552",
		"name": "pinturas taller",
		"pinCount": 2014,
		"sectionCount": 0,
		"privacy": "public",
		"url": "https://www.pinterest.com/araceli_smith/pinturas-taller/",
		"imageUrl": "https://i.pinimg.com/474x/e0/56/e0/e056e0e6aabde358ed1d671f3936506d.jpg"
	},
	"user": {
		"entityId": "670192125706637711",
		"username": "simplepainting",
		"fullName": "Simple Painting",
		"followerCount": 19075,
		"url": "https://www.pinterest.com/simplepainting",
		"imageUrl": "https://i.pinimg.com/140x140_RS/82/47/11/824711b8ce40dccd462e1d186888d7e5.jpg"
	}
}
```

# Actor input Schema

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

URLs to start with.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.pinterest.com/pin/4292562140075204/"
    },
    {
      "url": "https://www.pinterest.com/pin/8373949302911876/"
    }
  ]
}
```

# 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/4292562140075204/"
        },
        {
            "url": "https://www.pinterest.com/pin/8373949302911876/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("headlessagent/pinterest-pin-downloader").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/4292562140075204/" },
        { "url": "https://www.pinterest.com/pin/8373949302911876/" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("headlessagent/pinterest-pin-downloader").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://www.pinterest.com/pin/4292562140075204/"
    },
    {
      "url": "https://www.pinterest.com/pin/8373949302911876/"
    }
  ]
}' |
apify call headlessagent/pinterest-pin-downloader --silent --output-dataset

```

## MCP server setup

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

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/PQu1LW4FWyPQFFX8F/builds/liIn1u3dgMWN7Ixdg/openapi.json
