# 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:** 10 total users, 1 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/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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("💾 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 '{
  "size": 10,
  "source_value": "nike",
  "only_query_video": false
}' |
apify call shareze001/pinterest-pins --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Pinterest Pins",
        "description": "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.",
        "version": "0.0",
        "x-build-id": "sczObeEcgOByZd0Ga"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/shareze001~pinterest-pins/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-shareze001-pinterest-pins",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/shareze001~pinterest-pins/runs": {
            "post": {
                "operationId": "runs-sync-shareze001-pinterest-pins",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/shareze001~pinterest-pins/run-sync": {
            "post": {
                "operationId": "run-sync-shareze001-pinterest-pins",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "size",
                    "data_source",
                    "source_value"
                ],
                "properties": {
                    "size": {
                        "title": "Total Size",
                        "minimum": 1,
                        "type": "integer",
                        "description": "pins size, default is 10",
                        "default": 10
                    },
                    "data_source": {
                        "title": "Data Source",
                        "enum": [
                            "search-page",
                            "profile-page"
                        ],
                        "type": "string",
                        "description": "Retrieve the source of the pins page — there are two options: the search page and the profile page.",
                        "default": "profile-page"
                    },
                    "source_value": {
                        "title": "Query Value",
                        "type": "string",
                        "description": "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": {
                        "title": "Only Query Videos",
                        "type": "boolean",
                        "description": "When enabled, keyword searches for pins will return only video pins, excluding image pins. This parameter does not apply to profile pages.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
