# Pinterest 分区内容 API (pinterest.section_pins)

- Canonical page: [https://everyinfra.com/pinterest-api/section_pins](https://everyinfra.com/pinterest-api/section_pins?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "pinterest", "action": "section_pins", "params": {...}}
- Price: $0.016 per call ($16 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 25 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| section_id | not declared | yes | not declared | board_sections 每行的 id。 |
| page_token | not declared | no | not declared | 翻页令牌：第一页不传；把上一页回包里的 next_page_token 原样传回拿下一页，其余参数和第一页一样。每页算一次调用。 |

## 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）。 |
| rank | 这一行在榜单或结果里的名次，从 1 开始；榜单口径（按什么排、统计多久）以能力说明为准。 |
| author_follower_count | 作者粉丝数。null 表示不公开。 |
| image_urls | 图片链接数组，按平台展示顺序；没有图片时不出现这个字段。 |
| image_count | 这条 Pin 的图片张数。 |
| width | 主图宽度，单位像素。 |
| height | 主图高度，单位像素。 |
| video_hls_url | 视频的 HLS 播放地址（m3u8）；不是视频 Pin 时没有。 |
| thumbnail_url | 缩略图链接，分辨率低于 image_url。 |
| duration_sec | 视频时长，单位秒；不是视频 Pin 时没有。 |
| duration_seconds | 时长，单位秒。非视频/音频内容为 null。 |
| save_count | 被保存（收藏）的次数；和 repin_count 不是同一个数。 |
| reactions | 按表情类型分开的回应数，键是 Pinterest 的表情类型编号；合计就是 reaction_count。 |
| author_id | 作者在原平台的唯一 ID。 |
| author_avatar_url | 作者头像图片链接（多数平台带签名、会过期）。 |
| author_url | 作者在原平台的主页链接。 |
| author_is_verified | 发布者是否认证账号。 |
| hashtags | 正文里的话题标签数组，按出现顺序；没有时不出现这个字段。 |
| tags | 标签数组。无标签时为空数组，不是 null。 |
| is_ad | 是否广告 Pin。 |
| is_repost | 是否转存来的 Pin（不是作者原创上传）。 |
| board_id | 所在画板的 ID。 |
| board_url | 所在画板的链接。 |
| thread_id | 这条 Pin 的评论串 ID。 |
| is_comments_disabled | 是否关闭了评论。 |
| link_title | 外部链接页面的标题。 |
| link_site_name | 外部链接所在网站的名称。 |
| has_shop_product | 是否挂了可购买的商品。 |
| product_id | 挂的商品 ID。 |
| product_name | 挂的商品名称。 |
| product_url | 挂的商品链接。 |
| product_rating | 挂的商品评分。 |
| product_review_count | 挂的商品评价数。 |
| is_in_stock | 挂的商品是否有货。 |
| tried_count | 「试过了」（Tried it）的次数。 |
| creator_id | 原创作者的 ID（转存来的 Pin 才有，和发布者不是同一人）。 |
| creator_username | 原创作者的用户名。 |
| creator_name | 原创作者的昵称。 |
| collected_at | 这条数据的抓取时刻（ISO 8601，UTC）。 |

## 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": "section_pins",
  "params": {
    "section_id": "4029117239085725504"
  }
}'
```

```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": "section_pins",
        "params": {
            "section_id": "4029117239085725504",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "pinterest",
  "action": "section_pins",
  "results": [
    {
      "id": …,
      "url": …,
      "title": …,
      "text": …,
      "image_url": …,
      "video_url": …,
      "media_type": …,
      "external_link": …,
      "source_domain": …,
      "reaction_count": …,
      "repin_count": …,
      "comment_count": …,
      "share_count": …,
      "dominant_color": …,
      "alt_text": …,
      "posted_at": …,
      "author_username": …,
      "author_name": …,
      "board_name": …,
      "price": …,
      "platform": …,
      "rank": …,
      "author_follower_count": …,
      "image_urls": …,
      "image_count": …,
      "width": …,
      "height": …,
      "video_hls_url": …,
      "thumbnail_url": …,
      "duration_sec": …,
      "duration_seconds": …,
      "save_count": …,
      "reactions": …,
      "author_id": …,
      "author_avatar_url": …,
      "author_url": …,
      "author_is_verified": …,
      "hashtags": …,
      "tags": …,
      "is_ad": …,
      "is_repost": …,
      "board_id": …,
      "board_url": …,
      "thread_id": …,
      "is_comments_disabled": …,
      "link_title": …,
      "link_site_name": …,
      "has_shop_product": …,
      "product_id": …,
      "product_name": …,
      "product_url": …,
      "product_rating": …,
      "product_review_count": …,
      "is_in_stock": …,
      "tried_count": …,
      "creator_id": …,
      "creator_username": …,
      "creator_name": …,
      "collected_at": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## 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
