# Pinterest Pins (`shareze001/pinterest-pins`) Actor

A flexible Pinterest pin scraper that collects detailed pin data from user profiles or search results. It captures titles, descriptions, images, videos, engagement metrics, and linked boards or users. Ideal for content research, trend tracking, product discovery, and creative inspiration.

- **URL**: https://apify.com/shareze001/pinterest-pins.md
- **Developed by:** [shareze](https://apify.com/shareze001) (community)
- **Categories:** Developer tools, E-commerce, Integrations
- **Stats:** 9 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

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

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

This tool lets you **scrape Pinterest pins** from either a user’s profile or the Pinterest search page.
It provides detailed pin information such as title, image, video, engagement, and related board and user data — perfect for trend analysis, product research, and content collection.

### 🚀 How It Works

1. Choose the data source: **search-page** or **profile-page**.
2. Provide either a **keyword** (for search) or a **username** (for profile).
3. Optionally filter results to **only include video pins**.
4. The scraper returns structured JSON data for each pin, including images, descriptions, and links.

### ⚙️ Input Parameters

| Parameter            | Type      | Required | Default          | Description                                                                                                          |
| -------------------- | --------- | -------- | ---------------- | -------------------------------------------------------------------------------------------------------------------- |
| **data\_source**      | `string`  | ✅        | `"profile-page"` | Select where to scrape pins from: `"profile-page"` (a user’s profile) or `"search-page"` (Pinterest search results). |
| **source\_value**     | `string`  | ✅        | `"nike"`         | The input value: username for profiles or keywords for search.                                                       |
| **size**             | `integer` | ✅        | `10`             | Number of pins to scrape (minimum: 1).                                                                               |
| **only\_query\_video** | `boolean` | ❌        | `false`          | When true, only video pins will be returned (only applies to search results).                                        |

#### Example Input

```json
{
  "data_source": "search-page",
  "source_value": "nike shoes",
  "size": 15,
  "only_query_video": false
}
```

### 📦 Output Structure

Each pin in the dataset follows this structure:

```json
{
  "id": "211174977530938",
  "title": "Nike decide deixar de vender seus produtos na Amazon",
  "dominant_color": "#ffffff",
  "description": "Nike decide deixar de vender seus produtos na Amazon",
  "uri": "/pin/211174977530938/",
  "url": "https://www.pinterest.com/pin/211174977530938/",
  "redirectLink": "https://economia.uol.com.br/noticias/afp/2019/11/13/nike-deixa-de-vender-seus-produtos-na-amazon.htm",
  "createdAt": "Thu, 19 Sep 2024 04:26:17 +0000",
  "image": {
    "width": 450,
    "height": 450,
    "url": "https://i.pinimg.com/originals/e7/65/04/e7650458fe434cd647eafb289a569fe2.png"
  },
  "images": {
    "236x": {
      "width": 236,
      "height": 236,
      "url": "https://i.pinimg.com/236x/e7/65/04/e7650458fe434cd647eafb289a569fe2.jpg"
    },
    "736x": {
      "width": 450,
      "height": 450,
      "url": "https://i.pinimg.com/736x/e7/65/04/e7650458fe434cd647eafb289a569fe2.jpg"
    }
  },
  "likeCount": 346,
  "board": {
    "id": "211243671946242",
    "name": "Austin’s fave things",
    "url": "https://www.pinterest.com/abbey4460/austins-fave-things/"
  },
  "user": {
    "id": "211312390971860",
    "username": "abbey4460",
    "fullName": "Abbey Cross",
    "imageUrl": "https://i.pinimg.com/30x30_RS/87/bb/68/87bb68b5949e91e4662bf05e67901b41.jpg",
    "url": "https://www.pinterest.com/abbey4460/"
  }
}
```

### 🧠 Field Description

| Field              | Type      | Description                                                                   |
| ------------------ | --------- | ----------------------------------------------------------------------------- |
| **id**             | `string`  | Unique pin identifier.                                                        |
| **title**          | `string`  | Pin title text.                                                               |
| **description**    | `string`  | Description or caption of the pin.                                            |
| **dominant\_color** | `string`  | Dominant color of the pin’s image.                                            |
| **uri**            | `string`  | Pinterest internal URI.                                                       |
| **url**            | `string`  | Direct URL to the pin.                                                        |
| **redirectLink**   | `string`  | External link attached to the pin, if any.                                    |
| **createdAt**      | `string`  | Creation date and time of the pin.                                            |
| **image**          | `object`  | Main pin image data (URL, width, height).                                     |
| **images**         | `object`  | Resized versions of the pin image in multiple resolutions.                    |
| **video / videos** | `object`  | Video details (if the pin includes a video).                                  |
| **likeCount**      | `integer` | Number of likes the pin has received.                                         |
| **board**          | `object`  | The board where the pin is saved (ID, name, URL).                             |
| **user**           | `object`  | The user who created or saved the pin (username, name, avatar, profile link). |

### 📊 Example Output

```json
[
  {
    "id": "211174977530938",
    "title": "Nike decide deixar de vender seus produtos na Amazon",
    "url": "https://www.pinterest.com/pin/211174977530938/",
    "redirectLink": "https://economia.uol.com.br/noticias/afp/2019/11/13/nike-deixa-de-vender-seus-produtos-na-amazon.htm",
    "likeCount": 346
  }
]
```

### 🪄 Notes

- Supports both **profile-based** and **keyword-based** scraping.
- Can be configured to return **only video pins** from search results.
- Works on **public content** — no login required.

### 🧰 Use Cases

- Analyze top-performing pins for brands or topics
- Collect visual inspiration for creative projects
- Discover trending video or product content
- Build datasets for image and video research

# Actor input Schema

## `size` (type: `integer`):

pins size, default is 10

## `data_source` (type: `string`):

Retrieve the source of the pins page — there are two options: the search page and the profile page.

## `source_value` (type: `string`):

Corresponding to the value of `data_source`: if `data_source` is `profile-page`, pass in the profile’s username (e.g., rihamarchitacteur, nike, nike/nikeskims, etc.); otherwise, pass in the search keywords.

## `only_query_video` (type: `boolean`):

When enabled, keyword searches for pins will return only video pins, excluding image pins. This parameter does not apply to profile pages.

## Actor input object example

```json
{
  "size": 10,
  "data_source": "profile-page",
  "source_value": "nike",
  "only_query_video": false
}
```

# 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 = {
    "size": 10,
    "source_value": "nike",
    "only_query_video": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("shareze001/pinterest-pins").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 = {
    "size": 10,
    "source_value": "nike",
    "only_query_video": False,
}

# Run the Actor and wait for it to finish
run = client.actor("shareze001/pinterest-pins").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 '{
  "size": 10,
  "source_value": "nike",
  "only_query_video": false
}' |
apify call shareze001/pinterest-pins --silent --output-dataset

```

## MCP server setup

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

```

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/fS07bPtdV7Ux6IxjW/builds/ACKNdefwK4EY7HVOS/openapi.json
