# Pinterest Boards Scraper (`socialdataapi/pinterest-boards-scraper`) Actor

Pinterest Boards Scraper scrapes every pin on a Pinterest board, profile or pin URL: image and video variants, alt text, saves and repins, outbound link, board sections and pinner details. Export JSON, CSV or Excel, or use the API.

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

## Pricing

from $2.25 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Boards Scraper — Pins, Images, Saves and Board Details

Pinterest Boards Scraper pulls every pin from a public Pinterest board, a profile's boards or a single pin URL, and returns titles, descriptions, alt text, image and video variants, saves and repin counts, outbound links, board sections and pinner details. Every response is structured JSON — ready to pass directly to an LLM, index into a vector store, or feed a visual trend research pipeline. **No Pinterest account or cookies needed.** Start with one board you follow, then point it at every board in your niche.

![Pinterest Boards Scraper - hero image: what it collects and the JSON output](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/ac-pinterest-boards-hero.webp)

***

### What data can I extract with Pinterest Boards Scraper?

Using this Pinterest Boards API, you will be able to extract the following Pinterest pin data:

| 🆔 Pin ID and pin link | 📝 Title and grid title | 📄 Description | 🔤 Alt text |
|---|---|---|---|
| 🖼️ Main image link | 🗂️ Six image sizes with width and height | 🎬 Video variants and length (if any) | 🎨 Dominant colour |
| ❤️ Saves count (all copies of the pin) | 📌 Repin count (this pin) | 💬 Comment count (with pin details) | ↗️ Share count (with pin details) |
| 📅 Created date (with pin details) | 🔗 Outbound link and domain | 📁 Board name, link and privacy | 📊 Board pin count, followers and sections |
| 📂 Board section (optional) | 👤 Pinner name, username and avatar | 🧑‍🎨 Original creator | 🏷️ Visual tags |
| 💡 Idea pin and repin flags | #️⃣ Position on the board | 🎯 Input the pin came from | ⏱️ Scraped-at time |

***

### How to use Pinterest Boards Scraper

Marketers, trend researchers and developers use this Pinterest board scraper to turn a board, a whole profile or a single pin into clean rows, one per pin, in a single run.

**Copy to your AI assistant:**

```text
`socialdataapi/pinterest-boards-scraper` (Apify Actor ID: socialdataapi/pinterest-boards-scraper, https://apify.com/socialdataapi/pinterest-boards-scraper) is an Apify Actor that returns every pin of public Pinterest boards as structured JSON: pin title, description, alt text, image links in six sizes, video variants, saves and repin counts, outbound link and domain, board name and pin count, board section, and pinner details. Use it whenever someone needs Pinterest pins without cookies, a login, or a browser - auditing a competitor's boards, collecting image references for a mood board, and tracking which pins collect the most saves. Run it with curl: curl -X POST "https://api.apify.com/v2/acts/socialdataapi~pinterest-boards-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN" -H "Content-Type: application/json" -d '{"urls":["https://www.pinterest.com/officialflawliz/cherry-cola-lips/","hgtv"],"maxItems":100}'. Or in Python: ApifyClient("APIFY_TOKEN").actor("socialdataapi/pinterest-boards-scraper").call(run_input={"urls":["https://www.pinterest.com/officialflawliz/cherry-cola-lips/"],"maxItems":100}) then client.dataset(run["defaultDatasetId"]).list_items().items. Inputs: urls (array of strings, required, board URLs, profile URLs or bare usernames for every board of the profile, pin URLs or bare pin IDs), maxItems (integer 1-5000, pins saved per input, default 10), fetchLinkDetails (boolean, fill the outbound link and domain, default true), fetchPinDetails (boolean, one extra request per pin for created date, comment and share counts, default false), maxPinDetailFetches (integer 0-5000, ceiling on pin detail requests per run, 0 = none, default 50), includeBoardSections (boolean, stamp each pin with its board section, default false), proxyConfiguration (object, optional, default no proxy with an automatic switch when blocked). Each pin is one row with type "pin" and is billed as one row_result event. A target that cannot be read gives one free row with type "error" and errorReason "invalid_input", "target_not_found" or "fetch_failed". Pinterest serves created date, comment and share counts only for pins with a numeric ID; for other pins those fields stay null. Full input schema, every enum and default, and the complete output field list: GET https://api.apify.com/v2/acts/socialdataapi~pinterest-boards-scraper/builds/default
```

