# Pinterest API (ScrapeIO)

5 endpoints for public Pinterest data. Same response format and field names as every other platform.

## Basics

- Base URL: `https://scrapeio.com`
- Auth: send your key in the `x-api-key` header. Get a key at https://scrapeio.com/login (100 free credits, no card).
- Every endpoint is a GET with query parameters and returns JSON:
  `{ "success": true, "cached": false, "credits_used": 1, "credits_remaining": 99, "data": { ... } }`
- Field names are the same on every platform (`handle`, `followers`, `plays`, `likes`, `comments`, `created_at`).
- Lists return `data.items`, `data.cursor` and `data.has_more`. Pass `cursor` back to get the next page.
- Each endpoint has one listed price. Cached repeats, failed calls, private and not-found answers cost 0.
- Limit: 300 requests a minute per key.

## Errors

| Status | Meaning | Charged |
| --- | --- | --- |
| 200 | Success | Yes, unless cached |
| 400 | A parameter is missing or wrong | No |
| 401 | The key is missing or invalid | No |
| 402 | Not enough credits | No |
| 403 | The account or post is private | No |
| 404 | Not found on the platform | No |
| 429 | More than 300 requests a minute | No |
| 502 | Every source is down; retry shortly | No |

### GET /v1/pinterest/board

A board's details and its latest pins, with saves. Price: 1 credit. MCP tool: `pinterest_board`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | Board URL. |

```bash
curl "https://scrapeio.com/v1/pinterest/board?url=..." -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/pinterest/pin

One pin: image, description, outbound link, saves, board and author. Price: 1 credit. MCP tool: `pinterest_pin`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | Pin URL. |

```bash
curl "https://scrapeio.com/v1/pinterest/pin?url=..." -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/pinterest/search

Search Price: 5 credits. MCP tool: `pinterest_search`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | Search query |
| `trim` | boolean | no | Set to true for a trimmed down version of the response |
| `cursor` | string | no | Cursor |

```bash
curl "https://scrapeio.com/v1/pinterest/search?query=coffee" -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/pinterest/topic

Topic Price: 5 credits. MCP tool: `pinterest_topic`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | The Pinterest ideas URL of the topic to get. |

```bash
curl "https://scrapeio.com/v1/pinterest/topic?url=..." -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/pinterest/user/boards

User Boards Price: 5 credits. MCP tool: `pinterest_user_boards`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `handle` | string | yes | The username of the user to get boards for. |
| `trim` | boolean | no | Set to true for a trimmed down version of the response |

```bash
curl "https://scrapeio.com/v1/pinterest/user/boards?handle=nike" -H "x-api-key: $SCRAPEIO_API_KEY"
```
