# Pinterest Public Media Downloader (`w3crawler/pinterest-media-downloader`) Actor

Use Pinterest public pages and API responses to find pin images or videos, download each media file into the run key-value store, and optionally write normalized metadata to the dataset.

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

## Pricing

from $2.99 / 1,000 media

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

Download images and videos from public Pinterest Pins into the run key-value store and, unless disabled, write normalized pin metadata to the dataset. Search public Pins by phrase or process explicit public Pin URLs, choose an image rendition, and keep a source-backed record of every downloaded artifact.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/pinterest-media-downloader) and select **Try for free** or open the **Input** tab.
2. Set `mode` to `search` and enter a `query`, or set `mode` to `pinUrls` and supply public Pin URLs.
3. Keep `maxItems` small for the first run. Choose `imageQuality` if you need a specific image rendition.
4. Start the Actor, open the dataset for metadata and the key-value store for media files. Open **Run summary** (`OUTPUT_SUMMARY`) to check download counts and completion status.

### 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 public Pins by phrase; `pinUrls` processes the supplied public Pin pages. |
| `query` | string | Optional | `minimalist wallpaper` | Public Pinterest search phrase used when `mode` is `search`. |
| `pinUrls` | string array | Optional | Not supplied | Public Pinterest Pin page URLs used when `mode` is `pinUrls`; up to 500 entries. |
| `maxItems` | integer | Optional | `50` | Maximum unique Pins processed and downloaded, from 1 to 500. |
| `requestTimeoutSecs` | integer | Optional | `90` | Timeout for each public Pinterest request, from 30 to 180 seconds. |
| `maxRequestRetries` | integer | Optional | `0` | Bounded retry count for failed page requests, from 0 to 2. |
| `requestDelayMs` | integer | Optional | `0` | Optional delay between paginated public Pinterest requests, from 0 to 5000 ms. |
| `imageQuality` | string enum | Optional | `original` | Image rendition used for image Pins: `original`, `736x`, `474x`, or `236x`. Video rendition choice is handled by the extractor. |
| `saveToDataset` | boolean | Optional | `true` | Write pin and download metadata to the dataset. Media is still stored in the key-value store when this is `false`. |
| `proxyConfiguration` | object | Optional | `{"useApifyProxy":false}` | Optional standard Apify Proxy settings for browser and Pinterest requests. |

Full default input:

```json
{
  "mode": "search",
  "query": "minimalist wallpaper",
  "maxItems": 50,
  "requestTimeoutSecs": 90,
  "maxRequestRetries": 0,
  "requestDelayMs": 0,
  "imageQuality": "original",
  "saveToDataset": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

The Actor reads public Pinterest pages and public API responses with a Playwright browser. It does not sign in, open private boards, or bypass access controls. Optional `proxyConfiguration` uses the standard Apify Proxy settings.

### Output

The dataset contains one row per processed Pin when `saveToDataset` is enabled. Image binaries and video files or HLS manifests are stored separately in the run key-value store under `image_*` and `video_*` keys. Missing optional metadata 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_media`. |
| `id` | string | Always | Pin identifier used as the record ID; matches `pinId` in saved rows. |
| `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 image. |
| `hashtags` | string array | When Pinterest publishes it | Hashtags detected on the Pin. |
| `pinUrl` | string | Always | Public Pinterest Pin page URL. |
| `destinationUrl` | string | When Pinterest publishes it | Outbound destination link attached to the Pin. |
| `mediaType` | string enum | Always | `image` or `video`. |
| `mediaUrl` | string | Always | Selected public media URL, which is the URL written to the key-value store when downloadable. |
| `imageUrl` | string | For image Pins | Selected image URL after applying `imageQuality`. |
| `imageQuality` | string enum | For image Pins | Rendition represented by `imageUrl`: `original`, `736x`, `474x`, or `236x`. |
| `imageWidth` | number | For image Pins | Original image width in pixels. |
| `imageHeight` | number | For image Pins | Original image height in pixels. |
| `imageOrigUrl` | string | For image Pins | Original-size image URL when Pinterest exposes it. |
| `image736Url` | string | For image Pins | 736-pixel-wide image URL when Pinterest exposes it. |
| `image474Url` | string | For image Pins | 474-pixel-wide image URL when Pinterest exposes it. |
| `image236Url` | string | For image Pins | 236-pixel-wide image URL when Pinterest exposes it. |
| `videoUrl` | string | For video Pins | Public progressive video URL when one is exposed. |
| `videoWidth` | number | For video Pins | Video width when exposed. |
| `videoHeight` | number | For video Pins | Video height when exposed. |
| `videoDurationMs` | number | For video Pins | Video duration in milliseconds when exposed. |
| `dominantColor` | string | When Pinterest publishes it | Dominant color of the Pin image as a hex value. |
| `saves` | number | When Pinterest publishes it | Public save count. |
| `likeCount` | number | When Pinterest publishes it | Public like count. |
| `commentCount` | number | 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. |
| `boardId` | string | When Pinterest publishes it | Public identifier of the board that contains the Pin. |
| `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. |
| `sourceLink` | string | When Pinterest publishes it | Outbound source link reported for the Pin. |
| `richMetadataTitle` | string | When Pinterest publishes it | Title from the Pin's link metadata. |
| `richMetadataSiteName` | string | When Pinterest publishes it | Site name from the Pin's link metadata. |
| `closeupAttributionName` | string | When Pinterest publishes it | Attribution name shown on the close-up view. |
| `closeupAttributionUrl` | string | When Pinterest publishes it | Attribution URL shown on the close-up view. |
| `kvStoreKey` | string | When media was stored | Key of the downloaded image binary, video file, or HLS manifest in the run key-value store. |
| `downloaded` | boolean | Always | Whether the Actor stored a media artifact for this Pin. |
| `storageKind` | string enum | When media was stored | `media_binary` for a stored binary or `hls_manifest` for a stored HLS manifest. |
| `contentType` | string | When media was stored | MIME type of the stored artifact. |
| `fileSizeBytes` | integer | When media was stored | Size of the stored artifact in bytes. |
| `createdAt` | string | When Pinterest publishes it | Pin creation time as reported by Pinterest. |
| `sourceUrl` | string | Always | Search or Pin page 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 from the 2026-10-25 search run:

