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

\[💰$1.35/1K] Scrape Pinterest pins, boards and profiles by keyword or Start URL. Export images, videos, engagement and topic tags as structured JSON. Incremental mode returns only new or changed items across runs.

- **URL**: https://apify.com/blackfalcondata/pinterest-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** Social media, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.35 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### What does Pinterest Scraper do?

Pinterest Scraper extracts structured data from [pinterest.com](https://pinterest.com) — pins, video pins, boards, and profiles — in a single actor. Search by keyword or paste pin, board, and profile URLs, and get clean JSON with images at every resolution, outbound links, Pinterest's own AI topic tags, and product shopping data (price, currency, stock) where present. Boards and profiles come with full detail (pin counts, followers, SEO metadata, bio, website) enriched by default.

### How to use this actor

- 👉 **Register for a free Apify account** — no credit card required.
- 🎉 Just click **[Sign up free on Apify →](https://console.apify.com/sign-up?fpr=1h3gvi&fp_sid=ctarich)** and complete a quick signup.
- 💰 A free Apify account includes $5 in monthly credits — enough to test this actor.
- ⏳ Scrape during the free trial, with no commitment or upfront payment required.

### Key features

<!-- KEY_FEATURES:START -->
- **📌 Pins, videos, boards & profiles** — one actor covers every Pinterest entity; pick `type` = pins, videos, boards, or profiles for a rich, purpose-built record.
- **🔍 Keyword search or paste URLs** — search any term, or paste pin, board, and profile URLs to scrape them directly. Board and profile URLs also pull the pins beneath them.
- **🖼️ Every image resolution** — each pin carries all image variants (170/236/474/736/original) plus dominant color and alt text.
- **🎥 Video pins** — video pins include the direct video URL, duration, and thumbnail alongside the still image.
- **🏷️ Topic tags + free enrichment** — pins carry Pinterest's own machine-generated topic labels; opt in for keyword-based sentiment and content-category on any record, free.
- **🛍️ Shopping data** — product pins expose product name, price, currency, and stock status parsed from the pin's rich metadata.
- **📇 Board & profile detail** — on by default: board pin/follower/section counts, category, SEO metadata; profile bio, website, follower counts, and verified-merchant flag.
- **♻️ Incremental mode** — recurring runs emit and charge only for new or changed records. First run builds the baseline; later runs emit only NEW / UPDATED / REAPPEARED (UNCHANGED + EXPIRED opt-in). Saves 80–95% on daily monitoring.
- **🔔 Notifications** — Telegram, Slack, Discord, WhatsApp Cloud API, and generic webhook out of the box. Pair with incremental for daily new-pin alerts without pipeline glue.
- **📦 Compact & lean output** — compact mode returns only core display fields; `descriptionMaxLength`, `descriptionFormat`, and empty-field stripping keep payloads small for AI agents and MCP tools.
- **🔌 MCP connectors** — export results into Notion via Apify's MCP connectors with deterministic field-mapping, no glue code. Opt-in via the App connector field.
<!-- KEY_FEATURES:END -->

### What data can you extract from pinterest.com?

Every record is a typed envelope with common fields (`type`, `id`, `url`, `title`, `description`, `imageUrl`) plus exactly one detail block matching its `type`:

- **Pins** (`pin`): all image resolutions, dominant color, alt text, outbound link and destination domain, AI topic tags, video URL/duration/thumbnail for video pins, shopping fields (product name, price, currency, stock), and the pinner + board reference.
- **Boards** (`board`): pin/follower/section/collaborator counts, collaborative flag, category, cover image, SEO title & description, and owner — enriched by default via `includeDetails`.
- **Profiles** (`profile`): username, full name, bio, follower/following counts, pin/board/video counts, website, verified-merchant flag, and avatar — enriched by default.

In standard mode all fields for the record's type are always present — unavailable values are `null`, never omitted. Compact mode returns only the core display fields.


### Input

The main inputs are a search keyword and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — What to search for on Pinterest (e.g. "home office ideas"). Paste a JSON array to run several searches at once. Required if no Start URLs given.
- **`type`** — What kind of results to return for your search: pins, video pins, boards, or profiles. (default: `"pins"`)
- **`startUrls`** — Paste Pinterest pin, board, or profile URLs to scrape directly instead of searching. A board or profile URL also returns its pins; when set, they replace the search query. (default: `[]`)
- **`maxResults`** — Maximum number of records to return (0 = unlimited). (default: `100`)
- **`includeDetails`** — For boards and profiles, fetch full detail (SEO, category, bio, website, follower counts) instead of the search summary. Pins always include it. (default: `true`)
- **`includeEngagement`** — Add engagement metrics per pin — saves, repins, shares, comments, reactions — plus a fuller description. Costs an extra detail fetch per pin, so runs take longer. (default: `false`)
- **`includeComments`** — Add a `comments` array per pin — text, author, like/helpful counts, reply count. Pages through each pin's comments, adding time per pin. (default: `false`)
- **`incrementalMode`** — Compare against the previous run and label each record NEW / UPDATED / UNCHANGED. State auto-derives from your search inputs. (default: `false`)
- ...and 26 more parameters

### Input examples

**Basic search** — Keyword-driven search with a result cap.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "type": "pins",
  "query": "home office ideas",
  "maxResults": 50
}
````

**Incremental tracking** — Only emit listings that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "home office ideas",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "home-office-ideas-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "home office ideas",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured listing records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example listing record

```json
{
  "type": "pin",
  "id": "961307482979651647",
  "portalUrl": "https://www.pinterest.com/pin/961307482979651647/",
  "title": "Minimalist Home Office Ideas for a Calm & Productive Workspace",
  "description": "Design a beautiful minimalist home office with smart desk organisation, built-in shelving, neutral décor and Scandinavian workspace inspiration. Discover modern home office ideas that help you stay or...",
  "imageUrl": "https://i.pinimg.com/originals/91/c2/9c/91c29ccecf1422c72ac5db08157775a9.png",
  "pin": {
    "createdAt": "2026-06-28T14:30:03.000Z",
    "dominantColor": "#6c5235",
    "link": "https://thesmartlifeeditshop.etsy.com/listing/4533068101",
    "destinationDomain": "thesmartlifeeditshop.etsy.com",
    "mediaType": "image",
    "imageUrl": "https://i.pinimg.com/originals/91/c2/9c/91c29ccecf1422c72ac5db08157775a9.png",
    "images": {
      "60x60": {
        "url": "https://i.pinimg.com/60x60/91/c2/9c/91c29ccecf1422c72ac5db08157775a9.jpg",
        "width": 60,
        "height": 60
      },
      "136x136": {
        "url": "https://i.pinimg.com/136x136/91/c2/9c/91c29ccecf1422c72ac5db08157775a9.jpg",
        "width": 136,
        "height": 136
      },
      "170x": {
        "url": "https://i.pinimg.com/236x/91/c2/9c/91c29ccecf1422c72ac5db08157775a9.jpg",
        "width": 236,
        "height": 354
      },
      "236x": {
        "url": "https://i.pinimg.com/236x/91/c2/9c/91c29ccecf1422c72ac5db08157775a9.jpg",
        "width": 236,
        "height": 354
      },
      "474x": {
        "url": "https://i.pinimg.com/474x/91/c2/9c/91c29ccecf1422c72ac5db08157775a9.jpg",
        "width": 474,
        "height": 711
      },
      "564x": {
        "url": "https://i.pinimg.com/564x/91/c2/9c/91c29ccecf1422c72ac5db08157775a9.jpg",
        "width": 564,
        "height": 846
      },
      "736x": {
        "url": "https://i.pinimg.com/736x/91/c2/9c/91c29ccecf1422c72ac5db08157775a9.jpg",
        "width": 736,
        "height": 1104
      },
      "600x315": {
        "url": "https://i.pinimg.com/600x315/91/c2/9c/91c29ccecf1422c72ac5db08157775a9.jpg",
        "width": 600,
        "height": 315
      },
      "orig": {
        "url": "https://i.pinimg.com/originals/91/c2/9c/91c29ccecf1422c72ac5db08157775a9.png",
        "width": 1024,
        "height": 1536
      }
    },
    "isPromoted": false,
    "productName": "Minimalist Smart Goal Planner | Goal Setting, Tracker, Life Journal (Digital Download)",
    "priceText": "$5.22",
    "priceValue": 5.22,
    "priceCurrency": "USD",
    "inStock": true,
    "pinner": {
      "id": "961307620369820714",
      "username": "SmartLifeEdit",
      "fullName": "Smart Life Edit",
      "followerCount": 91,
      "imageUrl": "https://i.pinimg.com/75x75_RS/ca/e0/13/cae013d4aafdd0b572b3a7bb3824118b.jpg",
      "isVerifiedMerchant": false
    },
    "board": {
      "id": "961307551651684583",
      "name": "Home Office Ideas",
      "url": "https://www.pinterest.com/SmartLifeEdit/home-office-ideas/"
    }
  },
  "searchQuery": "home office ideas",
  "searchType": "pins",
  "scrapedAt": "2026-07-10T09:00:00.000Z",
  "source": "Pinterest",
  "listingId": "050848561283e06cc2ac80dd530c1b800bbeca729fb9afc5ba0c07857d50392c"
}
```

### Incremental fields

When incremental mode is on, each record also carries a `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `EXPIRED`, or `REAPPEARED` — and a `contentHash` used for change detection. By default only `NEW`, `UPDATED`, and `REAPPEARED` records are emitted; set `emitUnchanged: true` or `emitExpired: true` to include the rest. Set `skipReposts: true` to drop records whose content matches an item that disappeared in a prior run.

### How to scrape pinterest.com

1. Go to [Pinterest Scraper](https://apify.com/blackfalcondata/pinterest-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword.
3. Set `maxResults` to control how many results you need.
4. Enable `includeDetails` if you need full descriptions.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Build visual and product datasets from Pinterest for trend research, market analysis, and content discovery.
- Collect product pins with price and shopping metadata for e-commerce and competitive pricing intelligence.
- Track new and changed pins, boards, or profiles on scheduled incremental runs without re-processing the full result set every time.
- Feed structured pins, AI topic tags, and imagery into AI agents, MCP tools, and recommendation pipelines using compact mode.
- Export clean, structured Pinterest data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape pinterest.com?

Pinterest Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.005 per run
- **Per result:** $0.00135 per listing record

Example costs:

- 10 results: **$0.019**
- 25 results: **$0.039**
- 100 results: **$0.14**
- 200 results: **$0.28**
- 500 results: **$0.68**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of listings that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 250 results per run, daily polling (30 runs/month). Event-pricing examples scale linearly with result count.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.34 | $0.02 | $0.32 (94%) | $0.66 |
| 15% — moderate broad query | $0.34 | $0.06 | $0.29 (84%) | $1.67 |
| 30% — high-volume aggregator | $0.34 | $0.11 | $0.24 (69%) | $3.19 |

Full re-scrape monthly cost at daily polling: $10.28. First month with incremental costs $0.98 / $1.96 / $3.42 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage (compute and proxies) is billed separately by Apify based on actual consumption. Incremental runs consume less on result processing, though fixed per-run overhead stays the same.

### FAQ

#### How many results can I get from pinterest.com?

The number of results depends on the search query and available listings on pinterest.com. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Pinterest Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed listings on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Pinterest Scraper with other apps?

Yes. Pinterest Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Pinterest Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Pinterest Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, `descriptionMaxLength`, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape pinterest.com?

This actor extracts publicly available data from pinterest.com. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/pinterest-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [LinkedIn Profile Scraper + Email](https://apify.com/blackfalcondata/linkedin-profile-scraper?fpr=1h3gvi) — Scrape LinkedIn profiles by URL, handle, or people-search filters for recruiting research, CRM.
- [Quora Scraper](https://apify.com/blackfalcondata/quora-scraper?fpr=1h3gvi) — Scrape Quora questions, answers, profiles, posts, and spaces by search query or direct URL..
- [Reddit Email Scraper — Extract Emails from Posts & Comments](https://apify.com/blackfalcondata/reddit-email-scraper?fpr=1h3gvi) — Extract email addresses and contact details from Reddit posts, comments and user profiles. Search.
- [Reddit Lead Scraper — Emails, Socials & Contact Info](https://apify.com/blackfalcondata/reddit-lead-scraper?fpr=1h3gvi) — Turn Reddit into a B2B lead list. Keep only records that expose a contact signal — email, social.
- [Reddit Scraper — Posts & Full Comment Threads](https://apify.com/blackfalcondata/reddit-scraper?fpr=1h3gvi) — Scrape Reddit posts with full nested comment threads, user profiles and communities — or search any.
- [RedNote (Xiaohongshu) Scraper](https://apify.com/blackfalcondata/xiaohongshu-scraper?fpr=1h3gvi) — Scrape RedNote (Xiaohongshu, rednote.com) notes by keyword search or by pasting note URLs and IDs,.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi\&fp_sid=ctarich) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

# Actor input Schema

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

What to search for on Pinterest (e.g. "home office ideas"). Paste a JSON array to run several searches at once. Required if no Start URLs given.

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

What kind of results to return for your search: pins, video pins, boards, or profiles.

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

Paste Pinterest pin, board, or profile URLs to scrape directly instead of searching. A board or profile URL also returns its pins; when set, they replace the search query.

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

Maximum number of records to return (0 = unlimited).

## `includeDetails` (type: `boolean`):

For boards and profiles, fetch full detail (SEO, category, bio, website, follower counts) instead of the search summary. Pins always include it.

## `includeSentiment` (type: `boolean`):

Add a `sentiment` object (label, score, confidence) from each record's text. Free, keyword-based.

## `includeContentCategory` (type: `boolean`):

Add a `contentCategory` object (label, confidence) mapping each record to an interest vertical. Free, keyword-based.

## `includeEngagement` (type: `boolean`):

Add engagement metrics per pin — saves, repins, shares, comments, reactions — plus a fuller description. Costs an extra detail fetch per pin, so runs take longer.

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

Add a `comments` array per pin — text, author, like/helpful counts, reply count. Pages through each pin's comments, adding time per pin.

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

Max comments to fetch per pin when Include Comments is on (0 = all). Higher values page through more and use more compute.

## `profileOnly` (type: `boolean`):

For profile or board Start URLs, return only the profile/board record, skipping its pins. Useful for account or board metadata.

## `descriptionMaxLength` (type: `integer`):

Truncate the description to N characters. 0 = no truncation.

## `compact` (type: `boolean`):

Return only the core display fields (type, id, url, title, description, image). Ideal for AI agents and MCP tools.

## `flattenedOutput` (type: `boolean`):

Flatten the nested `pin` / `board` / `profile` object into top-level fields, giving one flat row per record. Handy for spreadsheets and BI tools.

## `incrementalMode` (type: `boolean`):

Compare against the previous run and label each record NEW / UPDATED / UNCHANGED. State auto-derives from your search inputs.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search. Leave empty to auto-generate from your search inputs.

## `skipReposts` (type: `boolean`):

When incremental, skip records whose content matches an item that disappeared in a prior run.

## `emitUnchanged` (type: `boolean`):

When Incremental Mode is on, also emit records that are unchanged since the last run (labeled UNCHANGED). Off by default, so runs return only new and updated records.

## `emitExpired` (type: `boolean`):

When Incremental Mode is on, also emit records that were seen before but are gone now (labeled EXPIRED). Only fires when a run fully covers the search, so a partial run never marks items expired by mistake.

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `notificationLimit` (type: `integer`):

Maximum number of records included in each notification message (1–20).

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED records. Has no effect outside incremental mode.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `descriptionFormat` (type: `string`):

How the description is represented. `all` keeps the description as-is; `text` normalizes it to plain text.

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results. Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## Actor input object example

```json
{
  "query": "home office ideas",
  "type": "pins",
  "startUrls": [
    "https://www.pinterest.com/pinterest/"
  ],
  "maxResults": 100,
  "includeDetails": true,
  "includeSentiment": false,
  "includeContentCategory": false,
  "includeEngagement": false,
  "includeComments": false,
  "maxCommentsPerPin": 20,
  "profileOnly": false,
  "descriptionMaxLength": 0,
  "compact": false,
  "flattenedOutput": false,
  "incrementalMode": false,
  "skipReposts": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false,
  "descriptionFormat": "all",
  "excludeEmptyFields": false
}
```

# Actor output Schema

## `results` (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": "home office ideas",
    "type": "pins",
    "startUrls": [
        "https://www.pinterest.com/pinterest/"
    ],
    "maxResults": 100,
    "descriptionFormat": "all",
    "excludeEmptyFields": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/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 = {
    "query": "home office ideas",
    "type": "pins",
    "startUrls": ["https://www.pinterest.com/pinterest/"],
    "maxResults": 100,
    "descriptionFormat": "all",
    "excludeEmptyFields": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/pinterest-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": "home office ideas",
  "type": "pins",
  "startUrls": [
    "https://www.pinterest.com/pinterest/"
  ],
  "maxResults": 100,
  "descriptionFormat": "all",
  "excludeEmptyFields": false
}' |
apify call blackfalcondata/pinterest-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=blackfalcondata/pinterest-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Pinterest Scraper — Pins, Boards, Profiles & Engagement",
        "description": "[💰$1.35/1K] Scrape Pinterest pins, boards and profiles by keyword or Start URL. Export images, videos, engagement and topic tags as structured JSON. Incremental mode returns only new or changed items across runs.",
        "version": "0.1",
        "x-build-id": "mxE7UrBKiNGCT5dck"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/blackfalcondata~pinterest-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-blackfalcondata-pinterest-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/blackfalcondata~pinterest-scraper/runs": {
            "post": {
                "operationId": "runs-sync-blackfalcondata-pinterest-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/blackfalcondata~pinterest-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-blackfalcondata-pinterest-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "query": {
                        "title": "🔍 Search Term(s)",
                        "type": "string",
                        "description": "What to search for on Pinterest (e.g. \"home office ideas\"). Paste a JSON array to run several searches at once. Required if no Start URLs given."
                    },
                    "type": {
                        "title": "📌 Result Type",
                        "enum": [
                            "pins",
                            "videos",
                            "boards",
                            "profiles"
                        ],
                        "type": "string",
                        "description": "What kind of results to return for your search: pins, video pins, boards, or profiles.",
                        "default": "pins"
                    },
                    "startUrls": {
                        "title": "🔗 Start URLs",
                        "type": "array",
                        "description": "Paste Pinterest pin, board, or profile URLs to scrape directly instead of searching. A board or profile URL also returns its pins; when set, they replace the search query.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "maxResults": {
                        "title": "💯 Max Results",
                        "minimum": 0,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Maximum number of records to return (0 = unlimited).",
                        "default": 100
                    },
                    "includeDetails": {
                        "title": "📋 Include Full Details",
                        "type": "boolean",
                        "description": "For boards and profiles, fetch full detail (SEO, category, bio, website, follower counts) instead of the search summary. Pins always include it.",
                        "default": true
                    },
                    "includeSentiment": {
                        "title": "🙂 Sentiment Analysis",
                        "type": "boolean",
                        "description": "Add a `sentiment` object (label, score, confidence) from each record's text. Free, keyword-based.",
                        "default": false
                    },
                    "includeContentCategory": {
                        "title": "🏷️ Content Category",
                        "type": "boolean",
                        "description": "Add a `contentCategory` object (label, confidence) mapping each record to an interest vertical. Free, keyword-based.",
                        "default": false
                    },
                    "includeEngagement": {
                        "title": "❤️ Include Engagement",
                        "type": "boolean",
                        "description": "Add engagement metrics per pin — saves, repins, shares, comments, reactions — plus a fuller description. Costs an extra detail fetch per pin, so runs take longer.",
                        "default": false
                    },
                    "includeComments": {
                        "title": "💬 Include Comments",
                        "type": "boolean",
                        "description": "Add a `comments` array per pin — text, author, like/helpful counts, reply count. Pages through each pin's comments, adding time per pin.",
                        "default": false
                    },
                    "maxCommentsPerPin": {
                        "title": "💬 Max Comments Per Pin",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Max comments to fetch per pin when Include Comments is on (0 = all). Higher values page through more and use more compute.",
                        "default": 20
                    },
                    "profileOnly": {
                        "title": "👤 Profile / Board Only",
                        "type": "boolean",
                        "description": "For profile or board Start URLs, return only the profile/board record, skipping its pins. Useful for account or board metadata.",
                        "default": false
                    },
                    "descriptionMaxLength": {
                        "title": "✂️ Description Max Length",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Truncate the description to N characters. 0 = no truncation.",
                        "default": 0
                    },
                    "compact": {
                        "title": "📦 Compact Output",
                        "type": "boolean",
                        "description": "Return only the core display fields (type, id, url, title, description, image). Ideal for AI agents and MCP tools.",
                        "default": false
                    },
                    "flattenedOutput": {
                        "title": "🧾 Flattened Output",
                        "type": "boolean",
                        "description": "Flatten the nested `pin` / `board` / `profile` object into top-level fields, giving one flat row per record. Handy for spreadsheets and BI tools.",
                        "default": false
                    },
                    "incrementalMode": {
                        "title": "♻️ Incremental Mode",
                        "type": "boolean",
                        "description": "Compare against the previous run and label each record NEW / UPDATED / UNCHANGED. State auto-derives from your search inputs.",
                        "default": false
                    },
                    "stateKey": {
                        "title": "🔑 State Key",
                        "type": "string",
                        "description": "Optional. Stable identifier for the tracked search. Leave empty to auto-generate from your search inputs."
                    },
                    "skipReposts": {
                        "title": "🚫 Skip Reposts",
                        "type": "boolean",
                        "description": "When incremental, skip records whose content matches an item that disappeared in a prior run.",
                        "default": false
                    },
                    "emitUnchanged": {
                        "title": "➖ Emit Unchanged",
                        "type": "boolean",
                        "description": "When Incremental Mode is on, also emit records that are unchanged since the last run (labeled UNCHANGED). Off by default, so runs return only new and updated records.",
                        "default": false
                    },
                    "emitExpired": {
                        "title": "🗑️ Emit Expired",
                        "type": "boolean",
                        "description": "When Incremental Mode is on, also emit records that were seen before but are gone now (labeled EXPIRED). Only fires when a run fully covers the search, so a partial run never marks items expired by mistake.",
                        "default": false
                    },
                    "telegramToken": {
                        "title": "🔑 Telegram Bot Token",
                        "type": "string",
                        "description": "Telegram bot token (from @BotFather). Required for Telegram notifications."
                    },
                    "telegramChatId": {
                        "title": "💬 Telegram Chat ID",
                        "type": "string",
                        "description": "Telegram chat or channel ID (e.g. \"-100123456789\"). Required when telegramToken is set."
                    },
                    "discordWebhookUrl": {
                        "title": "🎮 Discord Webhook URL",
                        "type": "string",
                        "description": "Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook."
                    },
                    "slackWebhookUrl": {
                        "title": "💼 Slack Webhook URL",
                        "type": "string",
                        "description": "Slack incoming webhook URL. api.slack.com/messaging/webhooks."
                    },
                    "notificationLimit": {
                        "title": "📊 Max Records Per Notification",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum number of records included in each notification message (1–20).",
                        "default": 5
                    },
                    "notifyOnlyChanges": {
                        "title": "🔄 Notify Only New/Updated",
                        "type": "boolean",
                        "description": "When Incremental Mode is on, only send notifications for NEW and UPDATED records. Has no effect outside incremental mode.",
                        "default": false
                    },
                    "whatsappAccessToken": {
                        "title": "📱 WhatsApp Access Token",
                        "type": "string",
                        "description": "WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024)."
                    },
                    "whatsappPhoneNumberId": {
                        "title": "📞 WhatsApp Phone Number ID",
                        "type": "string",
                        "description": "Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set."
                    },
                    "whatsappTo": {
                        "title": "📲 WhatsApp Recipient",
                        "type": "string",
                        "description": "Recipient phone in E.164 format without + (e.g. \"436641234567\"). Recipient must have messaged your business number within last 24h."
                    },
                    "webhookUrl": {
                        "title": "🪝 Generic Webhook URL",
                        "type": "string",
                        "description": "Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends."
                    },
                    "webhookHeaders": {
                        "title": "📋 Webhook Headers",
                        "type": "object",
                        "description": "Optional JSON object of custom headers (e.g. {\"Authorization\":\"Bearer ...\"})."
                    },
                    "descriptionFormat": {
                        "title": "Description format",
                        "enum": [
                            "all",
                            "text"
                        ],
                        "type": "string",
                        "description": "How the description is represented. `all` keeps the description as-is; `text` normalizes it to plain text.",
                        "default": "all"
                    },
                    "excludeEmptyFields": {
                        "title": "Exclude empty fields from output",
                        "type": "boolean",
                        "description": "Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.",
                        "default": false
                    },
                    "appConnector": {
                        "title": "Send results to a connected app",
                        "type": "string",
                        "description": "Optional. Pick a connected app under Settings → API & Integrations to receive your results. Best-effort across MCP connectors as Apify expands its catalog."
                    },
                    "mcpIssueTeam": {
                        "title": "Issue tracker team",
                        "type": "string",
                        "description": "Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