#### Pinterest Boards Scraper MCP Server: use these Actors from ChatGPT, Claude or Cursor

Point your AI assistant at this Actor and it can read Pinterest on its own: every pin on a board, all boards of a profile, saves and repin counts, image links and board details. No glue code, no scraping logic in your prompts.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/pinterest-boards-scraper"
```

#### Step by step

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open [Pinterest Boards Scraper](https://apify.com/socialdataapi/pinterest-boards-scraper) in the Apify Store.
3. Paste the Pinterest board URL, profile URL, username or pin URL, one per line.
4. Click **Start** (or send your API request).
5. Download or stream your results in JSON, CSV or Excel.

#### How to scale Pinterest Boards Scraper to bulk

To scrape Pinterest boards in bulk, put every board, profile and pin into the URLs list; duplicates are removed. The max pins setting applies to each input (up to 5,000), and a profile counts as one input whose boards share that number. On paid plans three inputs are read at the same time and each one saves its pins as soon as they arrive. For a weekly export Pinterest board routine, save the input as a task and schedule it, or call the run endpoint from your own code in a loop.

***

### ✨ Features

Pinterest Boards Scraper fetches clean, structured pins from Pinterest ⚡ at low cost 💸. It's ideal for competitor board audits, mood board research, content planning and visual trend tracking. Use it as a Pinterest pin scraper for one board, or to collect Pinterest image urls for a whole profile.

It extracts, per pin:

- **Title, description and alt text** – the words Pinterest shows with the pin
- **Images in six sizes** – from a 136 px thumbnail up to the original upload, with width and height
- **Saves count and repin count** – saves across every copy of the pin, and saves of this exact pin
- **Outbound link and domain** – the page the pin sends visitors to
- **Board details** – board name, link, privacy, pin count, follower count and section count
- **Board section** – which of the Pinterest board sections holds the pin, when you turn it on
- **Pinner and original creator** – name, username and avatar

⚡ Large boards are paged through to the end, not just the first screen, and failed inputs never cost you: they come back as free error rows.

***

### Use cases 💡

- **Social media manager** — audit a competitor's boards and sort pins by Pinterest saves count.
- **Content planner** — pull titles and outbound links to see which topics drive clicks.
- **Designer** — collect original-size Pinterest image urls for a mood board in one run.
- **SEO analyst** — check which domains a niche's top boards link to most.
- **AI engineer** — feed pin titles, descriptions and alt text into a RAG pipeline.

Building an AI agent? [Connect Pinterest Boards Scraper over MCP](#mcp-integration-for-ai-agents) and let it call the actor on its own.

***

### Why choose this actor?

- **Hundreds of pins in seconds.** A recorded run returned 275 pins from a board, a profile and a single pin in 11.0 seconds, and another returned 400 pins from one profile in 12.0 seconds.
- **The numbers behind each pin.** A recorded pin came back with 181,456 saves, 28,320 repins of that exact pin, 192 comments, 10,080 shares and its created date.
- **Three kinds of input, one actor.** Board URLs, profiles (every board) and single pins all work, with 38 columns per pin row and two optional add-ons for pin details and board sections.

***

### ⬇️ Input

![Pinterest Boards Scraper input form with example values](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/ac-pinterest-boards-input.webp)

The actor takes a list of Pinterest boards, profiles or pins. The URLs list is the only required field.

| Parameter | Required | Type | Description | Example value |
|---|---|---|---|---|
| `urls` | Yes | array of strings | Board URLs, profile URLs or bare usernames (every board of the profile), and pin URLs or bare pin IDs. One per line. | `["https://www.pinterest.com/officialflawliz/cherry-cola-lips/", "hgtv"]` |
| `maxItems` | No | integer | Pins saved per input, 1 to 5,000. A profile counts as one input. Default 10. | `100` |
| `fetchLinkDetails` | No | boolean | Fill the outbound link and domain of each pin. Off returns them empty. Default true. | `true` |
| `fetchPinDetails` | No | boolean | Open each pin (one extra request per pin) for created date, comment count, share count, section and pinner follower count. Only pins with a numeric ID have these. Default false. | `false` |
| `maxPinDetailFetches` | No | integer | Ceiling on pin detail requests for the whole run, 0 to 5,000. 0 = no ceiling. Default 50. | `50` |
| `includeBoardSections` | No | boolean | Stamp each pin with the board section that holds it. Default false. | `false` |
| `proxyConfiguration` | No | object | Optional proxy. Default: no proxy, with an automatic switch to Apify proxy only when Pinterest blocks the run. | `{"useApifyProxy": false}` |

Accepted formats for each line:

- `https://www.pinterest.com/officialflawliz/cherry-cola-lips/` (a board)
- `https://www.pinterest.com/hgtv/` or `hgtv` (every board of a profile)
- `https://www.pinterest.com/pin/1618549864585211/` or `1618549864585211` (one pin)
- Country sites such as `https://uk.pinterest.com/...` work the same way

