# Pinterest Comments Scraper (`w3crawler/pinterest-comments-scraper`) Actor

Scrape comments from Pinterest pins by pin URL, including commenter usernames, comment text, dates, and engagement metadata.

- **URL**: https://apify.com/w3crawler/pinterest-comments-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 comments

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 Comments Scraper

Scrapes comments from Pinterest pins by pin URL. Extracts commenter username, comment text, like count, reply information, and timestamps — ideal for engagement analysis, community sentiment research, and Pinterest content monitoring.

### Features

- **Multi-pin support** — scrape comments from multiple Pinterest pins in one run
- **Comment threading** — identifies replies with parent comment references
- **Author details** — username, display name, profile image, follower count, verification status
- **Engagement metrics** — like count per comment, reply count
- **Timestamps** — created and updated timestamps for each comment
- **Cloud-ready** — runs on Apify with scheduling, proxy rotation, and webhook support

### Use Cases

- Audience engagement and sentiment analysis on Pinterest content
- Tracking brand mentions and community reactions
- Social listening and community research
- Building comment datasets for NLP and content analysis

### Input

| Field | Type | Default | Required | Description |
|-------|------|---------|----------|-------------|
| `pinUrls` | array | `—` | ✓ | List of Pinterest pin URLs to scrape comments from (e.g. `["https://www.pinterest.com/pin/123/"]`). |
| `maxCommentsPerPin` | integer | `50` |  | Maximum number of comments per pin (up to 100). |
| `maxItems` | integer | `200` |  | Maximum total comments across all pins (up to 500). |
| `proxyConfiguration` | object | direct |  | Optional Apify or custom proxy settings. |

### Output

Each scraped comment includes:

| Field | Description |
|-------|-------------|
| `id` | Pinterest comment ID |
| `type` | Always `comment` |
| `text` | Comment text content |
| `likeCount` | Number of likes on the comment |
| `replyCount` | Number of replies to the comment |
| `isReply` | Whether this is a reply to another comment |
| `parentCommentId` | ID of the parent comment (if a reply) |
| `pinId` | Pinterest pin ID the comment belongs to |
| `pinUrl` | Full URL to the pin |
| `authorId` | Commenter's Pinterest user ID |
| `authorUsername` | Commenter's Pinterest username |
| `authorFullName` | Commenter's display name |
| `authorProfileUrl` | Full URL to commenter's profile |
| `authorImageUrl` | Commenter's profile image URL |
| `authorFollowerCount` | Commenter's follower count |
| `authorIsVerified` | Whether the commenter is verified |
| `createdAt` | Comment creation timestamp |
| `updatedAt` | Comment last updated timestamp |
| `scrapedAt` | ISO 8601 timestamp of scrape |

#### Sample Output

```json
{
  "id": "987654321",
  "type": "comment",
  "text": "This is absolutely beautiful! Love the color palette 🎨",
  "likeCount": 12,
  "replyCount": 2,
  "isReply": false,
  "parentCommentId": null,
  "pinId": "123456789",
  "pinUrl": "https://www.pinterest.com/pin/123456789/",
  "authorUsername": "artlover2025",
  "authorFullName": "Art Lover",
  "authorFollowerCount": 340,
  "authorIsVerified": false,
  "createdAt": "2026-04-01T14:30:00.000Z",
  "scrapedAt": "2026-05-21T10:00:00.000Z"
}
```

### Notes

- **Public data only**: The Actor accepts no Pinterest credentials or session cookies. Private pins and comments that Pinterest exposes only to signed-in users are intentionally inaccessible.
- **Proxy**: Direct access is the default. You can opt into an Apify or custom proxy through `proxyConfiguration`; proxy credentials are never written to dataset records.
- **Comment availability**: Not all pins have comments enabled. Pins with no comments will be skipped gracefully.
- **Replies**: Comment threading data (parent/reply relationships) is included when available.

# Changelog

This Actor's version history is a separate document: https://apify.com/w3crawler/pinterest-comments-scraper/changelog.md

# Actor input Schema

## `pinUrls` (type: `array`):

List of Pinterest pin URLs to scrape comments from.

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

Maximum number of comments to scrape per pin.

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

Maximum total comments across all pins.

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

Optional proxy settings. Direct access is used by default.

## Actor input object example

```json
{
  "pinUrls": [
    "https://www.pinterest.com/pin/123456789/"
  ],
  "maxCommentsPerPin": 50,
  "maxItems": 200,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `keyValueStore` (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 = {
    "pinUrls": [
        "https://www.pinterest.com/pin/123456789/"
    ],
    "maxCommentsPerPin": 50,
    "maxItems": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/pinterest-comments-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 = {
    "pinUrls": ["https://www.pinterest.com/pin/123456789/"],
    "maxCommentsPerPin": 50,
    "maxItems": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/pinterest-comments-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 '{
  "pinUrls": [
    "https://www.pinterest.com/pin/123456789/"
  ],
  "maxCommentsPerPin": 50,
  "maxItems": 200
}' |
apify call w3crawler/pinterest-comments-scraper --silent --output-dataset

```

## MCP server setup

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