# Pinterest Scraper (`danielmilevski9/pinterest-crawler`) Actor

Our free Pinterest Scraper allows you to get "pins" along with a user's profile. This unofficial Pinterest API is designed to give you more details than you can see in the web interface. It also enables you to extract public data from Pinterest without limits.

- **URL**: https://apify.com/danielmilevski9/pinterest-crawler.md
- **Developed by:** [Daniel Milevski](https://apify.com/danielmilevski9) (community)
- **Categories:** Social media
- **Stats:** 3,345 total users, 37 monthly users, 99.9% runs succeeded, 76 bookmarks
- **User rating**: 3.19 out of 5 stars

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

### What does Pinterest Scraper do?

Our free Pinterest Scraper allows you to extract "pins" along with a user's profile.

This unofficial Pinterest API is designed to give you more details than you can see in the web interface. It also enables anyone to extract public data from Pinterest without limits.

The Pinterest data scraper supports the following features:

- Scrape profiles - get metadata from the profile
- Scrape pins with full details - different kinds of pins will be parsed accordingly

### How to use Pinterest Scraper

For a step-by-step guide on how to use Pinterest Scraper, read [How to scrape data on Pinterest in 5 easy steps](https://blog.apify.com/how-to-scrape-data-on-pinterest-in-5-easy-steps/), or watch our [video tutorial](https://www.youtube.com/watch?v=v8WDCpA3iR0) on YouTube.

### How much does Pinterest Scraper cost?

It will cost you approx. USD 0.25 to scrape 1,000 pins. The more results you want to scrape, the more time it will take and the more usage credits it will cost.

Apify provides you with USD 5 free usage credits to use every month on the Apify Free plan so you can get up to 20,000 pins from Pinterest Scraper for those credits. So 20,000 results will be completely free!

But if you need to get more data or to get your data regularly you should grab an Apify subscription. We recommend our $49/month Personal plan - you could get up to 200,000 Pinterest pins reviews every month with the $49 monthly plan!

### Why scrape Pinterest?

Automatically gather data from this image sharing and social media service designed to enable the saving and discovery of images, animated GIFs, and videos.

So what can you do with that data? Here are some ideas:

- Collect data about your audience. How many subscribers do they have on average? Are they active on Pinterest? What sites do they have?
- Find the best subscribers. Make a shortlist of your ideal subscribers and actively pursue them by sending them DMs and offering partnerships!
- Collect data about your competitor's audience.

If you want more ideas, check out our [industries pages](https://apify.com/industries) for ways web scraping is already being used in a wide range of companies.

### Settings and proxies

#### Profile names and URLs

You need to provide a list of profile names or Pinterest URLs (they can be mixed in any order).

#### Using proxies

Pinterest now allows access under any type of proxies.

#### Custom proxies

You can also use proxies from other providers in the custom proxies fields (`proxyURLs` in the JSON settings).

### Is it legal to scrape Pinterest?

Web scraping is legal, but you should be aware that your results could contain personal data. Personal data is protected by GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. You can also read our blog post on the [legality of web scraping](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

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

Names or URLs to start with.

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

Max pins per profile

## `scrapeOnlyProfileData` (type: `boolean`):

Do not scrape pins, only profile details

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

You need to use Apify proxy or custom proxies.

## Actor input object example

```json
{
  "startUrls": [
    "pinterest.com/poltronafrau",
    "bellinthewoods"
  ],
  "maxPinsCnt": 50,
  "scrapeOnlyProfileData": false,
  "proxyConfig": {
    "useApifyProxy": true
  }
}
```

# 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": [
        "pinterest.com/poltronafrau",
        "bellinthewoods"
    ],
    "maxPinsCnt": 50,
    "proxyConfig": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("danielmilevski9/pinterest-crawler").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": [
        "pinterest.com/poltronafrau",
        "bellinthewoods",
    ],
    "maxPinsCnt": 50,
    "proxyConfig": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("danielmilevski9/pinterest-crawler").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": [
    "pinterest.com/poltronafrau",
    "bellinthewoods"
  ],
  "maxPinsCnt": 50,
  "proxyConfig": {
    "useApifyProxy": true
  }
}' |
apify call danielmilevski9/pinterest-crawler --silent --output-dataset

```

## MCP server setup

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

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/lkUCD0Lb3fHiQMS5m/builds/yzw1oNy8Amo9zwRhJ/openapi.json
