# Pinterest 图钉互动数 API (pinterest.pin_stats)

- Canonical page: [https://everyinfra.com/pinterest-api/pin_stats](https://everyinfra.com/pinterest-api/pin_stats?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "pinterest", "action": "pin_stats", "params": {...}}
- Price: $0.000556 per call ($0.56 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_stats

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| thread_id | not declared | yes | not declared | 图钉的 thread_id：搜索、详情、画板图钉等图钉行都带（e1_ 编号的行也带）。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| thread_id | 这条 Pin 的评论串 ID。 |
| save_count | 被保存（收藏）的次数；和 repin_count 不是同一个数。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| tried_count | 「试过了」（Tried it）的次数。 |
| tried_photo_count | 带照片的「试过了」帖子数。 |
| tried_video_count | 带视频的「试过了」帖子数。 |
| external_link | Pin 指向的外部链接。 |
| collected_at | 这条数据的抓取时刻（ISO 8601，UTC）。 |
| 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_stats",
  "params": {
    "thread_id": "4044782853829353152"
  }
}'
```

```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_stats",
        "params": {
            "thread_id": "4044782853829353152",
        },
    },
    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": "pin_stats",
  "results": {
    "thread_id": …,
    "save_count": …,
    "comment_count": …,
    "tried_count": …,
    "tried_photo_count": …,
    "tried_video_count": …,
    "external_link": …,
    "collected_at": …,
    "platform": …
  },
  "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
