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

The Pinterest Search Scraper is an essential tool for discovering visual content on Pinterest. With customizable search options and detailed data retrieval, it enhances your ability to find and utilize creative inspiration effectively! 🌟

- **URL**: https://apify.com/easyapi/pinterest-search-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Social media, Videos
- **Stats:** 1,565 total users, 208 monthly users, 99.4% runs succeeded, 25 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

Unlock the visual inspiration on Pinterest with our **Pinterest Search Scraper**! This Apify actor allows you to search for pins based on your query, providing access to a wealth of creative content.

#### 🌟 Key Features

- **Customizable Search Parameters**:
  - **query**: Specify the search term to find relevant pins.
  - **filter**: Choose between "all" or "videos" to refine your search results.
  - **limit**: Set the maximum number of results to return.

#### 🛠️ Data Fields Returned

Our scraper retrieves a variety of fields for each pin, including:

- **id**: Unique identifier for the pin.
- **title**: Title of the pin.
- **pinner**:
  - **id**: Unique identifier for the user who created the pin.
  - **username**: Username of the pinner.
  - **fullName**: Full name of the pinner.
  - **avatarURL**: URL to the pinner's avatar.
  - **followers**: Number of followers the pinner has.
- **date**:
  - **formatted**: Formatted date of the pin creation.
  - **initial**: Raw date string of when the pin was created.
- **type**: Type of content (e.g., "pin").
- **imageURL**: URL to the HD image associated with the pin.

#### 🚀 Why Choose Our Scraper?

- **Efficient Content Discovery**: Quickly find creative pins that match your interests or projects.
- **User-Friendly Integration**: Designed for easy incorporation into your applications or services.
- **Comprehensive Results**: Access detailed information about each pin and its creator.

#### Input

A full explanation of an input example in JSON.

```
{
  "query": "wallpaper",
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```
[
    {
        "id": "159314905561864531",
        "title": "530 Mobile wallpapers ideas in 2024 | mobile wallpaper, phone wallpaper, iphone wallpaper",
        "pinner": {
            "id": "159315042976717963",
            "username": "celee722",
            "fullName": "🥀 𝙷𝚊𝚗𝚊𝚑𝚊𝚔𝚒 🥀",
            "avatarURL": "https://i.pinimg.com/75x75_RS/81/ba/de/81badebd16fae4dab326118aaf65a96e.jpg",
            "followers": 2
        },
        "date": {
            "formatted": "2024-08-19",
            "initial": "Mon, 19 Aug 2024 04:13:09 +0000"
        },
        "type": "pin",
        "imageURL": "https://i.pinimg.com/originals/1b/16/f2/1b16f2064966cabcbf58e62ecb157dbf.jpg"
    },
    ...
]
```

#### Related Actors

- 📌 [Pinterest Profile Scraper](https://apify.com/easyapi/pinterest-profile-scraper) - Extract Pinterest user profiles data including follower count, pin count, boards, and other public information.
- 📌 [Pinterest Followers Scraper](https://apify.com/easyapi/pinterest-followers-scraper) - Extract Pinterest followers data including usernames, full names and profile images.
- 📌 [Pinterest Following Scraper](https://apify.com/easyapi/pinterest-following-scraper) - Extract detailed profile information from Pinterest users' following lists.
- 📌 [Pinterest Comments Scraper](https://apify.com/easyapi/pinterest-comments-scraper) - Extract user feedback and interactions from Pinterest pins for enhanced content strategy.
- 📌 [Pinterest Boards Scraper](https://apify.com/easyapi/pinterest-boards-scraper) - Discover and explore creative collections on Pinterest with customizable search options.
- 📌 [Pinterest Video Downloader](https://apify.com/easyapi/pinterest-video-downloader) - Download high-quality videos from Pinterest with batch processing capabilities.
- 📌 [Pinterest Image Downloader](https://apify.com/easyapi/pinterest-image-downloader) - Download high-quality images from Pinterest with batch downloading capabilities.
- 📌 [Pinterest Keyword Autocomplete Scraper](https://apify.com/easyapi/pinterest-keyword-autocomplete-scraper) - Discover keyword suggestions for enhanced Pinterest search optimization.
- 🔍 [Keyword Suggestions Scraper](https://apify.com/easyapi/keyword-suggestions-scraper) - Get keyword suggestions from multiple platforms including Pinterest.
- 📊 [Social Media Influencer Scraper](https://apify.com/easyapi/social-media-influencer-scraper) - Discover top influencers across multiple social platforms.
- 📧 [All-in-One Social Media Email Scraper](https://apify.com/easyapi/all-in-one-social-media-email-scraper) - Extract contact information from 30+ social platforms.
- 📱 [All-in-One Social Media Phone Number Scraper](https://apify.com/easyapi/all-in-one-social-media-phone-number-scraper) - Discover phone numbers across 30+ social platforms.
- 🏷️ [Social Media Hashtag Generator](https://apify.com/easyapi/social-media-hashtag-generator) - Generate relevant hashtags for multiple social media platforms.
- 🔍 [Keyword Discovery Tool](https://apify.com/easyapi/keyword-discovery-tool) - Discover new keyword ideas and uncover valuable search insights.
- 🌐 [URL Metadata Crawler](https://apify.com/easyapi/url-metadata-crawler) - Extract comprehensive metadata from web pages including social media meta tags.

# Actor input Schema

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

The Query Term

## `filter` (type: `string`):

The Search Type

## `limit` (type: `integer`):

The Max Result

## Actor input object example

```json
{
  "query": "wallpaper",
  "filter": "all",
  "limit": 20
}
```

# 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": "wallpaper",
    "filter": "all",
    "limit": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/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": "wallpaper",
    "filter": "all",
    "limit": 20,
}

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

```

## MCP server setup

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

```

## OpenAPI specification

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