# Pinterest Video Downloader (`w3crawler/pinterest-video-downloader`) Actor

Download Pinterest videos by search query or pin URL, save video files or HLS references in the key-value store, and record rich metadata in the dataset.

- **URL**: https://apify.com/w3crawler/pinterest-video-downloader.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 97.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 videos

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Video Downloader and Public Media Resolver

Resolve public Pinterest video Pins into downloadable media and structured metadata. The Actor accepts explicit public Pin URLs or a bounded public Pin search, prefers a publicly exposed progressive video rendition, stores the video file when available, and otherwise records a public HLS reference instead of claiming a binary download.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/pinterest-video-downloader) and select **Try for free** or open the **Input** tab.
2. Set `mode` to `pinUrls` and supply public video Pin URLs, or set it to `search` and enter a `query`.
3. Choose `videoQuality` and keep `maxItems` small for the first run.
4. Start the Actor, open the dataset for metadata and the key-value store for video files or HLS manifests. Open **Run summary** (`OUTPUT_SUMMARY`) to check download and reference counts.

### Input

All fields are optional; the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `mode` | string enum | Optional | `search` | `search` finds video Pins by keyword; `pinUrls` processes the supplied public Pin pages. |
| `query` | string | Optional | Not supplied | Keyword used to search for video Pins when `mode` is `search`, from 1 to 200 characters. |
| `pinUrls` | string array | Optional | Not supplied | Public Pinterest Pin URLs used when `mode` is `pinUrls`; up to 50 entries. |
| `maxItems` | integer | Optional | `20` | Maximum number of videos to process, from 1 to 50. |
| `requestTimeoutSecs` | integer | Optional | `90` | Timeout for each public Pinterest request, from 30 to 180 seconds. |
| `maxRequestRetries` | integer | Optional | `0` | Bounded retry count, from 0 to 2. |
| `requestDelayMs` | integer | Optional | `0` | Optional delay between public Pinterest pages, from 0 to 5000 ms. |
| `videoQuality` | string enum | Optional | `V_720P` | Preferred rendition: `V_720P`, `V_480P`, or `V_HLS`. |
| `saveToDataset` | boolean | Optional | `true` | Write video metadata to the dataset. Media is still stored in the key-value store when this is `false`. |
| `proxyConfiguration` | object | Optional | Not supplied | Optional standard Apify Proxy settings. Leave empty for a direct connection; Apify Proxy is recommended for live Pinterest access and media downloads. |

Example input from the saved run:

```json
{
  "mode": "pinUrls",
  "pinUrls": [
    "https://www.pinterest.com/pin/21040323255785100/",
    "https://www.pinterest.com/pin/44895327535757339/"
  ],
  "maxItems": 2,
  "videoQuality": "V_720P",
  "saveToDataset": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "requestTimeoutSecs": 90,
  "maxRequestRetries": 0,
  "requestDelayMs": 0
}
```

The Actor reads public Pinterest Pin pages and public media responses. It does not log in, access private accounts, or bypass access controls. Optional `proxyConfiguration` uses the standard Apify Proxy settings.

### Output

The dataset contains one row per processed video Pin when `saveToDataset` is enabled. Video files and HLS manifests are stored separately in the run key-value store under `video_*` keys. Missing optional data is omitted instead of inferred, and no diagnostic or placeholder rows are written.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `entityType` | string enum | Always | Record kind; always `pinterest_video`. |
| `id` | string | Always | Pinterest Pin identifier used as the record ID. |
| `pinId` | string | Always | Public Pinterest Pin identifier. |
| `title` | string | When Pinterest publishes it | Pin title. |
| `description` | string | When Pinterest publishes it | Pin description. |
| `altText` | string | When Pinterest publishes it | Alternative text attached to the Pin. |
| `pinUrl` | string | Always | Public Pinterest Pin page URL. |
| `destinationUrl` | string | When Pinterest publishes it | Outbound destination link attached to the Pin. |
| `videoUrl` | string | Always | Public progressive video URL selected for the Pin. |
| `requestedVideoQuality` | string | Always | Preferred quality requested in the input. |
| `videoQuality` | string | Always | Quality of the rendition represented by `videoUrl`, when a rendition was resolved. |
| `videoDuration` | number | When Pinterest publishes it | Video duration when exposed. |
| `videoWidth` | integer | When Pinterest publishes it | Video width in pixels. |
| `videoHeight` | integer | When Pinterest publishes it | Video height in pixels. |
| `hlsUrl` | string | When Pinterest publishes it | Public HLS manifest URL when Pinterest exposes one. |
| `availableQualities` | string array | When Pinterest publishes it | Video rendition identifiers exposed by Pinterest, such as `V_720P`, `V_480P`, or `V_HLS`. |
| `thumbnailUrl` | string | When Pinterest publishes it | Public video thumbnail URL. |
| `dominantColor` | string | When Pinterest publishes it | Dominant color of the video thumbnail as a hex value. |
| `isStoryPin` | boolean | When Pinterest publishes it | Whether the Pin is a story Pin. |
| `storyPageCount` | integer | When Pinterest publishes it | Number of story pages when exposed. |
| `saves` | integer | When Pinterest publishes it | Public save count. |
| `likeCount` | integer | When Pinterest publishes it | Public like count. |
| `commentCount` | integer | When Pinterest publishes it | Public comment count. |
| `pinnerId` | string | When Pinterest publishes it | Public identifier of the Pin creator. |
| `pinnerUsername` | string | When Pinterest publishes it | Username of the Pin creator. |
| `pinnerFullName` | string | When Pinterest publishes it | Display name of the Pin creator. |
| `pinnerFollowerCount` | integer | When Pinterest publishes it | Follower count of the Pin creator. |
| `boardId` | string | When Pinterest publishes it | Public board identifier. |
| `boardName` | string | When Pinterest publishes it | Board name. |
| `boardUrl` | string | When Pinterest publishes it | Public board URL. |
| `sourceDomain` | string | When Pinterest publishes it | Domain of the Pin's outbound source. |
| `kvStoreKey` | string | When an artifact was stored | Key of the stored video file or HLS manifest in the run key-value store. |
| `downloaded` | boolean | Always | Whether a video binary was downloaded and stored. |
| `artifactStored` | boolean | Always | Whether any artifact, including an HLS reference, was stored in the key-value store. |
| `storageKind` | string enum | When an artifact was stored | `video_file`, `hls_reference`, or `video_url_reference`. |
| `contentType` | string | When a video file was stored | MIME type of the stored video. |
| `fileSizeBytes` | integer | When a video file was stored | Size of the stored video in bytes. |
| `createdAt` | string | When Pinterest publishes it | Pin creation time as reported by Pinterest. |
| `sourceUrl` | string | Always | Pin page or search URL that produced the row. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |

