# Pinterest 画板内容 API (pinterest.board_pins)

- Canonical page: https://everyinfra.com/pinterest-api/board_pins
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "pinterest", "action": "board_pins", "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 画板内容按 `board_id` 列出一个画板里收藏的 Pin，每条带标题、描述、图片或视频、外部链接和来源域名、转存数、表情回应数、评论数、主色调、作者和发布时间。它回答「这个画板收了哪些内容、从哪些网站收来」，适合品牌检查自己的画板，趋势研究者分析灵感板，商家观察画板集中了哪些商品和网站。

`board_id` 是画板网址里的「用户名/画板名」，例如 pinterest/official-news。汇总各行的 `source_domain`，能看出画板的内容来自哪些网站；`dominant_color` 是十六进制主色，汇总后就是画板的配色。评论数和分享数为 null 表示没有公开，不等于 0。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| board_id | not declared | yes | not declared | board_pins 的画板标识：画板网址 pinterest.com/ 后面的「用户名/画板名」，如 pinterest/official-news；boards 结果里每个画板的 url 去掉域名就是这一段。 |
| limit | integer (1–50) | no | 20 | 这次调用最多返回的条数，整数，1–50；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| video_url | 视频链接。 |
| media_type | 媒体类型。 |
| external_link | Pin 指向的外部链接。 |
| source_domain | 内容来源域名。 |
| reaction_count | 表情回应数。 |
| repin_count | 被转存(repin)次数。Pinterest 的核心传播指标。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| share_count | 分享/转发数。null 表示不公开，不等于 0。 |
| dominant_color | 主色调（十六进制），做视觉分析可直接用。 |
| alt_text | 图片替代文本。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| author_username | 作者用户名（@handle），通常可用于拼 URL。 |
| author_name | 作者昵称（显示名）。 |
| board_name | 画板名称。Pinterest 的收藏单位是画板(board)。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| 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": "board_pins",
  "params": {
    "board_id": "pinterest/official-news"
  }
}'
```

```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": "board_pins",
        "params": {
            "board_id": "pinterest/official-news",
        },
    },
    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": "board_pins",
  "results": [
    {
      "id": "•••",
      "url": "https://www.pinterest.com/pin/424605071112831904/",
      "title": "",
      "text": "Introducing the Workshop: A creative studio for bringing Pinterest ideas to life",
      "image_url": "https://i.pinimg.com/originals/32/68/65/3268658fe7973644e6e6e5be15266517.jpg",
      "media_type": "image",
      "external_link": "https://blog.pinterest.com/en/introducing-workshop-creative-studio-bringing-pinterest-ideas-life",
      "source_domain": "blog.pinterest.com",
      "repin_count": 62,
      "dominant_color": "#c4a285",
      "alt_text": "a room filled with lots of yellow stools next to a table and shelves on the wall",
      "author_username": "•••",
      "author_name": "•••",
      "board_name": "Official news",
      "platform": "pinterest"
    },
    {
      "id": "•••",
      "url": "https://www.pinterest.com/pin/424605071093691246/",
      "title": "",
      "text": "More goodies for the iOS app, via the Official Pinterest Blog",
      "image_url": "https://i.pinimg.com/originals/ae/cb/6f/aecb6f2fa70649bc9625e061b1f53ed2.jpg",
      "media_type": "image",
      "external_link": "http://blog.pinterest.com/post/101709303399/more-goodies-for-the-ios-app",
      "source_domain": "blog.pinterest.com",
      "repin_count": 31,
      "dominant_color": "#f7f6f6",
      "alt_text": "two iphones with food on them, one showing blueberry pancakes and the other showing chocolate chip cookies",
      "author_username": "•••",
      "author_name": "•••",
      "board_name": "Official news",
      "platform": "pinterest"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `board_id` 从哪里找？

看画板的网址：pinterest.com/ 后面的「用户名/画板名」就是 `board_id`，例如 pinterest/official-news。要列出一个账号的全部画板，先用 Pinterest 画板列表按用户短名查询，再把每个画板链接去掉域名；只写画板的显示名称不行。

### 怎么看一个画板的内容来自哪些网站？

按 `source_domain` 给各行分组，它是每条 Pin 的内容来源域名；`external_link` 是 Pin 指向的具体外部页面。在购物或灵感类画板上，这样能看出整理者最常从哪些零售商和媒体取材。

### `repin_count` 和 `reaction_count` 有什么区别？

`repin_count` 是 Pin 被转存（repin）的次数，是 Pinterest 的核心传播指标；`reaction_count` 是表情回应数。转存多而评论少的 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
