# Pinterest Scraper — Pins, Boards, Profiles & Commerce (`trakk/pinterest-scraper`) Actor

Search Pinterest pins, videos, boards and profiles. Collect creator posts, public comments and replies, images, destination links, available engagement, commerce fields and optional website contacts.

- **URL**: https://apify.com/trakk/pinterest-scraper.md
- **Developed by:** [Kelopr_bk](https://apify.com/trakk) (community)
- **Categories:** Social media, E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 pin delivereds

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, Profiles & Commerce

Turn Pinterest searches, public boards and creator profiles into useful tables. Collect pin images and videos, destination websites, available engagement, board and profile details, public comments and replies, and optional contacts from linked business websites.

Use it to research products and visual content, qualify creators and brands, build a catalog of public pins, or compare what different accounts share.

### 🚀 Start with a small sample

```json
{
  "scrapeType": "search",
  "searchQueries": ["small kitchen organization"],
  "searchType": "pins",
  "maxItems": 20
}
```

1. Choose what to collect.
2. Add one search phrase per entry, or matching Pinterest URLs.
3. Set the maximum number of saved rows.
4. Start the run. Completed records appear in the dataset as they are ready.
5. Open the relevant Output table or export JSON, CSV or Excel.

### 🎯 Choose your collection mode

| `scrapeType` | Input | Output |
|---|---|---|
| `search` | `searchQueries` | Pins, videos, boards or profiles, selected by `searchType` |
| `pins` | Pin links or numeric IDs in `startUrls` | Full available pin details |
| `boards` | Board links | One board record per accessible board |
| `boardPins` | Board links | Pins the public board feed exposes |
| `profiles` | Profile links or `@usernames` | Public profile details |
| `profilePins` | Profile links or usernames | Created or saved pins, selected by `profileFeed` |
| `profileBoards` | Profile links or usernames | The account's public boards |
| `comments` | Numeric pin links or IDs | Public comments, with replies when enabled |
| `ideas` | `/ideas/topic/id/` links | Pins from a public idea page |
| `suggestions` | Search phrases | Pinterest's suggested queries |

Use `https://www.pinterest.com/ikeausa/` for a profile and `https://www.pinterest.com/dudadelsanto/nail-inspo/` for a board. `pin.it` share links are resolved when they lead to a supported Pinterest page. Pin detail mode accepts numeric IDs; it does not invent a numeric ID from an encoded search result.

### 🖼️ Pin data

Available fields include:

- **Identity:** `pinId`, `pinIdType`, `pinUrl`, `pinPageStatus`.
- **Content:** `title`, `description`, `altText`, `createdAt`, `seoTitle`, `seoDescription`.
- **Images:** `imageUrl`, `imageUrls`, `imageWidth`, `imageHeight`, `aspectRatio`, `imageSignature`, `dominantColor`.
- **Video:** `isVideo`, `videoUrl`, `videoUrls`, `videoDurationMs`, `videoWidth`, `videoHeight`, when exposed.
- **Additional media:** `mediaImageUrls` includes exposed carousel/story images; `captionLanguages` and `captionUrls` identify native caption files when Pinterest publishes them. `captionStatus` is `available`, `not_applicable` for an explicitly identified image pin, or `not_exposed` when the public response supplies no track. Unavailable lists remain empty values rather than filled empty arrays. Caption URLs are collected without downloading audio or generating a transcript.
- **Destination:** `destinationUrl` and its `domain`; common campaign-tracking parameters are removed.
- **Board:** `boardId`, `boardName`, `boardUrl`.
- **People:** pinner ID, name, username, profile URL and available followers; original creator username and profile URL when published separately.
- **Engagement:** `saves`, `repinCount`, `reactionCount`, `pinCommentCount`, `sharedContentCommentCount`, `shareCount`.
- **Commerce:** `isProduct`, available `price` and `currency`, `isOutOfStock`, `isVerifiedMerchant`, affiliate and sponsorship disclosure flags.
- **Coverage:** `detailStatus`, source input, source mode and collection time.

#### Why some pin IDs start with `e1_`

Pinterest often returns an opaque `e1_` identifier in search and board feeds. The result can still contain an image, title, destination website, pinner, board and reactions, but Pinterest's individual detail lookup does not accept that identifier.

Those records retain the data actually returned by the feed. `pinUrl` stays empty and `pinPageStatus` explains the limitation. Use the image, board URL and destination URL. `includePinDetails` adds details to numeric-ID pins; it does not manufacture missing engagement for opaque IDs.

#### Saves, repins and comments are different counts

`saves` comes from Pinterest's shared-content aggregate when available. `repinCount` is the counter of the specific pin. Similarly, `pinCommentCount` and `sharedContentCommentCount` may differ. Public comment threads can be shared by multiple pins of the same content; comment rows explicitly carry `commentScope: "shared_pin_content"`.

Missing counts remain empty. A source-provided zero remains zero.

### 🛍️ Commerce and content groups

The **Commerce** view brings together destination domains, product flags, published prices, merchant verification and disclosure signals.

Every delivered pin has a `contentGroupId`. Pins linking to the same normalized destination page are grouped together; when there is no destination, an available image signature or image URL is used. This helps find repeated landing pages and creative assets across your collected sample.

Open **Content groups** for the observed pins, sources and pinners in each group. A matching destination is a useful grouping signal, not proof that two different products or variants are identical. Group counts describe the delivered sample, not Pinterest's total reach or impressions.

Product fields depend on what Pinterest publishes. The Actor does not estimate sales, orders, revenue or private analytics. An affiliate or sponsorship disclosure flag means the source exposed a disclosure; an absent flag does not prove that a relationship does not exist.

`priceStatus` explains price coverage. Missing prices remain empty: they do not mean the item is free. A generic shopping-eligibility flag is not treated as proof of a product offer.

### 👤 Profiles and boards

Profiles can include name, username, bio, website, followers, following, pin and board counts, created/video pin counts, avatar, account creation date, merchant verification and website-verification flags.

Boards can include name, description, public URL, pin count, followers, sections, collaborators, privacy, owner, cover image, update time and available SEO text.

Search summaries can expose fewer fields than direct profile or board lookups. Enable `includeProfileDetails` to enrich profile search results. Profiles with no published website or bio keep those fields empty.

```json
{
  "scrapeType": "search",
  "searchType": "profiles",
  "searchQueries": ["ceramic studio"],
  "includeProfileDetails": true,
  "onlyWithWebsite": true,
  "maxItems": 50
}
```

### 💬 Comments and replies

```json
{
  "scrapeType": "comments",
  "startUrls": ["672584525586900959"],
  "includeReplies": true,
  "maxItems": 50,
  "maxItemsPerSource": 50
}
```

Comments include text, author, date, available likes and reply count. Replies have `parentCommentId`, so the thread can be reconstructed without nested spreadsheet cells. Public experience posts without text are skipped. Removed, hidden or restricted comments cannot be recovered from an unavailable public feed.

To attach comments to collected pin results, enable `includeComments` and set `maxCommentsPerPin`. Both comments and replies count toward that enrichment allowance. In standalone Comments mode, use `maxItemsPerSource` for the combined thread allowance. `maxRepliesPerComment` additionally caps each reply thread.

### 📇 Optional website contacts

Enable `includeWebsiteContacts` to inspect linked public websites for published email addresses, `tel:` phone numbers and social links.

- `emails`, `phoneNumbers` and `socialUrls` contain observed values.
- `contactSourceUrls` identifies pages that supplied contact information.
- `contactStatus` distinguishes contacts found, no contacts found, an unavailable website, no public website, or a configured domain limit.
- `maxWebsitePages` and `maxContactDomains` bound this optional work.

Contacts are returned on the associated pin or profile row. They depend on what the linked website publishes; the Actor does not guess emails or claim that a mailbox accepts messages. Optional contact collection can make a run slower.

### 🔎 Filters

| Input | Meaning |
|---|---|
| `onlyWithWebsite` | Keep pins or profiles with a destination website |
| `includeDomains` / `excludeDomains` | Match a domain and its subdomains |
| `onlyVideos` | Keep pins explicitly identified as video |
| `onlyVerifiedMerchants` | Keep records with an explicit verified-merchant flag |
| `excludePromoted` | Exclude pins explicitly marked as promoted |
| `minSaves` | Minimum available shared-content save count |
| `minFollowers` | Minimum followers for profile rows |
| `mustContain` | Every listed phrase must occur in the record's available text |
| `excludeKeywords` | Exclude text containing any listed phrase |
| `publishedAfter` | Keep pins strictly newer than an ISO date/time or Unix timestamp |

Unknown saves do not satisfy a positive `minSaves`. Missing publication dates do not satisfy a date cutoff. Dates are compared in UTC. Pin-only filters do not silently change profile or board collection; inactive options are reported as warnings.

Strict filters may legitimately produce no rows. The coverage report counts filtered candidates and explains why collection ended. Limits and filters are never relaxed automatically to fill the requested result count.

### 📦 Limits, duplicates and coverage

- `maxItems` caps **all saved rows in the run**, including requested comments and replies.
- `maxItemsPerSource` is the combined saved-row cap for each phrase or URL.
- Duplicate and rejected candidates do not consume saved-row allowances.
- `deduplicateAcrossSources` removes repeated IDs across inputs. Disable it to retain a record found through different sources; repeats within the same source remain deduplicated.
- `maxPagesPerSource` and `maxSourceRequests` bound discovery work. Three consecutive pages with no saved progress stop that source.
- A run that stops delivering new records also has a bounded idle window, normally 45 seconds. A longer explicit request timeout extends that window. The run saves an explanation and retains records already delivered.
- A board's advertised pin count can exceed what its public feed delivers. The report identifies this situation instead of calling the collection exhaustive.

The **Coverage report** lists pages fetched, discovered and examined candidates, filtered candidates, duplicates, selected and successfully saved records, continuation status, enrichment issues and each source's stop reason.

Possible stops include the requested row or page cap, the spending limit, request allowance, public-feed end, repeated cursor, no-progress limit and unavailable source. Existing dataset rows are checked when an interrupted run restarts, helping prevent duplicate delivery.

### 💰 Pricing and spending

Pricing is per delivered row and differs by record type; the Pricing tab is authoritative. A pin, board, profile, comment/reply and suggestion are separate record types. Full available numeric pin details and optional website contact collection are included in their row price. There is no extra charge for filters, content-group reports or diagnostics.

| Event | Price |
|---|---|
| Pin | $2.00 per 1,000 |
| Profile | $2.00 per 1,000 |
| Board | $1.00 per 1,000 |
| Comment or reply | $0.50 per 1,000 |
| Suggested query | $0.20 per 1,000 |
| Run start | $0.0025 at the supported 256 MB setting |

For example, 100 pin rows cost $0.2025 including the start event. A run with no delivered rows has the start event only. The Actor uses 256 MB; larger memory allocations are rejected with an explanation.

Unavailable objects, rejected candidates, duplicates and error reports are not charged as result rows. Any platform-listed start event is shown separately. Set **Maximum cost per run** to cap spending. Data already delivered remains available when a run reaches its limit.

### 🔌 API and automation

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("trakk/pinterest-scraper").call(run_input={
    "scrapeType": "search",
    "searchType": "pins",
    "searchQueries": ["minimalist home office"],
    "maxItems": 50,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

Use Apify schedules, webhooks, n8n, Make or another integration to run repeatable collections. Export through the dataset in JSON, CSV or Excel. JSON retains arrays such as image URLs and email addresses; flat identity and metric fields work directly in spreadsheet columns.

### ❓ Common questions

**Do I need a Pinterest account?** Public collection modes use data available without a supplied account. The Actor does not include account credentials or ask for your session cookies.

**Will every record contain every field?** No. Available fields differ between searches, numeric pin details, profiles and public boards. Coverage fields explain important gaps.

**Does a successful run mean it collected everything?** No. Read the per-source stop reason, continuation flag and issues. Success means the run completed its work; source limits, your filters and configured caps still apply.

**Can I download the videos?** The output includes a public media URL when Pinterest supplies one. Media files are not downloaded into the dataset, and URLs can expire.

**Why are some pin titles empty?** Many uploaded images have no title or description. The image and other source-backed fields remain available; no title is generated from a guess.

**Can I use this for prospecting?** Profiles and linked sites can supply public business websites and contacts. Use the source evidence to qualify each lead before adding it to a workflow.

### 🧪 Built-in example

Restore the example input to start with 5 pins for `interior design`. Comments and website contacts are off in this sample. It writes real Pinterest records to the default dataset; increase `maxItems` or choose another collection mode when you need more data. The small example does not change the Actor's supported result limits.

# Actor input Schema

## `scrapeType` (type: `string`):

🎯 What would you like to collect?. See the README for scope and source availability.

## `searchQueries` (type: `array`):

One phrase per entry. Used by Search and Keyword suggestions. Commas are treated literally.

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

Use matching pin, board, profile or ideas URLs for the selected mode. Numeric pin IDs, profile @usernames and pin.it share links are accepted. Encoded e1\_ search IDs cannot be opened as pin details.

## `searchType` (type: `string`):

Search for. See the README for scope and source availability.

## `profileFeed` (type: `string`):

Profile pins. See the README for scope and source availability.

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

Counts all saved pin, board, profile, comment, reply and suggestion rows together. Filtered and duplicate candidates do not consume this limit.

## `maxItemsPerSource` (type: `integer`):

Combined saved-row allowance for one phrase or URL, including requested comment/reply rows.

## `maxPagesPerSource` (type: `integer`):

A requested result count does not guarantee that many public records. The run reports source limits and pagination stops.

## `maxConcurrency` (type: `integer`):

Concurrent requests. See the README for scope and source availability.

## `maxRetries` (type: `integer`):

Retries after a temporary source error. See the README for scope and source availability.

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

Request timeout (seconds). See the README for scope and source availability.

## `maxCommentsPerPin` (type: `integer`):

Comments and replies per pin enrichment. See the README for scope and source availability.

## `maxRepliesPerComment` (type: `integer`):

Replies per parent comment. See the README for scope and source availability.

## `maxWebsitePages` (type: `integer`):

Pages checked per website. See the README for scope and source availability.

## `maxContactDomains` (type: `integer`):

Websites checked per run. See the README for scope and source availability.

## `minSaves` (type: `integer`):

Uses the shared-content save count when Pinterest exposes it. Unknown counts do not pass a positive threshold.

## `minFollowers` (type: `integer`):

Minimum profile followers. See the README for scope and source availability.

## `maxSourceRequests` (type: `integer`):

Source request allowance. See the README for scope and source availability.

## `includePinDetails` (type: `boolean`):

Search/board feeds often expose e1\_ IDs that Pinterest does not accept in detail lookups. Available feed data is retained and detailStatus explains coverage; no futile lookup is made for those IDs.

## `includeProfileDetails` (type: `boolean`):

Add full details to profile search results. See the README for scope and source availability.

## `includeComments` (type: `boolean`):

Available for numeric pin IDs with a public shared-content thread. Comment rows count toward the total and per-source row limits.

## `includeReplies` (type: `boolean`):

Include replies to comments. See the README for scope and source availability.

## `includeWebsiteContacts` (type: `boolean`):

Off by default. Finds published email addresses, tel: phone numbers and social links on a bounded number of linked-site pages. Contact evidence is included on the associated pin/profile row.

## `deduplicateAcrossSources` (type: `boolean`):

Repeated IDs within one source are always deduplicated. Disable this to retain the same record found through different inputs.

## `excludePromoted` (type: `boolean`):

Exclude explicitly promoted pins. See the README for scope and source availability.

## `onlyWithWebsite` (type: `boolean`):

Only pins or profiles with a website. See the README for scope and source availability.

## `onlyVideos` (type: `boolean`):

Only video pins. See the README for scope and source availability.

## `onlyVerifiedMerchants` (type: `boolean`):

Only verified merchants. See the README for scope and source availability.

## `publishedAfter` (type: `string`):

Exclusive cutoff: ISO date/time, Unix seconds or milliseconds as text. Missing dates are excluded when enabled; no cutoff is silently relaxed.

## `includeDomains` (type: `array`):

Include linked domains. See the README for scope and source availability.

## `excludeDomains` (type: `array`):

Exclude linked domains. See the README for scope and source availability.

## `mustContain` (type: `array`):

Text must contain every phrase. See the README for scope and source availability.

## `excludeKeywords` (type: `array`):

Exclude any of these text phrases. See the README for scope and source availability.

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

Optional connection settings. Leave off for the initial sample.

## Actor input object example

```json
{
  "scrapeType": "search",
  "searchQueries": [
    "interior design"
  ],
  "searchType": "pins",
  "profileFeed": "created",
  "maxItems": 5,
  "maxItemsPerSource": 100,
  "maxPagesPerSource": 20,
  "maxConcurrency": 8,
  "maxRetries": 2,
  "requestTimeoutSecs": 20,
  "maxCommentsPerPin": 20,
  "maxRepliesPerComment": 20,
  "maxWebsitePages": 2,
  "maxContactDomains": 25,
  "minSaves": 0,
  "minFollowers": 0,
  "maxSourceRequests": 500,
  "includePinDetails": true,
  "includeProfileDetails": true,
  "includeComments": false,
  "includeReplies": true,
  "includeWebsiteContacts": false,
  "deduplicateAcrossSources": true,
  "excludePromoted": false,
  "onlyWithWebsite": false,
  "onlyVideos": false,
  "onlyVerifiedMerchants": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `pins` (type: `string`):

No description

## `commerce` (type: `string`):

No description

## `profiles` (type: `string`):

No description

## `boards` (type: `string`):

No description

## `comments` (type: `string`):

No description

## `contacts` (type: `string`):

No description

## `suggestions` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `groups` (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 = {
    "scrapeType": "search",
    "searchQueries": [
        "interior design"
    ],
    "searchType": "pins",
    "maxItems": 5,
    "includeComments": false,
    "includeWebsiteContacts": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("trakk/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 = {
    "scrapeType": "search",
    "searchQueries": ["interior design"],
    "searchType": "pins",
    "maxItems": 5,
    "includeComments": False,
    "includeWebsiteContacts": False,
}

# Run the Actor and wait for it to finish
run = client.actor("trakk/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 '{
  "scrapeType": "search",
  "searchQueries": [
    "interior design"
  ],
  "searchType": "pins",
  "maxItems": 5,
  "includeComments": false,
  "includeWebsiteContacts": false
}' |
apify call trakk/pinterest-scraper --silent --output-dataset

```

## MCP server setup

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