#### Free plan limits

Users on the Apify free plan can fetch up to 20 pins per run (all URLs together) and 200 pins per month. When the limit is reached, the run finishes successfully with a status message explaining the limit. Upgrade to any paid Apify plan to remove these limits.

#### Example input

```json
{
  "urls": [
    "https://www.pinterest.com/officialflawliz/cherry-cola-lips/",
    "hgtv",
    "https://www.pinterest.com/pin/1618549864585211/"
  ],
  "maxItems": 100,
  "fetchLinkDetails": true,
  "fetchPinDetails": false,
  "maxPinDetailFetches": 50,
  "includeBoardSections": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

***

### ⬆️ Output

![Pinterest Boards Scraper output fields with example values](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/ac-pinterest-boards-output.webp)

Every pin is one typed, normalized JSON item with the same columns on every run; a value Pinterest does not send stays null, never zero. A target that cannot be read adds one free error row with the reason and message. Export as JSON (default), CSV or Excel.

#### Example output

```json
[
  {
    "type": "pin",
    "id": "e1_AfqPShyCw6s-uZjTZnyY9ArwfQ-ZkZ_DyupG2Vqv2zfWqKS8J6EG",
    "index": 1,
    "pinUrl": "https://www.pinterest.com/pin/e1_AfqPShyCw6s-uZjTZnyY9ArwfQ-ZkZ_DyupG2Vqv2zfWqKS8J6EG/",
    "sourceUrl": "hgtv",
    "title": "Step Inside Maine Cabin Masters Inn Renovation",
    "gridTitle": "Step Inside Maine Cabin Masters Inn Renovation",
    "description": "'Maine Cabin Masters: All Inn' takes us inside the Morrill's Maine inn renovation. Take a tour of the final space with HGTV.",
    "altText": "a group of people sitting on rocks in front of a house with a dog standing behind them",
    "visualAnnotations": ["Step Inside", "Gardening Tips", "Maine", "Cabin"],
    "imageUrl": "https://i.pinimg.com/originals/84/3b/13/843b1311d02eb8960ee610726056ad9c.webp",
    "images": [
      {"url": "https://i.pinimg.com/136x136/84/3b/13/843b1311d02eb8960ee610726056ad9c.jpg", "width": 136, "height": 136, "quality": "136x136", "extension": "jpg"},
      {"url": "https://i.pinimg.com/236x/84/3b/13/843b1311d02eb8960ee610726056ad9c.jpg", "width": 236, "height": 177, "quality": "170x", "extension": "jpg"}
    ],
    "dominantColor": "#8a9279",
    "imageSignature": "843b1311d02eb8960ee610726056ad9c",
    "hasVideo": false,
    "videoDurationMs": null,
    "videos": null,
    "isIdeaPin": true,
    "isRepin": false,
    "repins": null,
    "savesCount": null,
    "repinCount": 0,
    "commentCount": null,
    "shareCount": null,
    "date": null,
    "externalLink": "https://www.hgtv.com/shows/maine-cabin-masters-all-inn/step-inside-maine-cabin-masters-inn-renovation-pictures",
    "link": "https://www.hgtv.com/shows/maine-cabin-masters-all-inn/step-inside-maine-cabin-masters-inn-renovation-pictures",
    "domain": "hgtv.com",
    "boardName": "The Best of HGTV.com",
    "sectionId": null,
    "sectionTitle": null,
    "sectionSlug": null,
    "board": {
      "id": "162481567745629115",
      "url": "https://www.pinterest.com/hgtv/the-best-of-hgtvcom/",
      "privacy": "public",
      "name": "The Best of HGTV.com"
    },
    "boardInfo": {
      "boardName": "The Best of HGTV.com",
      "boardDescription": "The latest and greatest from HGTV.com, including gardening tips, interior design ideas, home tours, easy DIYs and more!",
      "boardUrl": "https://www.pinterest.com/hgtv/the-best-of-hgtvcom/",
      "totalPins": 1875,
      "boardId": "162481567745629115",
      "boardPrivacy": "public",
      "boardFollowerCount": 5250789,
      "boardSectionCount": 0,
      "boardCollaboratorCount": 0,
      "boardIsCollaborative": false,
      "boardCreatedAt": "2023-12-07T23:15:51Z",
      "boardOwnerUsername": "hgtv"
    },
    "user": "hgtv",
    "pinner": {
      "id": "162481636464656427",
      "fullName": "HGTV",
      "username": "hgtv",
      "imageUrl": "https://i.pinimg.com/75x75_RS/1b/f1/d4/1bf1d4bf0ed8c37e1c8efc5b17401467.jpg",
      "isVerifiedMerchant": false,
      "followerCount": null
    },
    "nativeCreator": {
      "id": "162481636464656427",
      "fullName": "HGTV",
      "username": "hgtv",
      "imageUrl": "https://i.pinimg.com/75x75_RS/1b/f1/d4/1bf1d4bf0ed8c37e1c8efc5b17401467.jpg",
      "isVerifiedMerchant": false
    },
    "scrapedAt": "2026-11-18T06:05:55Z"
  },
  {
    "type": "error",
    "id": null,
    "index": null,
    "sourceUrl": "https://www.pinterest.com/hgtv/nope-missing/",
    "errorReason": "target_not_found",
    "errorMessage": "board, profile or pin not found",
    "scrapedAt": "2026-11-18T06:06:48Z"
  }
]
```

***

### How does it work?

Pinterest Boards Scraper reads the same public data the Pinterest site loads for a logged-out visitor, with plain HTTP requests and no browser. For a board it reads the board details, then pages through the Pinterest board pins until it has the number you asked for or the board runs out. For a profile it lists the profile's boards and reads them in turn; for a pin it reads that pin and its board.

The run starts on a direct connection. If Pinterest blocks it, the actor retries and moves to Apify proxy by itself, and each input keeps one connection for all of its pages. It returns only publicly visible data — secret and private boards are never reached — and keeps the same schema even when Pinterest changes its site.

***

### How do you integrate Pinterest Boards Scraper into your stack?

It works with what you already use: the REST API from any language, MCP for AI agents, and no-code tools.

#### Using Pinterest Boards Scraper with the Apify API

```python
import requests