```json
{
  "entityType": "pinterest_media",
  "id": "e1_AfqPShzh3Pryc3YM9MeoaS1YlkpkJeZ_FOiTHOEaIiuBKQtIsAxl1Q",
  "pinId": "e1_AfqPShzh3Pryc3YM9MeoaS1YlkpkJeZ_FOiTHOEaIiuBKQtIsAxl1Q",
  "pinUrl": "https://www.pinterest.com/pin/e1_AfqPShzh3Pryc3YM9MeoaS1YlkpkJeZ_FOiTHOEaIiuBKQtIsAxl1Q/",
  "mediaType": "image",
  "mediaUrl": "https://i.pinimg.com/originals/0c/5a/e6/0c5ae6048c901bf8fd3e16d7e4f211db.webp",
  "imageUrl": "https://i.pinimg.com/originals/0c/5a/e6/0c5ae6048c901bf8fd3e16d7e4f211db.webp",
  "imageQuality": "original",
  "imageWidth": 2150,
  "imageHeight": 3840,
  "imageOrigUrl": "https://i.pinimg.com/originals/0c/5a/e6/0c5ae6048c901bf8fd3e16d7e4f211db.webp",
  "image736Url": "https://i.pinimg.com/736x/0c/5a/e6/0c5ae6048c901bf8fd3e16d7e4f211db.jpg",
  "image474Url": "https://i.pinimg.com/474x/0c/5a/e6/0c5ae6048c901bf8fd3e16d7e4f211db.jpg",
  "image236Url": "https://i.pinimg.com/236x/0c/5a/e6/0c5ae6048c901bf8fd3e16d7e4f211db.jpg",
  "dominantColor": "#09090a",
  "kvStoreKey": "image_e1_AfqPShzh3Pryc3YM9MeoaS1YlkpkJeZ_FOiTHOEaIiuBKQtIsAxl1Q",
  "downloaded": true,
  "storageKind": "media_binary",
  "contentType": "image/webp",
  "fileSizeBytes": 148094,
  "sourceUrl": "https://www.pinterest.com/search/pins/?q=minimalist%20wallpaper",
  "scrapedAt": "2026-10-25T20:44:30.664Z"
}
```

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT_SUMMARY`. It records how many Pins were processed, how many artifacts were stored, and the input scope.

| Field | Meaning |
| --- | --- |
| `status` | Actor process outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of the saved metadata: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `hasData` | Whether at least one Pin produced usable metadata or media. |
| `normalRecords` | Number of pin metadata rows written to the dataset. |
| `diagnosticRecords` | Diagnostic dataset rows; the Actor writes none. |
| `lastErrorCode` | Most recent non-fatal source or download error code, or `null` when none occurred. |
| `processedItems` | Unique Pins processed during the run. |
| `downloadedCount` | Media artifacts successfully stored in the key-value store. |
| `downloadedKeys` | Key-value store keys written for downloaded media. |
| `mode` | Input mode used: `search` or `pinUrls`. |
| `requestedQuery` | Search phrase used in `search` mode; `null` in `pinUrls` mode. |
| `requestedMaxItems` | Maximum number of Pins 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 enrichment failures recorded without failing the run. |

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

Example `OUTPUT_SUMMARY` from the 2026-10-25 run:

```json
{
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "hasData": true,
  "normalRecords": 3,
  "diagnosticRecords": 0,
  "lastErrorCode": null,
  "processedItems": 3,
  "downloadedCount": 3,
  "downloadedKeys": [
    "image_e1_AfqPShyulSXqXilQxewa0Vz5Pl_F-kzMW-UMTZfDmBi5vrHlGTk",
    "image_e1_AfqPShxgKEsdwJKOtDcu7VCJSZI9zjSbEASdf9sEEkv-Dyq0Vg0htA",
    "image_e1_AfqPShzh3Pryc3YM9MeoaS1YlkpkJeZ_FOiTHOEaIiuBKQtIsAxl1Q"
  ],
  "mode": "search",
  "requestedQuery": "minimalist wallpaper",
  "requestedMaxItems": 3,
  "saveToDataset": true,
  "proxyUsed": true,
  "source": "pinterest",
  "finishedAt": "2026-10-25T20:44:31.039Z",
  "optionalFailureCount": 0
}
```

### Coverage and limitations

The Actor discovers Pins through public Pinterest search or supplied Pin URLs, then downloads the selected image or video rendition. Images use the `imageQuality` rendition when Pinterest exposes it. Videos use the public progressive rendition when available; when only an HLS manifest is exposed, the manifest is stored as an artifact instead of being assembled into a video file.

Pinterest may remove Pins, require a challenge, omit media, or expire signed media URLs. The Actor does not log in, access private boards, transcode media, combine HLS segments, or recover media that Pinterest no longer exposes. Metadata fields are written only when publicly present. Search and download failures are reported in `OUTPUT_SUMMARY` and logs rather than written as fabricated rows. `saveToDataset: false` suppresses metadata rows, but media is still written to the key-value store.

### Usage and support

Cost depends on browser startup, search pagination, the number of Pins, media file sizes, proxy traffic, retries, and dataset or key-value store writes. Start with 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-media-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 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 downloaded media and metadata only for lawful purposes.

# Changelog

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

# Actor input Schema

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

Search for pins or process explicit public pin URLs.

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

Public Pinterest search phrase for search mode.

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

Pinterest pin page URLs for pinUrls mode.

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

Maximum unique pins processed and downloaded.

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

Maximum time allowed for each public Pinterest request.

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

Bounded retry count for failed page requests.

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

Optional delay between paginated public Pinterest requests.

## `imageQuality` (type: `string`):

Image rendition selected when Pinterest exposes multiple image sizes. Video rendition selection is handled by the extractor.

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

Write normalized pin and download metadata to the dataset. Media binaries are still written to the key-value store when this is false.

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

Optional Apify proxy settings for browser and Pinterest requests.

## Actor input object example

```json
{
  "mode": "search",
  "query": "minimalist wallpaper",
  "pinUrls": [
    "https://www.pinterest.com/pin/123456789/"
  ],
  "maxItems": 50,
  "requestTimeoutSecs": 90,
  "maxRequestRetries": 0,
  "requestDelayMs": 0,
  "imageQuality": "original",
  "saveToDataset": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

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

Run status and counters stored by the Actor.

## `mediaFiles` (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 = {
    "mode": "search",
    "query": "minimalist wallpaper",
    "maxItems": 50,
    "imageQuality": "original",
    "saveToDataset": true,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/pinterest-media-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 = {
    "mode": "search",
    "query": "minimalist wallpaper",
    "maxItems": 50,
    "imageQuality": "original",
    "saveToDataset": True,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/pinterest-media-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 '{
  "mode": "search",
  "query": "minimalist wallpaper",
  "maxItems": 50,
  "imageQuality": "original",
  "saveToDataset": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call w3crawler/pinterest-media-downloader --silent --output-dataset

```

## MCP server setup

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