# Pinterest Scraper - Pins, Boards, Search, Images & Video (`dltik/pinterest-scraper`) Actor

Scrape Pinterest pins (image + video) by keyword search, board, profile or related pins. Get saves, comments, dominant color, images, video URL, outbound link + domain, affiliate detection and product price/brand. HTTP-only, no login. Optional AI niche & commercial-intent scoring.

- **URL**: https://apify.com/dltik/pinterest-scraper.md
- **Developed by:** [Walid](https://apify.com/dltik) (community)
- **Categories:** Social media, E-commerce, Marketing
- **Features:** Limited permissions
- **Stats:** 207 total users, 95 monthly users, 100.0% runs succeeded, 5 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.00 / 1,000 pin scrapeds

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 Scraper - Pins, Boards, Search, Images & Video

![Pinterest Scraper banner](https://api.apify.com/v2/key-value-stores/gwgETxejykuaxjrGk/records/banner.png)

> Scrape **Pinterest pins** by keyword search, board, profile, single pin or related pins — **image AND video pins**. Get saves/repins, comments, dominant color, images, video URL, the **outbound click link + domain**, **affiliate-network detection** and **Rich/Product-pin data** (price, brand, availability). HTTP-only, **no login, no API key**. Optional AI enrichment for niche, style and commercial-intent scoring.

⭐ **Bookmark this Pinterest Scraper** — Apify ranks actors by bookmarks, so it directly boosts this scraper's visibility on the Apify Store.

### What is the Pinterest Scraper?

The **Pinterest Scraper** is an Apify actor that extracts structured data from [Pinterest](https://www.pinterest.com/) at scale. Unlike thin single-URL tools, it does real **discovery**: give it a keyword, a board URL, or a username and it returns every matching pin with rich metadata. It handles **both image pins and video pins** (image pins are ~89% of Pinterest and the highest commercial value), talks to Pinterest's own web endpoints over pure HTTP with a real Chrome fingerprint, and never needs an account, cookie or the approval-gated official Pinterest API.

This is a full rewrite of the old video-only metadata tool: faster, cheaper, far richer, and it now covers the parts of Pinterest that actually drive revenue — shopping pins, affiliate click-outs and trend signals.

### Features

- **5 modes** — `search` (keyword), `board` (all pins of a board), `profile` (a user's pins + follower stats), `pin` (one or many pin URLs), `related` (pins related to a pin).
- **Image + video pins** — full media: multi-size image URLs, MP4 video URL + duration, dominant color.
- **Engagement** — save/repin count, comment count, reaction counts.
- **Commerce** — outbound `link` + `domain`, Rich/Product-pin `price`, `brand`, `availability`, and **affiliate-network detection** (Amazon Associates, LTK, Rakuten, CJ, Awin, ShareASale, Impact, ShopStyle).
- **Creator + board** context on every pin.
- **AI enrichment (premium)** — per-pin `niche`, `sub_niche`, `style_tags`, `subjects`, `product_category`, `brand_guess` and a **0-100 commercial-intent score**.
- **Trend rollup** — a free `summary` record with top niches, styles, domains, colors and affiliate share.

### Use cases

- **E-commerce & product research** — pull shoppable pins in a niche with price/brand and find which products get saved most.
- **Affiliate & competitor intelligence** — detect monetized pins and see which affiliate networks and domains dominate a keyword.
- **Trend forecasting** — Pinterest often leads TikTok by ~6 months in lifestyle; classify a keyword's pins into niches/aesthetics to spot rising trends early.
- **Marketing & content research** — analyze top-saved pins in home decor, fashion, food, DIY, beauty, wedding.
- **Brand monitoring** — daily refresh of your brand's pins and competitors' pins.
- **AI/dataset building** — pins + alt-text + images for recommendation and vision models.

### Input

```json
{
  "mode": "search",
  "inputs": ["cottagecore bedroom decor"],
  "scope": "pins",
  "maxResults": 100,
  "includeAiAnalysis": false
}
```

Other examples:

```json
{ "mode": "board",   "inputs": ["https://www.pinterest.com/user/home-decor/"], "maxResults": 200 }
{ "mode": "profile", "inputs": ["magnolia"], "maxResults": 100 }
{ "mode": "pin",     "inputs": ["https://www.pinterest.com/pin/530158482138090704/"] }
{ "mode": "search",  "inputs": ["standing desk"], "scope": "products", "includeAiAnalysis": true }
```

### Output

![Sample output — Pinterest Scraper](https://api.apify.com/v2/key-value-stores/gwgETxejykuaxjrGk/records/output.png)

```json
{
  "type": "pin",
  "pin_id": "530158482138090704",
  "url": "https://www.pinterest.com/pin/530158482138090704/",
  "title": "Cozy cottagecore bedroom",
  "alt_text": "A bedroom with floral wallpaper, a wooden bed and warm string lights",
  "media_type": "image",
  "save_count": 12840,
  "comment_count": 37,
  "dominant_color": "#c9a37e",
  "image_url": "https://i.pinimg.com/originals/....jpg",
  "link": "https://shop.example.com/bed?tag=abc-20",
  "domain": "shop.example.com",
  "is_affiliate": true,
  "affiliate_network": "amazon",
  "is_product": true,
  "products": [{ "name": "Oak bed frame", "brand": "Example", "price": "$249", "availability": "IN_STOCK" }],
  "creator": { "username": "cozyhomes", "followers": 84000, "verified": true },
  "ai": {
    "niche": "home_decor",
    "sub_niche": "bedroom",
    "style_tags": ["cottagecore", "cozy", "vintage"],
    "commercial_intent": 78
  }
}
```

### Pricing

**PAY_PER_EVENT.** You pay per pin returned; the AI layer is a separate opt-in event:

| Event | Price |
|---|---|
| `pin-scraped` (every pin, image or video) | **$0.002** ($2 / 1,000 pins) |
| `pin-analyzed` (only if `includeAiAnalysis`, paying plans) | **$0.01** |

Failed fetches are not charged. HTTP-only means ~99% margin — no residential proxy needed for normal use.

### FAQ

**Do I need the official Pinterest API or a login?** No. The official API needs Business-account approval and limits bulk access. This scraper reads public pins/boards/profiles/search with no auth, no quota, no cookie.

**Does it scrape image pins or only video?** Both. Image pins are the majority of Pinterest and where product/affiliate value lives — they are fully supported (the old version was video-only).

**Can it discover pins, or do I need URLs?** It discovers — search by keyword, scrape a whole board or a user's pins, or expand from one pin via related pins. Single-pin URLs still work via `mode: "pin"`.

**How does affiliate detection work?** Every pin's outbound link is checked against known affiliate networks (Amazon Associates, LTK, Rakuten, CJ, Awin, ShareASale, Impact, ShopStyle) and flagged — no AI needed.

**What powers the AI enrichment?** A cheap LLM reads each pin's text and Pinterest's own machine-vision `alt_text`, so you get vision-grade niche/style/product tags without paying for a vision model. It runs only when you enable it, on paying plans.

**Blocked or throttled?** Datacenter works for normal use. For very heavy sweeps, add a `proxyConfig` with the `RESIDENTIAL` group.

***

⭐ **Found this useful? Bookmark this Pinterest Scraper** — it's the strongest signal for Apify Store ranking.

#### Related actors

- [TikTok Scraper](https://apify.com/dltik/tiktok-scraper) — cross-platform trend intelligence (Pinterest leads TikTok by ~6 months)
- [YouTube Transcript Scraper](https://apify.com/dltik/youtube-transcript-scraper) — pull YouTube transcripts
- [Vimeo Scraper](https://apify.com/dltik/vimeo-scraper) — Vimeo video metadata
- [Dailymotion Scraper](https://apify.com/dltik/dailymotion-scraper) — Dailymotion video metadata

License: MIT · Author: [dltik](https://apify.com/dltik)

# Actor input Schema

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

What to scrape. 'search' = keyword discovery, 'board' = all pins of a board URL, 'profile' = a user's created pins + stats, 'pin' = one or more pin URLs/ids, 'related' = pins related to a given pin.

## `inputs` (type: `array`):

List of inputs matching the mode: keywords (search), board URLs like https://www.pinterest.com/user/board-slug/ (board), usernames or profile URLs (profile), pin URLs or ids (pin), a pin URL/id (related).

## `maxResults` (type: `integer`):

Maximum number of pins to return in total across all inputs (1-5000). Split evenly across inputs for discovery modes.

## `scope` (type: `string`):

Only used in 'search' mode. 'pins' = all pins, 'videos' = video pins only, 'products' = shoppable/buyable pins only.

## `includeAiAnalysis` (type: `boolean`):

Add an AI layer per pin: niche + sub-niche, aesthetic/style tags, subjects, product category, brand guess and a 0-100 commercial-intent score. Charged as a separate premium event and available to paying Apify plans (requires the actor's OPENROUTER_API_KEY secret).

## `url` (type: `string`):

Deprecated single-pin input kept for backward compatibility. Prefer 'mode' + 'inputs'. When set with no inputs, it is treated as mode='pin'.

## `urls` (type: `array`):

Deprecated batch pin-URL input kept for backward compatibility. Prefer 'mode' + 'inputs'. When set with no inputs, treated as mode='pin'.

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

Optional Apify proxy. Datacenter (default, no proxy) works for public reads; for heavy sweeps use a RESIDENTIAL group to avoid throttling. Example: {"useApifyProxy": true, "apifyProxyGroups": \["RESIDENTIAL"]}.

## Actor input object example

```json
{
  "mode": "search",
  "inputs": [
    "cottagecore bedroom decor"
  ],
  "maxResults": 50,
  "scope": "pins",
  "includeAiAnalysis": false
}
```

# Actor output Schema

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

Structured Pinterest pin data: saves, comments, media, click-out link/domain, product & affiliate signals, optional AI enrichment.

# 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 = {
    "inputs": [
        "cottagecore bedroom decor"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dltik/pinterest-scraper").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 = { "inputs": ["cottagecore bedroom decor"] }

# Run the Actor and wait for it to finish
run = client.actor("dltik/pinterest-scraper").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 '{
  "inputs": [
    "cottagecore bedroom decor"
  ]
}' |
apify call dltik/pinterest-scraper --silent --output-dataset

```

## MCP server setup

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

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/PVvhayvCgqtQWHAZ3/builds/m3CjISSNPYDKQQNZ8/openapi.json