resp = requests.post(
    "https://api.apify.com/v2/acts/socialdataapi~pinterest-boards-scraper/run-sync-get-dataset-items",
    params={"token": "APIFY_TOKEN"},
    json={"urls": ["https://www.pinterest.com/officialflawliz/cherry-cola-lips/"], "maxItems": 100},
)
for pin in resp.json():
    print(pin["title"], pin["repinCount"])
```

*Works in Go, Ruby, Node.js, cURL — any language that can make an HTTP request.*

#### MCP integration for AI agents

Add the actor to your AI client with one command:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/pinterest-boards-scraper"
```

This registers Pinterest Boards Scraper as a tool your agent can call directly. Ask it for the top pins of a board and it starts the run, waits and reads the rows back. It works in Claude Code, Cursor and Windsurf, and in any other client that speaks MCP over HTTP.

#### No-code tools (n8n, Make, LangChain)

**n8n:** add the Apify node and choose "Run an Actor" with `socialdataapi/pinterest-boards-scraper`, or use the HTTP Request node pointed at the run-sync endpoint with your token. Each pin comes back as one item for the next node.

**Make:** use the Apify app's "Run an Actor" module, then "Get Dataset Items" to send each pin to a Google Sheet, Airtable or CMS module.

**LangChain:** install `langchain-apify` and load `ApifyActorsTool("socialdataapi/pinterest-boards-scraper")` so your agent can read Pinterest board data as a tool.

