# Pinterest Search Scraper (`good-apis/pinterest-search-scraper`) Actor

- **URL**: https://apify.com/good-apis/pinterest-search-scraper.md
- **Developed by:** [Danny](https://apify.com/good-apis) (community)
- **Categories:** Social media, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.49 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

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

Search Pinterest for any keyword and get the matching pins as clean, structured JSON: **title, description, pin URL, the source (outbound) link, full-resolution image URL, dominant color, and the pinner** — no login, no API key, no browser to manage.

**Pricing: $2.49 per 1,000 results** (pay per result — one result per pin returned).

### What you get

| Field | Description |
|---|---|
| `pin_id` | Pinterest pin id |
| `title` | Pin title (grid title / alt text) |
| `description` | Pin description (if any) |
| `url` | Canonical pin URL |
| `external_link` | The outbound source link the pin points to (e.g. the blog / product page) |
| `image` | Full-resolution image URL |
| `dominant_color` | Dominant color of the image (hex) |
| `pinner` | Username of the account that pinned it |
| `pinner_name` | Display name of that account |

### Input

| Field | Description |
|---|---|
| `query` | What to search for, e.g. `"home decor"`, `"recipes"`, `"wedding ideas"` |
| `max_results` | How many pins to return (1-50; default 25) |

```json
{ "query": "home decor", "max_results": 25 }
```

### Example output

```json
{
  "pin_id": "1122055685253430943",
  "title": "30 Cozy Living Room Ideas",
  "description": "Warm, layered living room inspiration.",
  "url": "https://www.pinterest.com/pin/1122055685253430943/",
  "external_link": "https://example-blog.com/cozy-living-room",
  "image": "https://i.pinimg.com/originals/ab/cd/...jpg",
  "dominant_color": "#c9b7a4",
  "pinner": "thespruce",
  "pinner_name": "The Spruce"
}
```

### How to run

**Console** — type a query, set how many pins you want, and click **Start**.

**API** (start a run and get the dataset):

```bash
curl -X POST "https://api.apify.com/v2/acts/YOUR_ACTOR_ID/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query": "home decor", "max_results": 25}'
```

**Python client:**

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("YOUR_ACTOR_ID").call(run_input={"query": "recipes", "max_results": 25})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["title"], item["url"])
```

**Node.js client:**

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('YOUR_ACTOR_ID').call({ query: 'wedding ideas', max_results: 25 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### FAQ

**Do I need to log in or provide cookies?** No. Only public search results are returned.

**How many results can I get?** Up to 50 pins per run (one page of Pinterest search results).

**What if my query has no results?** The run succeeds with an empty dataset — you are only charged for pins actually returned.

**Does it include the outbound link?** Yes — `external_link` is the source URL the pin points to, when Pinterest exposes one.

**Is the data live?** Yes — every run queries Pinterest fresh.

# Actor input Schema

## `query` (type: `string`):

What to search Pinterest for, e.g. "home decor", "recipes", "wedding ideas".

## `max_results` (type: `integer`):

How many pins to return (1-50, one page of search results).

## Actor input object example

```json
{
  "query": "home decor",
  "max_results": 25
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped items in the default dataset.

# 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 = {
    "query": "home decor",
    "max_results": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("good-apis/pinterest-search-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 = {
    "query": "home decor",
    "max_results": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("good-apis/pinterest-search-scraper").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 '{
  "query": "home decor",
  "max_results": 25
}' |
apify call good-apis/pinterest-search-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/p4cdyZ1wxYjNaEnzF/builds/NOV0VMSIQ5bevMZSZ/openapi.json
