# Pinterest Search Scraper — Pins by Keyword (`thenetaji/pinterest-search-scraper`) Actor

Search public Pinterest Pins or video Pins by keyword, then save titles, descriptions, boards, source domains, and outbound links.

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

## Pricing

from $1.00 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

The Actor searches public Pinterest Pins by `query` and saves matching Pin records. `scope` selects standard Pins or video Pins; each record can contain `id`, `title`, `description`, `dominant_color`, `image_url`, `board`, `pinner`, `domain`, and `link` when supplied.

```json
{
  "query": "coffee",
  "scope": "pins",
  "maxItems": 100
}
```

### Search controls

- `query` is required and accepts the words or phrase to search.
- `scope` defaults to `pins`; use `videos` to search video Pins.
- `maxItems` defaults to `50`. A value of `0` removes the result limit.
- `addonPinDetails` defaults to `false`. Turn it on to fetch full Pin detail for each search result — save counts, comment totals, and the complete media record under `pin_details`. Search results do not carry save counts on their own, so this is the option to enable when ranking results by popularity. It costs one extra request per Pin and is billed per enriched row, so leave it off for a fast, cheap keyword scan.
- `addonPinnerProfile` defaults to `false`. Turn it on to fetch the full public profile of the account that saved each search result, attached under `pinner_profile`. It costs one extra request per Pin and is billed per enriched row.

### Example dataset item

```json
{
  "id": "873135446527329879",
  "dominant_color": "#74644e",
  "domain": "Uploaded by user",
  "board": {
    "id": "873135515196321762",
    "name": "My own stuff😌😌",
    "url": "/asmaahadi2003/my-own-stuff/"
  },
  "image_url": "https://i.pinimg.com/originals/51/9f/13/519f131c4c945c6854e83e9937664e9b.jpg"
}
```

This is a live-verified `coffee` search result. Its source title and description were empty, so neither is included in the example.

### Result boundaries

Pagination continues until `maxItems` is reached, the source returns an empty page, or no further page is available. The dataset can therefore contain fewer records than `maxItems`; setting the limit does not guarantee that the search has that many matches. Promotional and editorial modules returned alongside genuine Pins are excluded, so they never consume a result row.

The [Pinterest Pin Scraper](https://apify.com/thenetaji/pinterest-pin-scraper) is the appropriate follow-up when a search result `id` needs its single-Pin detail record. The [Pinterest Boards Scraper](https://apify.com/thenetaji/pinterest-boards-scraper) lists boards for a known profile instead of searching Pins.

# Actor input Schema

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

Words or phrases used to find Pinterest Pins.

## `scope` (type: `string`):

Choose whether the search returns Pins or video Pins.

## `maxItems` (type: `integer`):

Maximum records to save. Set `0` to continue until no further records are available.

## `addonPinDetails` (type: `boolean`):

Fetch full Pin detail (save count, comment count, and media) for each Pin found. This makes one extra request per Pin and adds a charge per enriched row.

## `addonPinnerProfile` (type: `boolean`):

Fetch the full public Pinterest profile of the account that saved each Pin, attached under `pinner_profile`. This makes one extra request per Pin and adds a charge per enriched row.

## Actor input object example

```json
{
  "query": "coffee",
  "scope": "pins",
  "maxItems": 20,
  "addonPinDetails": false,
  "addonPinnerProfile": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

All records scraped by this run

# 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": "coffee",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("thenetaji/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": "coffee",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("thenetaji/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": "coffee",
  "maxItems": 20
}' |
apify call thenetaji/pinterest-search-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/FVWSMdT9jYQq0vXil/builds/byTRDdaVCqQvzNRaf/openapi.json