***

### Is it legal to scrape Pinterest data?

Scraping publicly available Pinterest data is generally legal, as long as you collect only what any visitor can see and use it responsibly. Pinterest Boards Scraper returns only public board and pin data — what any user sees without logging in. Pins carry pinner names and avatars, which count as personal data under the GDPR: collecting public data is generally permissible, but storing and using it must comply with the data-protection law that applies to you. Images stay the property of their owners. Consult legal counsel if your use case involves bulk storage of personal data.

***

### Frequently asked questions

#### What fields does Pinterest Boards Scraper return?

It returns each pin's title, description, image links, saves count and outbound link, plus board details, board section, pinner and dates. See [the data fields section](#what-data-can-i-extract-with-pinterest-boards-scraper) for every column.

#### Does Pinterest Boards Scraper require a Pinterest account or login?

No. Only public pin data is extracted, the same data Pinterest shows to logged-out visitors. No credentials are needed.

#### How fast does Pinterest Boards Scraper run?

A recorded run returned 275 pins from three inputs in 11.0 seconds, and 400 pins from one profile took 12.0 seconds. Data is fetched live on every run, not cached. Turning on pin details adds one request per pin.

#### What happens if a board is private or doesn't exist?

A board, profile or pin that cannot be found gives one free row with type "error" and the reason "target_not_found"; text that is not a Pinterest link gives "invalid_input", and a page that keeps failing gives "fetch_failed". Secret and private boards are not visible without a login, so they come back as not found. In code, keep rows whose type is "pin".

#### Can I scrape multiple Pinterest boards at once?

Yes. Put many boards, profiles and pins in the URLs list; on paid plans three are read at the same time, and each saves up to 5,000 pins.

#### Does Pinterest Boards Scraper work with Claude, ChatGPT, and other AI agent tools?

