# Pinterest 单条 Pin API (pinterest.pin)

- Canonical page: https://everyinfra.com/pinterest-api/pin
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "pinterest", "action": "pin", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- 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=pin

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | pin 使用含 /pin/数字ID/ 的具体 Pin 链接；board_detail 使用 /用户名/画板名/ 的画板链接，后者也接受相对路径。不能把画板 URL 当成 Pin。 |

## 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": "pin",
  "params": {
    "url": "https://www.pinterest.com/pin/140806234732511/"
  }
}'
```

```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": "pin",
        "params": {
            "url": "https://www.pinterest.com/pin/140806234732511/",
        },
    },
    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. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "pinterest",
  "action": "pin",
  "results": {
    "id": "140806234732511",
    "url": "https://www.pinterest.com/pin/140806234732511/",
    "title": "",
    "text": " ",
    "image_url": "https://i.pinimg.com/originals/ea/82/df/ea82df375393b9980685116e440c1dc5.jpg",
    "media_type": "image",
    "source_domain": "Uploaded by user",
    "reaction_count": 484,
    "repin_count": 3170,
    "comment_count": 0,
    "share_count": 374,
    "dominant_color": "#5f4832",
    "posted_at": "2025-12-31T15:05:40+00:00",
    "author_username": "•••",
    "author_name": "•••",
    "board_name": "Bougie Morning",
    "platform": "pinterest"
  },
  "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
