# Pinterest API (`epctex/pinterest-api`) Actor

Scrape Pinterest pins, boards, profiles, and search results without login or official API limits. Extract images, videos, titles, descriptions, saves, comments, outbound links, and creator data. Export to JSON, CSV, or Excel, or integrate via API.

- **URL**: https://apify.com/epctex/pinterest-api.md
- **Developed by:** [epctex](https://apify.com/epctex) (community)
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.70 / 1,000 pin details

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 API

Pinterest API is an Apify actor that extracts pins, boards (collections), user profiles, comments and idea (interest) feeds from Pinterest.com by username, pin ID, board slug or search keyword. Pricing ranges from $0.003 to $0.02 per successful request, depending on the endpoint called.

Pinterest API exposes 9 endpoints, accepts up to 3 path/query parameters per endpoint, and bills one pay-per-event charge per successful request — the event depends on which endpoint you call — with no subscription and no monthly minimum on paid plans.

### How It Works

Pinterest API runs as an [Apify Standby Actor](https://docs.apify.com/platform/actors/running/standby): an always-on HTTP server, not a classic Actor run. There is no run to start and no dataset to poll — you send a plain `GET` request to an endpoint and the JSON comes back in the response itself.

| | Classic dataset Actor | Pinterest API (Standby) |
| --- | --- | --- |
| How you call it | Start a run, wait, then read the dataset | One `GET` request |
| Result | Items accumulate in a dataset | JSON in the HTTP response, synchronously |
| Billing | Per run or per dataset item | Per successful request, by endpoint |

Authenticate with your Apify API token, either as an `Authorization: Bearer <token>` header or a `?token=<token>` query parameter. The token is only used to identify and bill the caller — it is **never forwarded** to the upstream Pinterest data service.

### Who Uses Pinterest API?

- **Content and social media teams** track pin performance (`likeCount`, `repinCount`, `commentCount`, `shareCount`) and board growth (`followerCount`, `pinCount`) for their own or a competitor's account.
- **E-commerce and dropshipping research tools** search pins by product keyword (`/search/pins`) and read the `domain`/`link` fields to see which online stores are already driving traffic from Pinterest.
- **Trend and content-idea tools** read Pinterest's own curated interest pages (`/idea/{name}/pins`) to surface what's trending in a category (e.g. `Beauty`, `Home decor`) without running a keyword search.
- **Influencer and creator-tracking platforms** pull a creator's profile (`/user/{username}`), the pins they've created (`/user/{username}/pins`) and their boards (`/user/{username}/collections`) to monitor activity and audience size over time.
- **Moderation and sentiment tools** fetch a pin's comments (`/pin/comments/{id}`) and drill into a specific comment's reply thread (`/pin/comment/{id}/replies`).
- **AI agents and chatbots** call it directly as a tool: plain JSON over HTTP with a published OpenAPI spec, so no Pinterest developer account or OAuth dance is required.

### Endpoints & Parameters

All endpoints are `GET`. Base URL: `https://epctex--pinterest-api.apify.actor` — see the note under [Request Example](#request-example).

#### Users

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/user/{username}` | `username` | string (path) | Pinterest username, e.g. `dudadelsanto` | required |
| `/user/{username}/pins` | `username` | string (path) | Pinterest username | required |
| | `cursor` | string | Pagination cursor from the previous response | — |
| `/user/{username}/collections` | `username` | string (path) | Pinterest username | required |
| | `cursor` | string | Pagination cursor | — |

#### Boards

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/user/{username}/collection/{slug}/pins` | `username` | string (path) | Pinterest username of the board owner | required |
| | `slug` | string (path) | URL slug of the board, e.g. `nail-inspo` | required |
| | `cursor` | string | Pagination cursor | — |

#### Pins

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/pin/{id}` | `id` | string (path) | Pin ID | required |
| `/pin/comments/{id}` | `id` | string (path) | **Aggregated** pin ID — the `aggregatedPinId` field returned by `/pin/{id}`, not the pin ID itself | required |
| | `cursor` | string | Pagination cursor | — |
| `/pin/comment/{id}/replies` | `id` | string (path) | Comment ID — the `id` field returned by `/pin/comments/{id}` | required |
| | `cursor` | string | Pagination cursor | — |

#### Ideas

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/idea/{name}/pins` | `name` | string (path) | Display name of the idea (interest) page, e.g. `Beauty` | required |
| | `cursor` | string | Pagination cursor | — |

#### Search

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/search/pins` | `query` | string | Search keyword, e.g. `jojo` | required |
| | `cursor` | string | Pagination cursor | — |

All `cursor` parameters are optional; omit them to get the first page, and pass the `cursor` from a response back in to get the next one.

### Request Example

> **Standby base URL:** Apify Standby actors are reachable at `https://{apify-username}--{actor-name}.apify.actor`. This actor is published under the epctex account, so its Standby base URL is `https://epctex--pinterest-api.apify.actor`, used in the examples below.

Get a user's profile:

```bash
curl "https://epctex--pinterest-api.apify.actor/user/dudadelsanto" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `user-profile` ($0.003) on success.

Search pins by keyword:

```bash
curl -G "https://epctex--pinterest-api.apify.actor/search/pins" \
  --data-urlencode "query=jojo" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `search-pins` ($0.003) on success.

Get a pin's full detail:

```bash
curl "https://epctex--pinterest-api.apify.actor/pin/1054827543951238554" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `pin-detail` ($0.003) on success.

### Pricing Model

Pinterest API bills one pay-per-event charge per successful request, based on the endpoint called — regardless of how many pins, boards or comments the response contains. Only one event is ever charged per request.

| Endpoint | Event | Price |
| --- | --- | --- |
| `/pin/{id}` | `pin-detail` | $0.003 |
| `/user/{username}` | `user-profile` | $0.003 |
| `/pin/comments/{id}` | `pin-comments` | $0.01 |
| `/pin/comment/{id}/replies` | `comment-replies` | $0.02 |
| `/idea/{name}/pins` | `idea-pins` | $0.003 |
| `/search/pins` | `search-pins` | $0.003 |
| `/user/{username}/collections` | `user-boards` | $0.005 |
| `/user/{username}/collection/{slug}/pins` | `board-pins` | $0.005 |
| `/user/{username}/pins` | `user-pins` | $0.005 |

| Status | Meaning | Charged? |
| --- | --- | --- |
| `200` | Successful response, contains `data` | Yes — the called endpoint's event |
| `400` | Bad request — a param failed validation | No |
| `403` | Standby access disabled, or your access was restricted by the developer | No |
| `404` | Endpoint not matched, or nothing found upstream | No |
| `429` | Monthly free-request limit reached | No |
| `502` | Upstream (INFRA) request failed | No |
| `503` | Plan/quota could not be checked right now | No |

#### Cost examples

| Scenario | Requests | Cost |
| --- | --- | --- |
| Look up 1 user profile | 1 | $0.003 |
| Fetch 1 page of a pin's comments | 1 | $0.01 |
| Search a keyword, 1 page | 1 | $0.003 |
| Look up 1 pin, then its comments | 2 | $0.003 + $0.01 = $0.013 |
| Pull 10 pages of a user's pins | 10 | $0.05 |
| 1,000 pin detail lookups | 1,000 | $3.00 |
| 1,000 user-pins pages | 1,000 | $5.00 |

**Cost optimization tips:** don't retry on `400`/`403`/`404`/`429` — they're not charged but they also won't succeed on retry without changing the request; cache user profile and board lookups you don't expect to change between calls instead of re-fetching them; every list endpoint is billed per page, not per item, so request only the pages you need.

#### Demo Mode

Apify Free-plan users can try Pinterest API without a subscription, capped at **10 requests per calendar month**. Once that limit is used up, every call answers `429` ("You have used all free requests for this month. Upgrade your Apify plan to keep going.") until the next month. A paid Apify plan removes the monthly cap entirely.

### Output Example

A single user (`GET /user/{username}`):

```json
{
  "status": 200,
  "message": "OK",
  "data": {
    "type": "user",
    "id": "672584663008554825",
    "username": "dudadelsanto",
    "fullName": "maria eduarda",
    "url": "https://www.pinterest.com/dudadelsanto/",
    "websiteUrl": "https://www.instagram.com/dudadelsanto/",
    "imageUrl": "https://i.pinimg.com/280x280_RS/3d/34/8d/3d348dde519fe850f2aa7b5d717ced10.jpg",
    "followerCount": 11580,
    "followingCount": 19,
    "collectionCount": 21,
    "pinCount": 2488,
    "isPrivate": false,
    "isVerifiedMerchant": false,
    "createdAt": "Mon, 31 Oct 2016 18:17:11 +0000"
  }
}
```

A single pin (`GET /pin/{id}`):

```json
{
  "status": 200,
  "message": "OK",
  "data": {
    "type": "pin",
    "id": "1054827543951238554",
    "url": "https://www.pinterest.com/pin/1054827543951238554/",
    "aggregatedPinId": "3163996706845024704",
    "title": "Valentine's Nail Art",
    "description": "A pin about nail art",
    "domain": "example.com",
    "createdAt": "2023-01-01T00:00:00",
    "commentCount": 3,
    "repinCount": 120,
    "likeCount": 45,
    "shareCount": 10,
    "images": { "...": "..." },
    "board": { "id": "...", "name": "...", "url": "...", "pinCount": 0 },
    "owner": { "id": "...", "username": "...", "fullName": "...", "followerCount": 0 }
  }
}
```

A paginated listing, e.g. `GET /search/pins` (`cursor`/`results` wrapper used by every list endpoint):

```json
{
  "status": 200,
  "message": "OK",
  "data": {
    "cursor": "eyJvZmZzZXQiOjEwfQ==",
    "results": [
      {
        "type": "pin",
        "id": "672584525628990837",
        "url": "https://www.pinterest.com/pin/672584525628990837/",
        "aggregatedPinId": "4956930965321564077",
        "title": "olivia rodrigo | guts tour",
        "domain": "giverecipe.com",
        "link": "https://www.giverecipe.com/how-to-fry-anchovies/",
        "isVideo": false,
        "repinCount": 10,
        "commentCount": 0,
        "likeCount": 10,
        "owner": { "id": "...", "username": "...", "fullName": "..." }
      }
    ]
  }
}
```

A board (`GET /user/{username}/collections`, one item of `data.results`):

```json
{
  "type": "collection",
  "id": "1101974671263500880",
  "name": "Papier Cadeau Chat Noel",
  "url": "https://www.pinterest.com/addarmed5/papier-cadeau-chat-noel/",
  "slug": "papier-cadeau-chat-noel",
  "privacy": "public",
  "pinCount": 8,
  "followerCount": 74,
  "isCollaborative": false,
  "coverImageUrl": "https://i.pinimg.com/474x/e4/b0/46/e4b0466112c9479dfcea743d6fd11806.jpg",
  "owner": { "id": "...", "username": "...", "fullName": "..." }
}
```

A comment (`GET /pin/comments/{id}`, one item of `data.results`):

```json
{
  "type": "comment",
  "id": "5403060363545600985",
  "text": "demir eksikligine birebir pasta",
  "createdAt": "Mon, 16 Dec 2024 13:18:14 +0000",
  "isEdited": false,
  "replyCount": 2,
  "likeCount": 24,
  "isHighlightedByPinOwner": false,
  "user": { "id": "943011746883544543", "username": "zubizabazibzabzob" }
}
```

A resource that doesn't exist, e.g. `GET /user/{username}` for an unknown username (still `200`, still charged — see [Pricing Model](#pricing-model)):

```json
{
  "status": 200,
  "message": "OK",
  "data": { "notFound": true }
}
```

### Limitations

- **`/pin/comments/{id}` takes the aggregated pin ID, not the pin ID.** Pass the `aggregatedPinId` field from `/pin/{id}`'s response — the plain pin `id` will not resolve to the right comment thread.
- **`/pin/comment/{id}/replies` takes a comment ID**, taken from the `id` field of a comment returned by `/pin/comments/{id}`, not a pin ID.
- **Cursor-based pagination only** — there is no page-number or offset parameter on any list endpoint; follow the `cursor` returned by the previous page.
- **`/idea/{name}/pins` and `/search/pins` have no `notFound` response.** An unknown idea name or a query with no matches comes back as a `200` with an empty `results` array rather than `{ "notFound": true }`.
- **Public data only** — this proxies Pinterest's own public pages; it cannot access private boards or anything that requires a logged-in Pinterest session.
- **Per-endpoint pricing, not per-field pricing.** Every endpoint charges a fixed event regardless of how many pins, boards or comments a page contains — some endpoints share the same price point (e.g. `pin-detail` and `user-profile` both cost $0.003), but each is still billed as its own named event, with no volume discount within an endpoint.
- **No free-text board search.** Boards can only be read from a known owner's username (`/user/{username}/collections`, `/user/{username}/collection/{slug}/pins`) — there is no endpoint to search boards by keyword.

### Which Pinterest API Questions Come Up Most Often?

#### Does Pinterest API need a Pinterest account or API key?

No. You only need an Apify API token. Pinterest API proxies a backend Pinterest data service itself; it never asks you to log in to Pinterest.

#### How much does it cost?

It depends on the endpoint: from $0.003 for a pin detail lookup or user profile up to $0.02 for a comment's replies. Failed, invalid, rejected or not-found responses are never charged, and a request never charges more than one event.

#### Am I charged per pin/comment/board, or per request?

Per request. A page of 25 search results costs exactly the same as a page of 1 — but a different amount than looking up a single user profile.

#### How do I get more than one page of results?

Pass the `cursor` from the previous response's `data.cursor` field as the `cursor` query parameter on the next call. Each page is a separate, separately-charged request.

#### What happens when I hit the free-plan limit?

Every call returns `429` with "You have used all free requests for this month. Upgrade your Apify plan to keep going." until the next calendar month, or until you move to a paid Apify plan.

#### Why did my request return `403`?

Either Standby access isn't available on your current Apify plan, or your access to this Actor has been specifically restricted by its developer.

#### Can I retry a `502` or `503`?

Yes. `502` means the request to the upstream data service failed; `503` means your plan/quota couldn't be checked. Neither is charged, and both are safe to retry after a short delay.

#### How do I get a pin's comments if I only have the pin ID?

Call `/pin/{id}` first and read `aggregatedPinId` from its response — that's the ID `/pin/comments/{id}` expects, not the plain pin ID.

#### What does `/idea/{name}/pins` return?

The pins Pinterest itself surfaces on one of its curated interest (idea) pages, such as `Beauty` or `Home decor` — the same feed you'd see browsing that interest on pinterest.com, without running a keyword search.

#### Can I use this from an AI agent or bot?

Yes. It's a plain HTTP JSON API with a published OpenAPI spec, so it fits LLM tool calls, bots, backends, and any no-code tool that can make HTTP requests.

### Contact

Pinterest API is published by epctex. Visit [epctex.com](https://epctex.com) to see all available products. For custom integrations, reach out through the chat box on epctex.com. For support, contact business@epctex.com.

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

## `overview` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("epctex/pinterest-api").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("epctex/pinterest-api").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 '{}' |
apify call epctex/pinterest-api --silent --output-dataset

```

## MCP server setup

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

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/cInd5zb3L8iJTAXP5/builds/OdiNhrit0URe92V6C/openapi.json