Yes — Pinterest Boards Scraper is available as an MCP tool. Register it in Claude Code, Cursor or Windsurf with:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/pinterest-boards-scraper"
```

Any agent that can call an HTTP endpoint can use the REST API directly.

#### Does Pinterest Boards Scraper return data in a format LLMs can use directly?

Yes. Every pin is typed, normalized JSON with consistent field names. No HTML parsing, no selectors. Pass it straight to an LLM, index it into a vector store, or feed it to an agent tool — no transformation step.

#### What happens when Pinterest changes its layout or updates its anti-bot system?

The actor is maintained. When Pinterest changes, the actor is updated, and your calls keep returning the same JSON schema with no changes on your end.

#### Can I use Pinterest Boards Scraper without managing proxies or browser infrastructure?

Yes. The actor starts on a direct connection and switches to Apify proxy by itself when Pinterest blocks it. You send one request and get structured JSON back. No proxy accounts, no headless browser setup, no maintenance.

#### Which Pinterest pin fields work best for AI training data and RAG indexing?

For RAG, use the text fields: the title, description, alt text, visual tags and board description. For training data, use the numeric and boolean fields: saves count, repin count, comment and share counts, board follower count and the video and idea pin flags. All fields are typed primitives — strings, integers, booleans — so they need no normalization.

***

### Related scrapers

| Scraper | What it extracts |
|---|---|
| [Pinterest Comment Scraper](https://apify.com/socialdataapi/pinterest-comment-scraper) | Comments, likes and commenters of public pins. |
| [Pinterest Search Scraper](https://apify.com/socialdataapi/pinterest-search-scraper) | Pins that match a Pinterest search. |
| [Pinterest Pins Videos Search Scraper](https://apify.com/socialdataapi/pinterest-pins-videos-search-scraper) | Pins and videos found by keyword. |
| [Pinterest Profile Scraper](https://apify.com/socialdataapi/pinterest-profile-scraper) | Public profile details and counts. |
| [Pinterest Ads Scraper](https://apify.com/fastdataapi/pinterest-ads-scraper) | Ads from Pinterest's ad library. |

***

### Your feedback

Found a bug or missing a field? Let us know on this Actor's Issues tab in Apify Console. Every report is read, and fixes ship as new versions of the actor.

# Actor input Schema

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

Board URLs (https://www.pinterest.com/<user>/<board>/), profile URLs or bare usernames (every board of the profile), and pin URLs or bare pin IDs. One per line. Several targets are read at the same time on paid plans.

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

Maximum pins saved per input (1-5000). A profile counts as one input. A board holding fewer pins returns everything it has. Free plan: up to 20 pins per run (all URLs together) and 200 per month; paid plans have no limit.

## `fetchLinkDetails` (type: `boolean`):

Fill `link` / `externalLink` / `domain` with the destination each pin points at. Turn it off to return the three fields as null.

## `fetchPinDetails` (type: `boolean`):

Open each pin to fill `date` (creation time), `commentCount`, `shareCount`, the pin section and the pinner follower count (1 extra request per pin). Pinterest serves these details only for pins with a numeric ID; for other pins the five fields stay null.

## `maxPinDetailFetches` (type: `integer`):

Ceiling on the pin detail requests above, across the whole run. Pins past the ceiling are still returned, with the detail fields null. 0 = no ceiling.

## `includeBoardSections` (type: `boolean`):

Stamp `sectionId` / `sectionTitle` / `sectionSlug` onto each pin (about one extra request per 50 section pins). Pins outside every section keep a null section.

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

Optional proxy. Your groups, country and custom proxy URLs are used as configured; each target keeps one connection for all of its pages.

## Actor input object example

```json
{
  "urls": [
    "https://www.pinterest.com/officialflawliz/cherry-cola-lips/"
  ],
  "maxItems": 100,
  "fetchLinkDetails": true,
  "fetchPinDetails": false,
  "maxPinDetailFetches": 50,
  "includeBoardSections": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

All scraped items in the Actor's default dataset — one row per pin (id, title, image, saves/repin counts, board and pinner) plus an uncharged error row for any target that failed.

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

Same dataset, enrichment view: per-pin created date, comment/share counts and board-section attribution (populated only when `fetchPinDetails` / `includeBoardSections` are enabled).

# 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 = {
    "urls": [
        "https://www.pinterest.com/officialflawliz/cherry-cola-lips/"
    ],
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialdataapi/pinterest-boards-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 = {
    "urls": ["https://www.pinterest.com/officialflawliz/cherry-cola-lips/"],
    "maxItems": 100,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("socialdataapi/pinterest-boards-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 '{
  "urls": [
    "https://www.pinterest.com/officialflawliz/cherry-cola-lips/"
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call socialdataapi/pinterest-boards-scraper --silent --output-dataset

```

## MCP server setup

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