The example below is the complete real saved row for the first Pin from the 2026-10-25 run:

```json
{
  "entityType": "pinterest_video",
  "id": "21040323255785100",
  "pinId": "21040323255785100",
  "title": "Cafe style veg mayo sandwich recipe 😍😍 Save this for later ❤️. Ingredients- Butter - 2-3 tbsp Onion Tomato Capsicum Sweet corn Grated carrot Paneer Green chilli - 2 Veg mayo - 2-3 tbsp Chilli flakes- 1/2 tsp Oregano- 1/2 tsp Salt - 1/2 tsp Bread slice Grill/toast the sandwich and enjoy 😍😍. Do try this recipe and let me know if you liked it or not😍😍. Follow @cookingdiaryathome For more such amazing content ❤️. ❌NO REPOST❌ [Quick breakfast recipe, Sandwich recipe, cafe style sandwich recipe, ve...",
  "description": "14-Jul-2026 — Cafe style veg mayo sandwich recipe 😍😍 Save this for later ❤️. Ingredients- Butter - 2-3 tbsp Onion Tomato Capsicum Sweet corn Grated carrot Paneer Green chilli - 2 Veg mayo - 2-3 tbsp Chilli flakes- 1/2 tsp Oregano- 1/2 tsp Salt - 1/2 tsp Bread slice Grill/toast the sandwich and enjoy 😍😍. Do try this recipe and le…",
  "pinUrl": "https://www.pinterest.com/pin/21040323255785100/",
  "videoUrl": "https://v1.pinimg.com/videos/iht/hevcMp4V3/b0/56/43/b056433407f093bc537f3dab830e21f7_720w.mp4",
  "requestedVideoQuality": "V_720P",
  "videoQuality": "V_720P",
  "hlsUrl": "https://v1.pinimg.com/videos/iht/hls/b0/56/43/b056433407f093bc537f3dab830e21f7.m3u8",
  "availableQualities": [
    "V_720P",
    "V_MP4",
    "V_480P",
    "V_HLS"
  ],
  "thumbnailUrl": "https://i.pinimg.com/736x/dc/45/0b/dc450bf9db2ce80426c332dcf4896179.jpg",
  "isStoryPin": false,
  "kvStoreKey": "video_21040323255785100",
  "downloaded": true,
  "artifactStored": true,
  "storageKind": "video_file",
  "contentType": "video/mp4",
  "fileSizeBytes": 3579445,
  "sourceUrl": "https://www.pinterest.com/pin/21040323255785100/",
  "scrapedAt": "2026-10-25T20:46:28.065Z"
}
```

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT_SUMMARY`. It records processed videos, stored files, stored references, and the input scope.

| Field | Meaning |
| --- | --- |
| `status` | Actor process outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of the saved video rows: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `hasData` | Whether at least one video Pin produced usable metadata or media. |
| `normalRecords` | Number of video metadata rows written to the dataset. |
| `diagnosticRecords` | Diagnostic dataset rows; the Actor writes none. |
| `lastErrorCode` | Most recent non-fatal source or media error code, or `null` when none occurred. |
| `processedItems` | Video Pins processed during the run. |
| `downloadedCount` | Video files successfully stored in the key-value store. |
| `storedReferenceCount` | HLS or URL references stored instead of a video file. |
| `storedKeys` | Key-value store keys written for videos or references. |
| `mode` | Input mode used: `search` or `pinUrls`. |
| `requestedQuery` | Search phrase used in `search` mode; absent in `pinUrls` mode. |
| `requestedMaxItems` | Maximum number of videos requested. |
| `saveToDataset` | Whether metadata rows were requested. |
| `proxyUsed` | Whether an Apify Proxy connection was used. |
| `source` | Public source label, `pinterest`. |
| `finishedAt` | Time the summary was written, in ISO UTC. |
| `optionalFailureCount` | Optional metadata or media failures recorded without failing the run. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Every processed video Pin produced the available metadata and media. |
| `SUCCEEDED` | `PARTIAL` | Rows were saved, but a later media or API problem prevented a complete run. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | The search completed cleanly and returned no matching video Pins. |
| `FAILED` | `FAILED` | A fatal error occurred before any usable video row was saved. |

Example `OUTPUT_SUMMARY` from the 2026-10-25 run. Both video files were stored, but an additional API request failed after the rows were saved, so `dataStatus` is `PARTIAL`:

```json
{
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "PARTIAL",
  "hasData": true,
  "normalRecords": 2,
  "diagnosticRecords": 0,
  "lastErrorCode": "API_REQUEST_FAILED",
  "processedItems": 2,
  "downloadedCount": 2,
  "storedReferenceCount": 0,
  "storedKeys": [
    "video_21040323255785100",
    "video_44895327535757339"
  ],
  "mode": "pinUrls",
  "requestedMaxItems": 2,
  "saveToDataset": true,
  "proxyUsed": false,
  "source": "pinterest",
  "finishedAt": "2026-10-25T20:46:31.847Z",
  "optionalFailureCount": 0
}
```

### Coverage and limitations

The Actor resolves a public video rendition from Pinterest's public Pin data. It downloads and stores an MP4/WebM file when Pinterest exposes a usable progressive URL. When only an HLS manifest is available, it stores the manifest as an `hls_reference` and reports `downloaded: false`; it does not assemble HLS segments, add audio, or transcode media.

Pinterest can remove a Pin, require a challenge, omit media, expire signed URLs, or expose only a manifest. The Actor does not log in, access private Pins, use hidden endpoints, or recover media that Pinterest no longer serves. Metadata is written only when public. A media or API failure after rows are saved is recorded in `OUTPUT_SUMMARY` and leaves the run `SUCCEEDED` with `dataStatus: "PARTIAL"` rather than inventing missing media.

### Usage and support

Cost depends on browser startup, search pagination, proxy traffic, the number of candidate Pins, video bytes, and key-value store writes. Start with a few `pinUrls` or a small `maxItems`, inspect the dataset and key-value store, then scale gradually. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/pinterest-video-downloader/issues) to report a problem. Include the run ID, the input used, and the `OUTPUT_SUMMARY`; do not include tokens, cookies, or private data. This Actor is not affiliated with, endorsed by, or sponsored by Pinterest. Use it only for public data and in accordance with Pinterest's terms, robots guidance, and applicable law. Public Pins can contain personal information; use the output only for lawful purposes.

# Changelog

This Actor's version history is a separate document: https://apify.com/w3crawler/pinterest-video-downloader/changelog.md

# Actor input Schema

## `mode` (type: `string`):

Search for video pins or download from specific pin URLs.

## `query` (type: `string`):

Keyword to search for video pins. Used when mode is 'search'.

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

List of Pinterest pin URLs containing videos to download. Used when mode is 'pinUrls'.

## `maxItems` (type: `integer`):

Maximum number of videos to download.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout from 30 to 180 seconds.

## `maxRequestRetries` (type: `integer`):

Bounded retry count from 0 to 2.

## `requestDelayMs` (type: `integer`):

Optional delay between public Pinterest pages.

## `videoQuality` (type: `string`):

Preferred video quality to download.

## `saveToDataset` (type: `boolean`):

Save video metadata to the dataset in addition to KV store.

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

Optional proxy settings. Leave empty for a direct connection; Apify Proxy is recommended for live Pinterest access and media downloads.

## Actor input object example

```json
{
  "mode": "search",
  "query": "relaxing nature videos",
  "pinUrls": [
    "https://www.pinterest.com/pin/1125968743336343/"
  ],
  "maxItems": 20,
  "requestTimeoutSecs": 90,
  "maxRequestRetries": 0,
  "requestDelayMs": 0,
  "videoQuality": "V_720P",
  "saveToDataset": true
}
```

# Actor output Schema

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

No description

## `runSummary` (type: `string`):

Run status and counters stored by the Actor.

## `videoFiles` (type: `string`):

No description

# 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 = {
    "query": "relaxing nature videos",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/pinterest-video-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 = {
    "query": "relaxing nature videos",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/pinterest-video-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 '{
  "query": "relaxing nature videos",
  "maxItems": 20
}' |
apify call w3crawler/pinterest-video-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/pinterest-video-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/ezNdVl4NJZtwVlrLw/builds/lulEBqmG34SaKgipX/openapi.json
