# Pinterest API

> Returns Pinterest pins, user profiles and pins, boards and board details, including several pins by id.

Category: Social & Video. Region: global. 6 endpoints at `https://api.hoshime.com/v1/pinterest/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/pinterest
## GET /v1/pinterest/pin

One pin: its image, video, description, board and pinner.

Scope: `social:read` · Units: 1 · Cached: 10 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Pin id or pinterest.com pin URL. (e.g. https://www.pinterest.com/pin/99360735500167749/) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `board` (BoardRef), `board.id` (string), `board.name` (string), `board.url` (string), `commentCount` (integer (int64)), `createdAt` (string), `domain` (string), `dominantColor` (string), `id` (string), `image` (Image), `image.height` (any), `image.url` (string), `image.width` (any), `isVideo` (boolean), `likeCount` (integer (int64)), `link` (string), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `shareCount` (integer (int64)), `text` (string), `url` (string), `videoUrl` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/pinterest/pin?id=https%3A%2F%2Fwww.pinterest.com%2Fpin%2F99360735500167749%2F" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pinterest/userPins

The pins of one user's profile, as Pinterest's profile widget shows them: the first 50, with no further page.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | yes | Pinterest username or profile URL. (e.g. pinterest) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `board` (BoardRef), `board.id` (string), `board.name` (string), `board.url` (string), `commentCount` (integer (int64)), `createdAt` (string), `domain` (string), `dominantColor` (string), `id` (string), `image` (Image), `image.height` (any), `image.url` (string), `image.width` (any), `isVideo` (boolean), `likeCount` (integer (int64)), `link` (string), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `shareCount` (integer (int64)), `text` (string), `url` (string), `videoUrl` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/pinterest/userPins?username=pinterest" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pinterest/board

The pins on one board, as Pinterest's board widget shows them: the first 50, with no further page.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `board` | string | yes | Board as user/board, or its pinterest.com URL. (e.g. pinterest/official-news) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `board` (BoardRef), `board.id` (string), `board.name` (string), `board.url` (string), `commentCount` (integer (int64)), `createdAt` (string), `domain` (string), `dominantColor` (string), `id` (string), `image` (Image), `image.height` (any), `image.url` (string), `image.width` (any), `isVideo` (boolean), `likeCount` (integer (int64)), `link` (string), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `shareCount` (integer (int64)), `text` (string), `url` (string), `videoUrl` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/pinterest/board?board=pinterest%2Fofficial-news" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pinterest/boardInfo

Name, description, pin and follower counts and owner of one board.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `board` | string | yes | Board as user/board, or its pinterest.com URL. (e.g. pinterest/official-news) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `description` (string), `followerCount` (integer (int64)), `id` (string), `image` (string), `name` (string), `owner` (Author), `owner.avatarUrl` (string), `owner.id` (string), `owner.name` (string), `owner.url` (string), `owner.username` (string), `pinCount` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/pinterest/boardInfo?board=pinterest%2Fofficial-news" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pinterest/userInfo

Profile of one Pinterest user: name, about, pin and follower counts and avatar.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | yes | Pinterest username or profile URL. (e.g. pinterest) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `about` (string), `avatar` (string), `followerCount` (integer (int64)), `fullName` (string), `id` (string), `pinCount` (integer (int64)), `url` (string), `username` (string)

```bash
curl "https://api.hoshime.com/v1/pinterest/userInfo?username=pinterest" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pinterest/pins

Several pins at once by their ids, up to 25. Ids Pinterest does not know are left out.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `ids` | string | yes | Comma-separated pin ids, up to 25. (e.g. 99360735500167749,424605071136961057) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `board` (BoardRef), `board.id` (string), `board.name` (string), `board.url` (string), `commentCount` (integer (int64)), `createdAt` (string), `domain` (string), `dominantColor` (string), `id` (string), `image` (Image), `image.height` (any), `image.url` (string), `image.width` (any), `isVideo` (boolean), `likeCount` (integer (int64)), `link` (string), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `shareCount` (integer (int64)), `text` (string), `url` (string), `videoUrl` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/pinterest/pins?ids=99360735500167749%2C424605071136961057" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
