# Pinterest 话题详情 API (pinterest.topic_info)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| topic_id | not declared | yes | not declared | 话题编号（一串数字），或话题页链接 https://www.pinterest.com/ideas/<名字>/<编号>/。编号可从 topic_categories、trend_reports 的 topic_ids、topic_info 的相关话题里拿。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| url | 该记录在原平台上的可访问链接。 |
| description | 简介或描述，通常比 text 短。 |
| follower_count | 粉丝数。null 表示不公开，不等于 0。 |
| search_count | 平台给的站内搜索量；口径平台没公开，只适合拿来比大小。 |
| is_keyword_page | 是否关键词页（平台按搜索词生成的话题页）。 |
| related_topics | 相关话题，每项有 id、name、url；id 能再拿去查 topic_info。 |
| subtopics | 细分方向，每项有 id、name、url。 |
| trending_topics | 这个话题下的热门关键词页，每项有 id、name、url。 |
| trending_searches | 这个话题下的热搜词。 |
| related_boards | 相关画板，每项有 id、name、url、pin_count、cover_url。 |
| breadcrumbs | 这个话题的上级路径，每项有 id、name、url。 |
| updated_at | 话题页最近更新的时间。 |
| 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": "topic_info",
  "params": {
    "topic_id": "918530398158"
  }
}'
```

```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": "topic_info",
        "params": {
            "topic_id": "918530398158",
        },
    },
    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": "topic_info",
  "results": {
    "id": …,
    "name": …,
    "url": …,
    "description": …,
    "follower_count": …,
    "search_count": …,
    "is_keyword_page": …,
    "related_topics": …,
    "subtopics": …,
    "trending_topics": …,
    "trending_searches": …,
    "related_boards": …,
    "breadcrumbs": …,
    "updated_at": …,
    "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
