# Pinterest 画板列表 API (pinterest.boards)

- Canonical page: https://everyinfra.com/pinterest-api/boards
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "pinterest", "action": "boards", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 50 per call
- Mode: sync; add "mode": "async" for slow tasks

Pinterest 画板列表按 `username` 列出一个用户名下的画板，每个画板一行：名称、链接、简介、Pin 数、分区数、粉丝数、是否协作画板、可见性和创建时间。它回答「这个人整理了哪些主题、哪个画板最大」，适合盘点一个创作者的内容版图，或者从用户出发找值得跟踪的画板。

`username` 填用户短名，可带 @，这个字段不解析完整主页链接。每一行的字段和画板详情相同，`is_collaborative`、`privacy`、`pin_count` 都在，做概览和筛选时直接用列表就行；单看某一个画板时，把它的链接交给画板详情那一页。

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=pinterest&action=boards

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | profile / user_posts / boards 的 Pinterest 用户短名，可带开头的 @；此字段不解析完整主页 URL。 |
| limit | integer (1–50) | no | 20 | 这次调用最多返回的条数，整数，1–50；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| url | 该记录在原平台上的可访问链接。 |
| description | 简介或描述，通常比 text 短。 |
| pin_count | Pin 数。 |
| section_count | 画板分区数。 |
| follower_count | 粉丝数。null 表示不公开，不等于 0。 |
| cover_image_url | 封面图。 |
| is_collaborative | 是否为多人协作画板。 |
| privacy | 可见性设置。 |
| owner_username | 所有者用户名。 |
| owner_name | 所有者昵称。 |
| created_at | 创建时间，格式同 posted_at。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "pinterest",
  "action": "boards",
  "params": {
    "username": "pinterest"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "pinterest",
        "action": "boards",
        "params": {
            "username": "pinterest",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "pinterest",
  "action": "boards",
  "results": [
    {
      "id": "•••",
      "name": "Gifts that embrace the art of play",
      "url": "https://www.pinterest.com/pinterest/gifts-that-embrace-the-art-of-play/",
      "description": "From the early months to beyond, embrace quality time, discovery and learning with these whimsical gift ideas.",
      "pin_count": 34,
      "section_count": 0,
      "follower_count": 4229833,
      "cover_image_url": "https://i.pinimg.com/474x/b8/41/cf/b841cfd55a52b992ded9a30a331e2322.jpg",
      "is_collaborative": false,
      "privacy": "public",
      "owner_username": "pinterest",
      "owner_name": "Pinterest",
      "created_at": "2026-09-26T09:19:41+00:00",
      "platform": "pinterest"
    },
    {
      "id": "•••",
      "name": "Festive decor ideas for your first home",
      "url": "https://www.pinterest.com/pinterest/festive-decor-ideas-for-your-first-home/",
      "description": "Celebrate new traditions and gather inspiration with these fresh ideas.",
      "pin_count": 62,
      "section_count": 0,
      "follower_count": 4229833,
      "cover_image_url": "https://i.pinimg.com/474x/ed/be/13/edbe13b7965ae2688da4352df1d7aa48.jpg",
      "is_collaborative": false,
      "privacy": "public",
      "owner_username": "pinterest",
      "owner_name": "Pinterest",
      "created_at": "2026-09-25T23:04:03+00:00",
      "platform": "pinterest"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `username` 怎么填？

填 Pinterest 的用户短名，开头可以带 @，示例是 pinterest。画板链接 /用户名/画板名/ 的第一段就是用户名。不要填完整的主页链接，这个字段不会去解析它。

### 一个用户的画板很多时能读完吗？

单次最多 50 个，默认 20 个，这一项没有翻页参数，一次调用最多拿到 50 个画板。用户的画板数量超过这个数时，拿到的只是其中一批，不要默认已经读完。

### 汇总一个用户有几个画板时，能把 `section_count` 算进去吗？

不能。`section_count` 数的是一个画板内部有几个分区，分区是 Pinterest 在同一画板里整理 Pin 的方式，不是另外的画板。一个用户有几个画板，要数列表返回的行。

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=pinterest
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
