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

The Pinterest Comments Scraper is an essential tool for gathering user feedback from Pinterest pins. By providing detailed information about comments and their authors, it enhances your understanding of user interactions and helps shape your content strategy effectively! 🌟

- **URL**: https://apify.com/easyapi/pinterest-comments-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Social media, SEO tools
- **Features:** Limited permissions
- **Stats:** 67 total users, 6 monthly users, 32.1% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.99 / 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.

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 📊

### 🔍 Overview

This actor allows you to extract comments and engagement data from any Pinterest pin. It provides comprehensive information about comments, user interactions, and engagement metrics in a structured format.

### ✨ Features

- 🎯 Extract comments from any Pinterest pin URL
- 👤 Get detailed user information for each comment
- 📊 Collect engagement metrics (likes, helpful counts)
- 🖼️ Access associated image information and signatures
- 🔄 Handle rate limiting and pagination automatically
- 🚀 Fast and efficient data collection
- 📱 Works with both desktop and mobile Pinterest URLs

### 🎯 Use Cases

- 💡 Social media engagement analysis
- 📈 Content performance tracking
- 🔍 User sentiment analysis
- 🎨 Visual content research
- 📊 Influencer marketing research
- 🤝 Community engagement monitoring

### 💎 Output

The actor provides detailed JSON output including:

- Comment content and timestamps
- User details (username, profile info)
- Engagement metrics (likes, helpful counts)
- Associated images and their variations
- Comment thread structure
- Related tags and metadata

### 🔧 Input Parameters

- `pinUrl`: Pinterest pin URL to scrape comments from
- `limit`: Maximum number of comments to collect (default: 50)
- `proxyConfiguration`: (Optional) Proxy settings for the scraper

### 💡 Tips

- Use proxy configuration for better reliability
- Adjust the limit parameter based on your needs
- Consider rate limiting for large-scale scraping

#### Input

A full explanation of an input example in JSON.

```json
{
    "pinUrl": "https://www.pinterest.jp/pin/636977941054343221/",
    "limit": 50 
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```
[
  {
    "pinUrl": "https://jp.pinterest.com/pin/636977941054343221/",
    "node_id": "VXNlckRpZEl0RGF0YTo1MzgzNDI5Mjc0MjUyMzkzODQ0",
    "helpful_count": 0,
    "tags": [],
    "videos": [],
    "comment_count": 0,
    "marked_helpful_by_me": false,
    "image_signatures": [
      "de258d5c5e1577b30c8744148baa2fc9"
    ],
    "user": {
      "node_id": "VXNlcjo4MTc0MDM1Mzg1MjYyMjYzOTQ=",
      "image_medium_url": "https://s.pinimg.com/images/user/default_75.png",
      "is_private_profile": false,
      "username": "alinaaskarova2855",
      "first_name": "Alina",
      "full_name": "Alina",
      "type": "user",
      "id": "817403538526226394"
    },
    "like_count": 0,
    "images": [
      {
        "originals": {
          "url": "https://i.pinimg.com/originals/de/25/8d/de258d5c5e1577b30c8744148baa2fc9.jpg",
          "width": 810,
          "height": 1080
        },
        "550x": {
          "url": "https://i.pinimg.com/550x/de/25/8d/de258d5c5e1577b30c8744148baa2fc9.jpg",
          "width": 550,
          "height": 733
        },
        "150x150": {
          "url": "https://i.pinimg.com/150x150/de/25/8d/de258d5c5e1577b30c8744148baa2fc9.jpg",
          "width": 150,
          "height": 150
        }
      }
    ],
    "type": "userdiditdata",
    "done_at": "Fri, 30 Aug 2024 05:04:21 +0000",
    "details": "",
    "liked_by_me": false,
    "id": "5383429274252393844"
  },
    ...
]
```

### Related Actors

- 📌 [Pinterest Profile Scraper](https://apify.com/easyapi/pinterest-profile-scraper) - Extract Pinterest user profiles data including follower count, pin count, boards, and other public information.
- 📌 [Pinterest Followers Scraper](https://apify.com/easyapi/pinterest-followers-scraper) - Extract Pinterest followers data including usernames, full names and profile images.
- 👥 [Pinterest Following Scraper](https://apify.com/easyapi/pinterest-following-scraper) - Extract detailed profile information from Pinterest users' following lists.
- 🔍 [Pinterest Search Scraper](https://apify.com/easyapi/pinterest-search-scraper) - The Pinterest Search Scraper is an essential tool for discovering visual content on Pinterest.
- 🎯 [Pinterest Keyword Autocomplete Scraper](https://apify.com/easyapi/pinterest-keyword-autocomplete-scraper) - Discover keyword suggestions on Pinterest for enhanced search experience.
- 📸 [Pinterest Image Downloader](https://apify.com/easyapi/pinterest-image-downloader) - Easily download high-quality images from Pinterest with batch downloading capabilities.
- 🎥 [Pinterest Video Downloader](https://apify.com/easyapi/pinterest-video-downloader) - Download high-quality videos from Pinterest with batch downloading support.
- 📊 [Pinterest Boards Scraper](https://apify.com/easyapi/pinterest-boards-scraper) - Discover and explore creative collections on Pinterest with customizable search options.
- 💬 [Facebook Comments Scraper](https://apify.com/easyapi/facebook-post-comments-scraper) - Extract comments from public Facebook posts with detailed information.
- 💬 [Instagram Comments Scraper](https://apify.com/easyapi/instagram-comments-scraper) - Extract comments from Instagram posts with user details and engagement metrics.
- 💬 [YouTube Comments Scraper](https://apify.com/easyapi/youtube-comments-scraper) - Scrape YouTube video comments with pagination support.
- 💬 [Reddit Comments Scraper](https://apify.com/easyapi/reddit-comments-scraper) - Extract Reddit comments with their complete thread structure.
- 💬 [TikTok Comments Scraper](https://apify.com/easyapi/tiktok-comments-scraper) - Scrape TikTok comments from any video URL with advanced features.
- 🔍 [Social Media Hashtag Generator](https://apify.com/easyapi/social-media-hashtag-generator) - Generate relevant hashtags for multiple social media platforms.
- 📊 [Social Media Influencer Scraper](https://apify.com/easyapi/social-media-influencer-scraper) - Discover top influencers across TikTok, Instagram, and YouTube.

# Actor input Schema

## `pinUrl` (type: `string`):

The Pin URL

## `limit` (type: `integer`):

The Max Result

## Actor input object example

```json
{
  "pinUrl": "https://jp.pinterest.com/pin/6122149488832141/",
  "limit": 10
}
```

# 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 = {
    "pinUrl": "https://jp.pinterest.com/pin/6122149488832141/",
    "limit": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/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 = {
    "pinUrl": "https://jp.pinterest.com/pin/6122149488832141/",
    "limit": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/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 '{
  "pinUrl": "https://jp.pinterest.com/pin/6122149488832141/",
  "limit": 10
}' |
apify call easyapi/pinterest-comments-scraper --silent --output-dataset

```

## MCP server setup

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