# Pinterest Profile, Board & Pin Stats Scraper (`mdcurt/pinterest-profile-board-stats`) Actor

Profile, board and pin statistics for any Pinterest username or URL: followers, pin and board counts, boards with pin/follower counts, and recent pins with saves, reactions and comments — no login, no API key.

- **URL**: https://apify.com/mdcurt/pinterest-profile-board-stats.md
- **Developed by:** [Matthew Curtis](https://apify.com/mdcurt) (community)
- **Categories:** Social media, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Profile, Board & Pin Stats Scraper

Profile, board and pin statistics for any Pinterest username or URL — **no login, no API key, no Pinterest developer app**:
followers, following, pin and board counts, verification and business flags, every board shown on the profile with its pin and
follower counts, and the newest pins with saves, reactions, comments, shares and their outbound link. One request per profile
(the boards come from the same page), first record in about 2 seconds, pay per result.

Built for agents and batch lookups alike: pass `["nasa"]` and get one record back in ~2 seconds, or pass 500 accounts and get
500 comparable snapshots. Pin statistics are optional and cost one extra request per pin, so a profile-only run stays at one
request per account.

### What it does

For every entry in `profiles` the Actor opens the public page and returns records of three kinds:

- **`profile`** (one per username / profile URL): `id`, `url`, `username`, `title` (display name), `description` (≤ 300 chars),
  `followerCount`, `followingCount`, `pinCount`, `boardCount`, `website`, `domain`, `domainVerified`, `isVerified` (blue check),
  `isVerifiedMerchant`, `isBusiness`, `createdAt`, `lastPinSavedAt`, `imageUrl`, `boards[]` (summary of the up to 10 boards Pinterest
  shows on the profile: `id`, `url`, `title`, `pinCount`, `followerCount`, `sectionCount`, `lastPinnedAt`), `recentPinIds[]` (the 25
  newest pins) and `metrics` (`boardsSampled`, `pinsPerBoardAvg`, `followersPerPin`).
- **`board`** (one per board shown on a profile when `includeBoards` is on, and one per board URL you pass): `id`, `url`, `title`,
  `description`, `owner`, `pinCount`, `followerCount`, `sectionCount`, `collaboratorCount`, `isCollaborative`, `privacy`, `category`,
  `createdAt`, `lastPinnedAt`, `imageUrl`.
- **`pin`** (`pinsPerProfile` newest pins of each profile, and every pin URL or pin.it link you pass): `id`, `url`, `title`,
  `description` (≤ 300 chars), `link` (where the pin points), `domain`, `imageUrl`, `isVideo`, `isPromoted`, `createdAt`,
  `saveCount` (saves of this pin), `aggregatedSaveCount` (saves of every copy of the same image), `reactionCount`, `commentCount`,
  `shareCount`, `pinner`, `boardId`, `boardUrl`, `boardTitle`, `price`, `currency`, `altText`.

Every record also carries `kind`, `source` (which input produced it and how) and `scrapedAt`. A `SUMMARY` record in the
key-value store reports counts per kind, not-found inputs, duplicates and known ids skipped, blocked pages, the inferred rate
limit, p95 latency, time to first record and compute seconds.

Typical uses: creator and brand vetting (is the account active, which boards actually have followers, what a new pin really gets
in saves), competitor and category tracking, influencer CRM enrichment, "what are the newest pins of X" agent tools, and scheduled
monitoring of follower, pin and board counts over time.

### Input

| Field | Type | Default | Meaning |
|---|---|---|---|
| `profiles` | string\[] | `["nasa"]` | Usernames (`nasa`, `@nasa`), profile URLs on any Pinterest country domain, board URLs (`/nasa/learn-with-nasa/`), pin URLs (`/pin/142567144449081155/`) or `pin.it` short links. One request per entry. |
| `includeBoards` | boolean | `true` | One `board` record for each of the up to 10 boards rendered on every profile page (no extra requests). Off: boards stay only in the profile's `boards[]` summary. |
| `pinsPerProfile` | integer 0–25 | `10` | How many of each profile's newest pins to open as `pin` records (one request each, ≈ 0.5 s). `0` = profile and board stats only. |
| `maxItems` | integer 1–5000 | `100` | Total record cap across profiles, boards and pins. |
| `knownIds` | string\[] | `[]` | Pin or board ids you already have; they are skipped (incremental mode). |
| `proxyConfiguration` | object | Apify Proxy, datacenter | Datacenter proxies passed 250 requests at concurrency 6 with zero blocks during testing. |

Agent call: `{"profiles": ["nasa"], "includeBoards": false, "pinsPerProfile": 0, "maxItems": 1}` → one profile record, one request.

### Sample records

```json
{
  "kind": "profile", "id": "142567281862381039", "url": "https://www.pinterest.com/nasa/", "username": "nasa", "title": "NASA",
  "description": "Explore the universe and discover our home planet with the official NASA boards on Pinterest. Visit us at www.nasa.gov",
  "followerCount": 556585, "followingCount": 5, "pinCount": 10554, "boardCount": 82,
  "website": "http://www.nasa.gov/", "domain": "www.nasa.gov", "domainVerified": true, "isVerified": true, "isVerifiedMerchant": false, "isBusiness": true,
  "createdAt": "2012-03-05T16:37:07.000Z", "lastPinSavedAt": "2026-10-29T19:53:31.000Z",
  "imageUrl": "https://i.pinimg.com/280x280_RS/37/a1/75/37a175e6d2431425576f0b8f81389394.jpg",
  "boards": [{ "id": "142567213143159083", "url": "https://www.pinterest.com/nasa/learn-with-nasa/", "title": "Learn With NASA", "pinCount": 1626, "followerCount": 527178, "sectionCount": 0, "lastPinnedAt": "2026-10-29T19:53:32.000Z" }],
  "recentPinIds": ["142567144449081155", "142567144449027286"],
  "metrics": { "boardsSampled": 10, "pinsPerBoardAvg": 128.7, "followersPerPin": 52.737 },
  "source": { "query": "nasa", "pageUrl": "https://www.pinterest.com/nasa/" }, "scrapedAt": "2026-11-04T18:10:16.939Z"
}
```

```json
{
  "kind": "pin", "id": "142567144449081155", "url": "https://www.pinterest.com/pin/142567144449081155/",
  "title": "Your Journey to Titan Starts Here | NASA's Dragonfly Mission",
  "description": "Next stop: Titan! NASA's Dragonfly mission is heading to Saturn's largest moon to explore its mysterious dunes …",
  "link": "https://my.nasa.gov/specialevents/s/send-your-name-with-dragonfly", "domain": "my.nasa.gov",
  "imageUrl": "https://i.pinimg.com/originals/bb/a1/e7/bba1e7fb6fe37433e1314ad3cf4e3434.png", "isVideo": false, "isPromoted": false,
  "createdAt": "2026-10-29T19:53:31.000Z", "saveCount": 1, "aggregatedSaveCount": 2, "reactionCount": 3, "commentCount": 0, "shareCount": 1,
  "pinner": "nasa", "boardId": "142567213143159083", "boardUrl": "https://www.pinterest.com/nasa/learn-with-nasa/", "boardTitle": "Learn With NASA",
  "price": null, "currency": null, "altText": "An artist's depiction of the Dragonfly rotorcraft …",
  "source": { "query": "nasa", "via": "profile", "profile": "nasa" }, "scrapedAt": "2026-11-04T18:10:17.661Z"
}
```

### Pricing

Pay per event: **$0.005 per run** (Actor start) + **$0.001 per record** (profile, board or pin), with Store discounts of 10–20 %
on paid plans. A one-profile agent lookup costs $0.006; a profile with its 10 boards and 10 newest pins costs $0.026; a
100-account benchmark with boards and 10 pins each ≈ $2.1. Compute is Cheerio-only (no browser), 256 MB.

### Incremental monitoring

1. Run once, keep the `id` of every `pin` and `board` record.
2. Schedule the Actor with the same `profiles` and those ids in `knownIds`: the next run returns the profile snapshots plus only
   new pins and boards.
3. Point [mdcurt/dataset-diff-monitor](https://apify.com/mdcurt/dataset-diff-monitor) at the dataset to get a notification when a
   new pin appears or `followerCount` / `pinCount` moves.

### Speed and reliability (measured 2026-11-13, datacenter proxy)

- Time to first record: 1.1–1.6 s on every test input.
- 20 accounts with boards and 10 pins each: **419 records from 220 requests in 62 s (407 records/min), 0 failed, 0 blocked, 0 rate-limited**, concurrency ramped automatically from 2 to 6.
- Pin pages: one request per pin. The pin data is read from the Relay payload every pin page carries (since 1.0.1); the older page state is the fallback, and a page with neither is retried on a fresh session.
- Adaptive concurrency and timeout: starts at 2 parallel requests, raises while the error rate stays under 2 %, halves on 429/5xx.

### Limitations

- Pinterest renders **10 boards and 25 newest pins per profile page**; the Actor never calls Pinterest's private `/resource/`
  JSON endpoints, search, follower lists or `_saved`/`_created` sections, so deeper board lists, full pin histories and search are
  out of scope by design (see the robots note below).
- Pin ids on board pages are opaque tokens for anonymous visitors and cannot be opened; pin statistics therefore come from the
  profile grid (newest pins) and from pin URLs you pass.
- `followerCount` on boards is Pinterest's own figure (board followers include profile followers).
- Secret boards, private profiles and age-gated content are not visible and are reported as not found.
- Pinterest's `robots.txt` disallows all paths for crawlers that are not on its allow-list. This Actor reads only public pages at
  a polite rate (≤ 6 parallel requests, back-off on any throttling) and outputs facts, counts, links and ≤ 300-character snippets —
  never full pin bodies, images or media files (links only). Use the data in line with Pinterest's terms and your local law.

### For AI agents

- **Pass:** `profiles` — one or more usernames (`nasa`), profile URLs, board URLs or pin URLs. For a single lookup add `"includeBoards": false, "pinsPerProfile": 0, "maxItems": 1`.
- **Get back:** one JSON record per entity with a `kind` (`profile`, `board` or `pin`). A profile carries `followerCount`, `pinCount`, `boardCount`, its newest boards and derived `metrics`; a pin carries `saveCount`, `reactionCount`, `commentCount`, `createdAt`, `link` and `boardUrl`.
- **Cost of one lookup:** $0.005 start + $0.001 per record = **$0.006** for one profile, first record in about 1.5 s. A profile with 10 boards and 10 pins is 21 records = $0.026.
- No login, no cookies, default dataset and proxy permissions only. Missing accounts and pins are reported in `SUMMARY.notFoundInputs` and are not charged.

### Changelog

- **1.0.1** (2026-11-13) — pin records restored and made cheaper: Pinterest now serves every pin page with its data in
  Relay payloads instead of the older page state, so 1.0.0 returned no pin records (and was not charging for them). 1.0.1 reads
  the Relay payload first and the older shape as a fallback: one request per pin, no session retries (20-account test: 220
  requests for 419 records instead of 247–260). `commentCount` is now the aggregated count the pin page shows; `price` /
  `currency` are read from the product offer on product pins.
- **1.0.0** (2026-11-04) — initial release: profile, board and pin records; boards from the profile page at no extra cost;
  pinsPerProfile newest-pin stats; board and pin URLs and pin.it links as inputs; incremental knownIds; session-sticky retry for
  client-rendered pin pages.

# Actor input Schema

## `profiles` (type: `array`):

What to look up. Each entry is a Pinterest username (nasa or @nasa), a profile URL (https://www.pinterest.com/nasa/, any country domain), a board URL (https://www.pinterest.com/nasa/learn-with-nasa/) or a pin URL (https://www.pinterest.com/pin/142567144449081155/ or a pin.it short link). One request per entry; a profile answers in about 2 seconds with its stats, boards and newest pin ids.

## `includeBoards` (type: `boolean`):

On (default): one board record (pin count, followers, sections, created and last-pinned dates) for each of the up to 10 boards Pinterest renders on the profile page — no extra requests. Off: boards stay only as a summary list inside the profile record.

## `pinsPerProfile` (type: `integer`):

How many of each profile's newest pins (0–25) to open as pin records with saves, reactions, comments, shares, outbound link and board. One extra request per pin (≈ 0.5 s each). 0 = profile and board stats only.

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

Maximum number of records to return in total (1–5000): profile, board and pin records all count.

## `knownIds` (type: `array`):

Ids you already have (the `id` of earlier pin or board records). They are skipped, so a scheduled run only pays for new pins. Pair with mdcurt/dataset-diff-monitor to get alerted on new pins or follower jumps.

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

Apify Proxy settings. Datacenter proxies work for Pinterest pages (tested at 200 requests, concurrency 4, zero blocks); switch to a RESIDENTIAL group only if the SUMMARY record reports blocked pages.

## Actor input object example

```json
{
  "profiles": [
    "nasa",
    "tasty"
  ],
  "includeBoards": true,
  "pinsPerProfile": 10,
  "maxItems": 100,
  "knownIds": [],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Profile records: followers, following, pins, boards, verification, website, boards summary, newest pin ids and computed ratios.

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

Board records: pin count, follower count, sections, collaborators, created and last-pinned dates, cover image.

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

Pin records: title, description, outbound link and domain, saves, aggregated saves, reactions, comments, shares, board, created date.

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

SUMMARY record: counts per kind, not-found inputs, duplicates and known ids skipped, blocked pages, inferred rate limit, p95 latency, time to first record and compute seconds.

# 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 = {
    "profiles": [
        "nasa",
        "tasty"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mdcurt/pinterest-profile-board-stats").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 = {
    "profiles": [
        "nasa",
        "tasty",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("mdcurt/pinterest-profile-board-stats").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 '{
  "profiles": [
    "nasa",
    "tasty"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call mdcurt/pinterest-profile-board-stats --silent --output-dataset

```

## MCP server setup

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

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/W8TCVuIjd2CV1P9VG/builds/vU4wF6jcSJi20CXyS/openapi.json
