# Pinterest Easy Scraper (`w3crawler/pinterest-easy-scraper`) Actor

Collect bounded public Pinterest profile and pin data with explicit access diagnostics.

- **URL**: https://apify.com/w3crawler/pinterest-easy-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 profiles & pins

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/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 Easy Scraper

Collect bounded public Pinterest profile and Pin data from profile URLs or bare usernames. The HTTP workflow tries Pinterest's public widget endpoint, enriches it with the profile page's public SSR state, and makes a best-effort `UserPinsResource` request when more Pins are requested than the first tiers provide. Login-only content, private data, and challenge bypasses are out of scope.

### Input

`startUrls` is required by the Store contract and accepts profile URLs or bare usernames. Board, search, category, and individual Pin URLs are rejected and become diagnostic rows.

```json
{
  "startUrls": ["https://www.pinterest.com/nasa/"],
  "maxPinsCnt": 25,
  "widgetFirst": true,
  "fallbackToBrowser": false,
  "minConcurrency": 1,
  "maxConcurrency": 2,
  "minDelayMs": 0,
  "maxDelayMs": 0,
  "maxRequestRetries": 0,
  "requestHandlerTimeoutSecs": 30,
  "includeRaw": false,
  "proxyConfig": { "useApifyProxy": false }
}
```

`maxPinsCnt` is the per-profile limit from 1 to 10,000. `widgetFirst` controls the first public tier; `fallbackToBrowser` is retained as a compatibility flag and does not launch a browser. Concurrency, delay, retry, timeout, proxy, and user-agent settings are bounded and validated. `proxyConfig` and `proxyConfiguration` are accepted aliases. Proxy credentials are never emitted in dataset rows.

When `includeRaw` is true, a bounded sanitized source copy is written to the profile's key-value-store entry. It is not added to dataset records, so normal rows keep a stable clean contract.

### Collection behavior

The actor uses public Pinterest HTTP responses only. The widget tier is followed by HTML SSR parsing and, for larger requests, `UserPinsResource` bookmark pagination. A successful profile with no public Pins emits the profile plus a diagnostic explaining the empty Pin result. Blocked or unavailable public endpoints emit a minimal diagnostic row.

### Output

Normal dataset rows use `entityType` values `pinterest_profile` and `pinterest_pin`. Profile rows contain public identity, biography, profile and cover images, counts, locale, domain, and verification fields. Pin rows contain the Pin ID and URL, title/description, outbound link/domain, image, video metadata, board metadata, public counts, and creation time when supplied.

```json
{
  "entityType": "pinterest_profile",
  "id": "142567281862381039",
  "username": "nasa",
  "fullName": "NASA",
  "profileUrl": "https://www.pinterest.com/nasa/",
  "pinCount": 10549,
  "followerCount": 556378,
  "sourceUrl": "https://www.pinterest.com/nasa/",
  "scrapedAt": "2026-09-08T00:00:00.000Z"
}
```

```json
{
  "entityType": "pinterest_pin",
  "id": "142567144448897971",
  "profile": "nasa",
  "pinUrl": "https://www.pinterest.com/pin/142567144448897971/",
  "title": "A public Pin",
  "link": "https://www.nasa.gov/",
  "image": { "url": "https://i.pinimg.com/originals/example.jpg", "width": 1080, "height": 1920 },
  "sourceUrl": "https://www.pinterest.com/nasa/",
  "scrapedAt": "2026-09-08T00:00:00.000Z"
}
```

Diagnostics intentionally contain only the requested URL, sanitized error, stable error code, and timestamp:

```json
{
  "url": "https://www.pinterest.com/nasa/",
  "error": "Public profile metadata was available but no public pins were returned",
  "errorCode": "SOURCE_UNAVAILABLE",
  "scrapedAt": "2026-09-08T00:00:00.000Z"
}
```

The `OUTPUT_SUMMARY` key-value record contains run status, data/diagnostic counts, profile and Pin counts, proxy state, source mode, and completion time. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Responsible use

Use Pinterest data only for lawful, public-data purposes and follow Pinterest's terms, applicable privacy law, and respectful rate limits. Private content, messages, emails, and hidden user data are not collected.

# Actor input Schema

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

Pinterest profile URLs or bare usernames. Board, search, and individual pin URLs are not supported start targets.

## `maxPinsCnt` (type: `integer`):

Maximum public pins to save per profile.

## `includeRaw` (type: `boolean`):

Store a bounded sanitized source copy in a per-profile key-value entry; dataset rows remain clean.

## `widgetFirst` (type: `boolean`):

Try Pinterest's public widget endpoint before HTML and resource fallbacks.

## `fallbackToBrowser` (type: `boolean`):

Compatibility flag retained for the Store input; this HTTP actor reports a diagnostic when public endpoints are blocked.

## `minConcurrency` (type: `integer`):

Compatibility lower bound for parallel profile requests.

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

Upper bound for parallel profile requests.

## `maxRequestRetries` (type: `integer`):

Compatibility retry setting; failed public requests become diagnostics.

## `requestHandlerTimeoutSecs` (type: `integer`):

Timeout for each public Pinterest request.

## `minDelayMs` (type: `integer`):

Lower bound for the delay before each profile request.

## `maxDelayMs` (type: `integer`):

Upper bound for the delay before each profile request.

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

Optional Apify or custom proxy configuration. Direct public requests are used by default.

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

Compatibility alias for proxyConfig.

## `timeoutMs` (type: `integer`):

Compatibility timeout alias in milliseconds.

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

Optional transparent HTTP user-agent string.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.pinterest.com/herbalshotzOfficial/"
  ],
  "maxPinsCnt": 50,
  "includeRaw": false,
  "widgetFirst": true,
  "fallbackToBrowser": false,
  "minConcurrency": 1,
  "maxConcurrency": 5,
  "maxRequestRetries": 5,
  "requestHandlerTimeoutSecs": 30,
  "minDelayMs": 500,
  "maxDelayMs": 2000,
  "proxyConfig": {
    "useApifyProxy": false
  },
  "timeoutMs": 30000
}
```

# Actor output Schema

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

No description

## `runSummary` (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 = {
    "startUrls": [
        "https://www.pinterest.com/herbalshotzOfficial/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/pinterest-easy-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 = { "startUrls": ["https://www.pinterest.com/herbalshotzOfficial/"] }

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/pinterest-easy-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 '{
  "startUrls": [
    "https://www.pinterest.com/herbalshotzOfficial/"
  ]
}' |
apify call w3crawler/pinterest-easy-scraper --silent --output-dataset

```

## MCP server setup

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