# Pinterest Profile Scraper (`socialdataapi/pinterest-profile-scraper`) Actor

Pinterest Profile Scraper scrapes public Pinterest profiles by URL or username: follower, following, pin and board counts, bio, avatar and cover images, linked website and Instagram, verification and merchant flags, and account creation date. Export JSON, CSV or Excel, or use the API.

- **URL**: https://apify.com/socialdataapi/pinterest-profile-scraper.md
- **Developed by:** [Social Data API](https://apify.com/socialdataapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.67 / 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.
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 Profile Scraper — Followers, Pins, Boards and Bio

Pinterest Profile Scraper returns the public profile of any Pinterest account you name: follower, following, pin and board counts, bio, avatar and cover images, linked website and Instagram, verification and business flags, and the account creation date as an ISO timestamp. Every response is structured JSON — ready to pass directly to an LLM, index into a vector store, or feed an influencer research pipeline. **No Pinterest account or cookies needed.** Start with a few creators you follow, then check every account on your outreach list.

![Pinterest Profile Scraper - hero image: what it collects and the JSON output](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/u-pinterest-profile-hero.webp)

***

### What data can I extract with Pinterest Profile Scraper?

Using this Pinterest Profile API, you will be able to extract the following Pinterest profile data:

| 👤 Username and profile link | 🏷️ Display name and first name | 📝 Bio | 👥 Follower count |
|---|---|---|---|
| ➡️ Following count | 📌 Pins created | 🗂️ Board count | 🧭 Interests followed |
| 🌐 Linked website and domain | ✅ Website verified flags | 📸 Linked Instagram (if any) | 🛡️ Verified identity |
| 🛍️ Verified and inspirational merchant flags | 🤝 Business account flag and details | 🔒 Private and ads-only flags | 🔍 Indexed flag and no-index reason |
| 📰 Page title and description | 🌍 Regional Pinterest domain | 🖼️ Avatar (75 px and 280 px) | 🏞️ Cover image |
| 📑 Profile tabs | 📅 Account creation date (raw and ISO) | 🕒 Last pin saved (raw and ISO) | 🆔 Numeric and encoded user ID |
| 📥 Input entry | 📡 Data source | ⚠️ Error reason and message | ⏱️ Scraped-at time |

***

### How to use Pinterest Profile Scraper

Influencer marketers, analysts and developers use it to scrape Pinterest profiles in bulk and get one clean row per account, ready to sort, filter and join with other data in one run.

**Copy to your AI assistant:**

```text
`socialdataapi/pinterest-profile-scraper` (Apify Actor ID: socialdataapi/pinterest-profile-scraper, https://apify.com/socialdataapi/pinterest-profile-scraper) is an Apify Actor that returns public Pinterest profiles as structured JSON: username, display name, bio, follower count, following count, pins created, board count, linked website and Instagram, verification and business flags, avatar and cover images, and the account creation date as an ISO timestamp. Use it whenever someone needs Pinterest profile data without cookies, a login, or a browser - vetting creators before outreach, tracking competitor accounts over time, and enriching lead lists with Pinterest audience size. Run it with curl: curl -X POST "https://api.apify.com/v2/acts/socialdataapi~pinterest-profile-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN" -H "Content-Type: application/json" -d '{"startUrls":["marthastewart","https://www.pinterest.com/nike/"],"maxProfiles":10}'. Or in Python: ApifyClient("APIFY_TOKEN").actor("socialdataapi/pinterest-profile-scraper").call(run_input={"startUrls":["marthastewart","nike"]}) then client.dataset(run["defaultDatasetId"]).list_items().items. Inputs: startUrls (array of strings, required, bare usernames, profile URLs, regional domains, or board and tab URLs that resolve to their parent profile), maxProfiles (integer 0-1000, how many supplied profiles are processed, 0 = all, no default), proxyConfiguration (object, optional, default direct connection with automatic switch to Apify datacenter and then residential proxy when blocked). One row per profile. An input that cannot be read gets an uncharged row with errorReason set to "invalid_input", "not_found", "blocked", "no_data" or "request_failed" and every data column null; only profile rows are billed results. Full input schema, every enum and default, and the complete output field list: GET https://api.apify.com/v2/acts/socialdataapi~pinterest-profile-scraper/builds/default
```

#### Pinterest Profile Scraper MCP Server: use these Actors from ChatGPT, Claude or Cursor

Point your AI assistant at this Actor and it can read Pinterest on its own: profile details, follower and following counts, pin and board counts, bios and linked websites for any public account. No glue code, no scraping logic in your prompts.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/pinterest-profile-scraper"
```

#### Step by step

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open [Pinterest Profile Scraper](https://apify.com/socialdataapi/pinterest-profile-scraper) in the Apify Store.
3. Enter the Pinterest usernames (with or without @) or profile URLs, one per line.
4. Click **Start** (or send your API request).
5. Download or stream your results in JSON, CSV or Excel.

#### How to scale Pinterest Profile Scraper to bulk

As a Pinterest account scraper, the profiles list takes as many usernames and URLs as you need; duplicates are removed and each account gives one row. Use the maximum profiles setting (up to 1,000, or 0 for all) to cap a run. The actor reads three profiles at a time and still saves the rows in your input order. For longer lists, split them across runs or call the run endpoint from your own code in a loop, and schedule a saved task to export Pinterest profiles every week for trend tracking.

***

### ✨ Features

Pinterest Profile Scraper fetches clean, structured profiles from Pinterest ⚡ at low cost 💸. It's ideal for influencer vetting, competitor tracking, lead enrichment and audience sizing. Use it as a Pinterest profile extractor for a handful of creators, or as a Pinterest follower count checker for a long list. Building a Pinterest account lookup into your own app? Call it with one username per request through the API.

It extracts, per profile:

- **Follower and following counts** – audience size and how many accounts the profile follows
- **Pins created and board count** – how much the account publishes
- **Bio and display name** – the text a visitor sees at the top of the profile
- **Linked website and Instagram** – where the account sends its audience
- **Account creation date and last pin saved** – as raw dates and ISO timestamps
- **Verification and business flags** – verified website, verified merchant and business account

⚡ Failed inputs never cost you: invalid, missing or blocked profiles come back as free rows with a clear error reason.

***

### Use cases 💡

- **Influencer marketer** — shortlist creators by follower count and pins created before outreach.
- **Competitor analyst** — track rival accounts' board counts and last pin saved over time.
- **Lead researcher** — pull linked websites and Instagram handles to enrich a contact list.
- **Brand-safety reviewer** — flag accounts by verified merchant, business and no-index flags.
- **AI engineer** — use it as a Pinterest bio scraper and feed bios into a RAG pipeline.

Building an AI agent? [Connect Pinterest Profile Scraper over MCP](#mcp-integration-for-ai-agents) and let it call the actor on its own.

***

### Why choose this actor?

- **Thirty profiles in five seconds.** A recorded run read 30 profiles in 5.0 seconds, and another returned 130 profiles plus one not-found row from 131 inputs in 21.6 seconds.
- **The full profile header, not just a count.** A recorded row for marthastewart came back with 1,867,753 followers, 105,785 pins created, 174 boards, a verified website and a creation date of 2011-09-15.
- **47 columns on every row.** Bare usernames, profile URLs, regional domains and board or tab URLs are all accepted, and every row has the same columns, so exports stay rectangular.

***

### ⬇️ Input

![Pinterest Profile Scraper input form with example values](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/u-pinterest-profile-input.webp)

The actor takes a list of Pinterest profiles as usernames or URLs. The profiles list is the only required field.

| Parameter | Required | Type | Description | Example value |
|---|---|---|---|---|
| `startUrls` | Yes | array of strings | One entry per profile: a bare username, a profile URL, a regional domain URL, or a board or tab URL under the profile (resolved to its parent profile). Search phrases are not supported. | `["marthastewart", "https://www.pinterest.com/nike/"]` |
| `maxProfiles` | No | integer | How many of the supplied profiles are processed, from 0 to 1,000. 0 = every profile supplied. No default; the form prefills 10. | `10` |
| `proxyConfiguration` | No | object | Default: a direct connection that switches to Apify datacenter and then residential proxy only if Pinterest blocks it. A proxy you select is used as-is. | `{"useApifyProxy": false}` |

Accepted profile formats:

- `marthastewart` or `@marthastewart`
- `https://www.pinterest.com/marthastewart/`
- `https://au.pinterest.com/marthastewart/`
- `https://www.pinterest.com/marthastewart/holiday-recipes/` (board URL, resolves to the profile)
- `https://www.pinterest.com/nike/_created/` (tab URL, resolves to the profile)

#### Free plan limits

Users on the Apify free plan can fetch up to 20 profiles per run (all profile URLs and usernames together) and 200 profiles per month. When the limit is reached, the run finishes successfully with a status message explaining the limit. Upgrade to any paid Apify plan to remove these limits.

#### Example input

```json
{
  "startUrls": [
    "marthastewart",
    "https://www.pinterest.com/nike/",
    "https://www.pinterest.com/candyw8119/"
  ],
  "maxProfiles": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

***

### ⬆️ Output

![Pinterest Profile Scraper output fields with example values](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/u-pinterest-profile-output.webp)

Every profile is one typed, normalized JSON item with the same 47 columns on every run; a field Pinterest leaves out is null, never a made-up value. An input that gives no profile adds one uncharged error row with the error reason and message set and every data column null. Export as JSON (default), CSV or Excel.

#### Example output

```json
[
  {
    "username": "marthastewart",
    "profileUrl": "https://www.pinterest.com/marthastewart/",
    "full_name": "Martha Stewart",
    "first_name": "Martha Stewart",
    "about": "Daily recipes, crafts, and inspiration from Martha Stewart.",
    "follower_count": 1867753,
    "following_count": 321,
    "pin_count": 105785,
    "board_count": 174,
    "interest_following_count": null,
    "website_url": "http://marthastewart.com",
    "domain_url": "marthastewart.com",
    "domain_verified": true,
    "is_primary_website_verified": true,
    "impressum_url": null,
    "instagram_data": {
      "has_invalid_instagram_auth": false,
      "url": "https://www.instagram.com/marthastewart",
      "username": "marthastewart"
    },
    "verified_identity": {
      "name": "marthastewart",
      "verified": true
    },
    "is_verified_merchant": false,
    "is_inspirational_merchant": false,
    "type": "user",
    "ads_only_profile_site": null,
    "is_partner": true,
    "partner": {
      "node_id": "UGFydG5lcjozMjA4ODM1MzUwMzQ0NTM1Mg==",
      "profile_place": null,
      "enable_profile_address": false
    },
    "is_private_profile": false,
    "is_ads_only_profile": false,
    "is_gco_account": false,
    "indexed": true,
    "seo_noindex_reason": null,
    "seo_title": "Martha Stewart (marthastewart) - Profile | Pinterest",
    "seo_description": "Martha Stewart | Daily recipes, crafts, and inspiration from Martha Stewart.",
    "seo_canonical_domain": "www.pinterest.com",
    "image_medium_url": "https://i.pinimg.com/75x75_RS/c8/11/4c/c8114c783347e27daef00e5d4a6ac4f3.jpg",
    "image_xlarge_url": "https://i.pinimg.com/280x280_RS/c8/11/4c/c8114c783347e27daef00e5d4a6ac4f3.jpg",
    "profile_cover_url": "https://i.pinimg.com/originals/69/b4/56/69b4567d322bb07f303768d7b2bada35.jpg",
    "profile_cover": {
      "source_id": null,
      "type": "profilecoversource",
      "video": null,
      "source": "image",
      "images": {
        "originals": {
          "url": "https://i.pinimg.com/originals/69/b4/56/69b4567d322bb07f303768d7b2bada35.jpg",
          "width": 1920,
          "height": 1080
        }
      }
    },
    "eligible_profile_tabs": [
      {
        "id": "16583658161652",
        "type": "profiletab",
        "tab_type": 1,
        "name": "Created",
        "is_default": false
      },
      {
        "id": "16583660189646",
        "type": "profiletab",
        "tab_type": 0,
        "name": "Saved",
        "is_default": true
      }
    ],
    "created_at": "Thu, 15 Sep 2011 07:56:17 +0000",
    "createdAtIso": "2011-09-15T07:56:17Z",
    "last_pin_save_time": "Wed, 11 Nov 2026 03:00:14 +0000",
    "lastPinSaveTimeIso": "2026-11-11T03:00:14Z",
    "id": "32088353503445352",
    "node_id": "VXNlcjozMjA4ODM1MzUwMzQ0NTM1Mg==",
    "input": "marthastewart",
    "dataSource": "user_resource_api",
    "errorReason": null,
    "errorMessage": null,
    "scrapedAt": "2026-11-12T10:38:39Z"
  },
  {
    "username": null,
    "profileUrl": null,
    "full_name": null,
    "first_name": null,
    "about": null,
    "follower_count": null,
    "following_count": null,
    "pin_count": null,
    "board_count": null,
    "interest_following_count": null,
    "website_url": null,
    "domain_url": null,
    "domain_verified": null,
    "is_primary_website_verified": null,
    "impressum_url": null,
    "instagram_data": null,
    "verified_identity": null,
    "is_verified_merchant": null,
    "is_inspirational_merchant": null,
    "type": null,
    "ads_only_profile_site": null,
    "is_partner": null,
    "partner": null,
    "is_private_profile": null,
    "is_ads_only_profile": null,
    "is_gco_account": null,
    "indexed": null,
    "seo_noindex_reason": null,
    "seo_title": null,
    "seo_description": null,
    "seo_canonical_domain": null,
    "image_medium_url": null,
    "image_xlarge_url": null,
    "profile_cover_url": null,
    "profile_cover": null,
    "eligible_profile_tabs": null,
    "created_at": null,
    "createdAtIso": null,
    "last_pin_save_time": null,
    "lastPinSaveTimeIso": null,
    "id": null,
    "node_id": null,
    "input": "not a user!!",
    "dataSource": null,
    "errorReason": "invalid_input",
    "errorMessage": "not a Pinterest username: 'not a user!!'",
    "scrapedAt": "2026-11-12T10:38:39Z"
  }
]
```

***

### How does it work?

Pinterest Profile Scraper reads the same public profile data that Pinterest shows to any logged-out visitor, with plain HTTP requests and no browser. For each username it asks Pinterest for the profile; if that answer is unavailable it reads the public profile page instead, and the data source column tells you which one answered. Each row is checked against the username you asked for, so it can never carry another account's numbers.

The run starts on a direct connection. If Pinterest blocks it, the actor retries and switches to Apify datacenter proxy and then residential proxy for the rest of the run. It returns only publicly visible data, needs no Pinterest account, and keeps the same 47-column schema even when Pinterest changes its site.

***

### How do you integrate Pinterest Profile Scraper into your stack?

It works with what you already use: the REST API from any language, MCP for AI agents, and no-code tools.

#### Using Pinterest Profile Scraper with the Apify API

```python
import requests

resp = requests.post(
    "https://api.apify.com/v2/acts/socialdataapi~pinterest-profile-scraper/run-sync-get-dataset-items",
    params={"token": "APIFY_TOKEN"},
    json={"startUrls": ["marthastewart", "nike"], "maxProfiles": 10},
)
for profile in resp.json():
    print(profile["username"], profile["follower_count"])
```

*Works in Go, Ruby, Node.js, cURL — any language that can make an HTTP request.*

#### MCP integration for AI agents

Add the actor to your AI client with one command:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/pinterest-profile-scraper"
```

This registers Pinterest Profile Scraper as a tool your agent can call directly. Ask it to look up a list of Pinterest accounts and it starts the run, waits and reads the profile rows back. It works in Claude Code, Cursor and Windsurf, and in any other client that speaks MCP over HTTP.

#### No-code tools (n8n, Make, LangChain)

**n8n:** add the Apify node and choose "Run an Actor" with `socialdataapi/pinterest-profile-scraper`, or use the HTTP Request node pointed at the run-sync endpoint with your token. Each profile comes back as one item for the next node.

**Make:** use the Apify app's "Run an Actor" module, then "Get Dataset Items" to send each profile to a Google Sheet, Airtable or CRM module.

**LangChain:** install `langchain-apify` and load `ApifyActorsTool("socialdataapi/pinterest-profile-scraper")` so your agent can fetch Pinterest profiles as a tool.

***

### Is it legal to scrape Pinterest data?

Scraping publicly available Pinterest data is generally legal, as long as you collect only what any visitor can see and use it responsibly. Pinterest Profile Scraper returns only public profile data — what any user sees without logging in. Profiles of individuals include names and bios, which count as personal data under the GDPR: collecting public data is generally permissible, but storing and using it must comply with the data-protection law that applies to you. Consult legal counsel if your use case involves bulk storage of personal data.

***

### Frequently asked questions

#### What fields does Pinterest Profile Scraper return?

It returns the follower count, following count, pins created, board count and bio of each profile, plus the linked website, Instagram, verification flags, images and dates. See [the data fields section](#what-data-can-i-extract-with-pinterest-profile-scraper) for all 47 columns.

#### Does Pinterest Profile Scraper require a Pinterest account or login?

No. Only public profile data is extracted, the same data Pinterest shows to logged-out visitors. No credentials are needed.

#### How fast does Pinterest Profile Scraper run?

A recorded run read 30 profiles in 5.0 seconds; 131 inputs took 21.6 seconds. Data is fetched live on every run, not cached.

#### What happens if a profile is private or doesn't exist?

A username that doesn't exist gives one free row with the error reason "not_found"; text that is not a username gives "invalid_input", and a profile Pinterest keeps blocking gives "blocked". A private profile still returns its public header as a normal row, with the private flag set. In code, keep rows where the error reason is null.

#### Can I scrape multiple Pinterest profiles at once?

Yes. Put many usernames or URLs in the profiles list, up to 1,000 per run with the maximum profiles setting; the actor reads three at a time and saves the rows in your input order.

#### Does Pinterest Profile Scraper work with Claude, ChatGPT, and other AI agent tools?

Yes — Pinterest Profile Scraper is available as an MCP tool. Register it in Claude Code, Cursor or Windsurf with:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/pinterest-profile-scraper"
```

Any agent that can call an HTTP endpoint can use the REST API directly.

#### Does Pinterest Profile Scraper return data in a format LLMs can use directly?

Yes. Every profile is typed, normalized JSON with consistent field names. No HTML parsing, no selectors. Pass it straight to an LLM, index it into a vector store, or feed it to an agent tool — no transformation step.

#### What happens when Pinterest changes its layout or updates its anti-bot system?

The actor is maintained. When Pinterest changes, the actor is updated, and your calls keep returning the same JSON schema with no changes on your end.

#### Can I use Pinterest Profile Scraper without managing proxies or browser infrastructure?

Yes. The actor starts on a direct connection and switches to Apify proxies by itself when Pinterest blocks it. You send one request and get structured JSON back. No proxy accounts, no headless browser setup, no maintenance.

#### Which Pinterest profile fields work best for AI training data and RAG indexing?

For RAG, use the text fields: the bio, display name, page title and page description. For training data, use the numeric and boolean fields: follower count, following count, pins created, board count and the verification flags. All fields are typed primitives — strings, integers, booleans — so this Pinterest profile data needs no normalization.

***

### Related scrapers

| Scraper | What it extracts |
|---|---|
| [Pinterest Followers Scraper](https://apify.com/socialdataapi/pinterest-followers-scraper) | The followers of public Pinterest profiles, with their follower counts. |
| [Pinterest Following Scraper](https://apify.com/socialdataapi/pinterest-following-scraper) | The accounts a Pinterest profile follows. |
| [Pinterest Search Scraper](https://apify.com/socialdataapi/pinterest-search-scraper) | Pins that match a Pinterest search. |
| [Pinterest Ads Scraper](https://apify.com/fastdataapi/pinterest-ads-scraper) | Ads from Pinterest's ad library. |
| [TikTok Profile Scraper](https://apify.com/socialdataapi/tiktok-profile-scraper) | Public TikTok profile details and counts. |
| [Twitter Profile Scraper](https://apify.com/socialdataapi/twitter-profile-scraper) | Public X (Twitter) profile details and counts. |

***

### Your feedback

Found a bug or missing a field? Let us know on this Actor's Issues tab in Apify Console. Every report is read, and fixes ship as new versions of the actor.

# Actor input Schema

## `startUrls` (type: `array`):

One entry per profile. Accepts a bare username (`marthastewart`), a profile URL (`https://www.pinterest.com/marthastewart/`), a regional domain (`https://au.pinterest.com/marthastewart/`), or any sub-path below the profile root — a board URL such as `https://www.pinterest.com/marthastewart/holiday-recipes/` and a tab URL such as `https://www.pinterest.com/nike/_created/` both resolve to the parent profile. Search phrases are NOT supported: this actor scrapes profiles you name, it does not discover them. Anything that is not a username produces an uncharged row with `errorReason: invalid_input`.

## `maxProfiles` (type: `integer`):

Cap on how many of the supplied profiles are processed (one row per profile). Example: 40 URLs with maxProfiles=10 scrapes the first 10. Set 0 to scrape every profile supplied. Free plan: up to 20 profiles per run (all profile URLs and usernames together) and 200 per month; paid plans have no limit.

## `proxyConfiguration` (type: `object`):

Proxy for every request. With no proxy selected the run starts on a direct connection and, only if Pinterest blocks it, moves to Apify datacenter and then residential proxy for the rest of the run. A proxy you select here is used as-is.

## Actor input object example

```json
{
  "startUrls": [
    "marthastewart",
    "nike"
  ],
  "maxProfiles": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

All scraped items in the Actor's 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 = {
    "startUrls": [
        "marthastewart",
        "nike"
    ],
    "maxProfiles": 10,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialdataapi/pinterest-profile-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 = {
    "startUrls": [
        "marthastewart",
        "nike",
    ],
    "maxProfiles": 10,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("socialdataapi/pinterest-profile-scraper").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 '{
  "startUrls": [
    "marthastewart",
    "nike"
  ],
  "maxProfiles": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call socialdataapi/pinterest-profile-scraper --silent --output-dataset

```

## MCP server setup

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

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/JmPvBwsOKTF6qwrgL/builds/afJ1KzruK3gebVSgh/openapi.json
