# Pinterest Data Extractor (`jungle_synthesizer/pinterest-data-extractor`) Actor

Scrape Pinterest pins, profiles, and idea boards without authentication.
Extract pin metadata, author details, image URLs, save counts, and related topics
from pin detail pages, user profiles, and Pinterest Ideas category pages.

- **URL**: https://apify.com/jungle\_synthesizer/pinterest-data-extractor.md
- **Developed by:** [BowTiedRaccoon](https://apify.com/jungle_synthesizer) (community)
- **Categories:** Social media
- **Stats:** 3 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Pinterest Data Extractor

Extract structured data from Pinterest pins, user profiles, and Ideas/category pages — no login required. Retrieves pin titles, descriptions, author details, image URLs, save counts, and publication dates from publicly accessible pages.

### What It Does

Pinterest embeds rich JSON-LD structured data (`SocialMediaPosting`, `ProfilePage`, `ItemList`) directly in the HTML of its public pages. This actor fetches those pages via a residential proxy (to ensure full content delivery) and parses the structured data without needing a Pinterest account or API key.

#### Supported URL Types

| URL Pattern | What It Extracts |
|---|---|
| `pinterest.com/pin/<id>/` | Single pin: title, description, author, image URL, save count, date published, related topics |
| `pinterest.com/<username>/` | Profile: enqueues the user's visible pins and extracts each |
| `pinterest.com/ideas/<topic>/<id>/` | Ideas/category page: enqueues up to 20 pins from the listing |

### Input

| Field | Type | Description |
|---|---|---|
| `startUrls` | Array | Pinterest URLs to scrape (pin, profile, or ideas page) |
| `maxItems` | Integer | Maximum number of pin records to return |

#### Example Input

```json
{
  "startUrls": [
    { "url": "https://www.pinterest.com/pin/11188699073847186/" },
    { "url": "https://www.pinterest.com/ideas/architecture/918105274631/" }
  ],
  "maxItems": 50
}
```

### Output

Each record contains:

| Field | Description |
|---|---|
| `pin_id` | Unique Pinterest pin ID |
| `pin_url` | Canonical URL of the pin |
| `title` | Pin title / headline |
| `description` | Pin description text |
| `author_name` | Display name of the pinner |
| `author_username` | Pinterest username of the pinner |
| `author_url` | URL of the pinner's profile |
| `image_url` | Direct URL of the pin's primary image |
| `save_count` | Number of times this pin has been saved |
| `date_published` | ISO 8601 date when the pin was published |
| `related_topics` | Comma-separated list of related idea topic names |
| `page_type` | Source page type (`pin`, `profile`, `ideas`) |
| `scraped_at` | ISO 8601 timestamp of when the record was scraped |

#### Example Output

```json
{
  "pin_id": "11188699073847186",
  "pin_url": "https://www.pinterest.com/pin/11188699073847186/",
  "title": "European Classical Architecture",
  "description": "Explore the beauty of Renaissance architecture and be inspired by this stunning building with a dome on top.",
  "author_name": "Nica Jane",
  "author_username": "danicaj175",
  "author_url": "https://www.pinterest.com/danicaj175",
  "image_url": "https://i.pinimg.com/originals/bc/5c/87/bc5c87b673c74036750a2cf5d2574629.png",
  "save_count": 33596,
  "date_published": "2025-02-02T01:07:10.000Z",
  "related_topics": "European Classical Architecture, Classical Architecture Examples, Classical Architecture Building",
  "page_type": "pin",
  "scraped_at": "2026-06-07T18:20:05.609Z"
}
```

### Technical Notes

- Uses residential proxy for reliable access to Pinterest's full server-rendered HTML
- JSON-LD structured data (`schema.org/SocialMediaPosting`) is parsed directly from page HTML
- No Pinterest account, API key, or authentication required
- Public pins, profiles, and Ideas pages are fully accessible unauthenticated

### Limitations

- Private boards and private pins are not accessible
- Pinterest's internal search API requires authentication — this actor uses Ideas/category pages instead
- The number of pins on profile pages is limited to what Pinterest includes in the server-rendered JSON-LD (typically 10-25 pins per page)

# Actor input Schema

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

Please describe how you plan to use the data extracted by this crawler.

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

Provide any feedback or suggestions for improvements.

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

Provide your email address so we can get in touch with you.

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

Leave empty for a fresh crawl. To CONTINUE a previous run where it stopped — without paying again for records you already received — paste the `resumeCursor` value from that run's Output (the run's OUTPUT key). Resume promptly: the previous run's data expires with your account's retention window (free tier: your ~10 most recent runs).

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

List of Pinterest URLs to scrape. Supported types:
Pin detail pages (pinterest.com/pin/<id>/),
user profiles (pinterest.com/<username>/),
and Ideas/category pages (pinterest.com/ideas/<topic>/).

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

Maximum number of pin records to return

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

metadata = pin metadata only (default, unchanged). media = also return direct image/video download URLs (video\_url, thumbnail\_url, media\_type) for the pin.

## Actor input object example

```json
{
  "sp_intended_usage": "Describe your intended use...",
  "sp_improvement_suggestions": "Share your suggestions here...",
  "sp_contact": "Share your email here...",
  "startUrls": [
    {
      "url": "https://www.pinterest.com/pin/11188699073847186/"
    }
  ],
  "maxItems": 10,
  "output": "metadata"
}
```

# 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 = {
    "sp_intended_usage": "Describe your intended use...",
    "sp_improvement_suggestions": "Share your suggestions here...",
    "sp_contact": "Share your email here...",
    "startUrls": [
        {
            "url": "https://www.pinterest.com/pin/11188699073847186/"
        }
    ],
    "maxItems": 10,
    "output": "metadata"
};

// Run the Actor and wait for it to finish
const run = await client.actor("jungle_synthesizer/pinterest-data-extractor").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 = {
    "sp_intended_usage": "Describe your intended use...",
    "sp_improvement_suggestions": "Share your suggestions here...",
    "sp_contact": "Share your email here...",
    "startUrls": [{ "url": "https://www.pinterest.com/pin/11188699073847186/" }],
    "maxItems": 10,
    "output": "metadata",
}

# Run the Actor and wait for it to finish
run = client.actor("jungle_synthesizer/pinterest-data-extractor").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 '{
  "sp_intended_usage": "Describe your intended use...",
  "sp_improvement_suggestions": "Share your suggestions here...",
  "sp_contact": "Share your email here...",
  "startUrls": [
    {
      "url": "https://www.pinterest.com/pin/11188699073847186/"
    }
  ],
  "maxItems": 10,
  "output": "metadata"
}' |
apify call jungle_synthesizer/pinterest-data-extractor --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/0DDkln5qgqdNaelxk/builds/sTZL9ZK4gbJXT6vef/openapi.json
