# Pinterest 趋势报告 API (pinterest.trend_reports)

- Canonical page: [https://everyinfra.com/pinterest-api/trend_reports](https://everyinfra.com/pinterest-api/trend_reports?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "pinterest", "action": "trend_reports", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of 10 per target, no next_page_token (to read further, page one target at a time with the single-target action; limit is ignored)
- 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=trend_reports

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| region | enum: ca / gb+ie / us | no | not declared | 地区，不传是 US（美国）。可选：US、CA、GB+IE。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| description | 简介或描述，通常比 text 短。 |
| start_date | 开始的日子（YYYY-MM-DD）：trend_reports 里是报告时间段的第一天，ads、ad_detail 里是投放开始的那天。 |
| end_date | 结束的日子（YYYY-MM-DD）：trend_reports 里是报告时间段的最后一天，ads、ad_detail 里是投放结束的那天。 |
| keywords | 所选地区的关键词。 |
| keywords_by_region | 各地区的关键词：键是地区（US、CA、GB+IE），值是词的列表。 |
| topic_ids | 相关话题的编号，能拿去查 topic_info、topic_pins。 |
| pin_ids | 配图图钉的数字编号，能拿去查 pin。 |
| image_urls | 图片链接数组，按平台展示顺序；没有图片时不出现这个字段。 |
| rank | 这一行在榜单或结果里的名次，从 1 开始；榜单口径（按什么排、统计多久）以能力说明为准。 |
| 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": "trend_reports",
  "params": {}
}'
```

```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": "trend_reports",
        "params": {},
    },
    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": "trend_reports",
  "results": [
    {
      "id": …,
      "title": …,
      "description": …,
      "start_date": …,
      "end_date": …,
      "keywords": …,
      "keywords_by_region": …,
      "topic_ids": …,
      "pin_ids": …,
      "image_urls": …,
      "rank": …,
      "collected_at": …,
      "platform": …
    }
  ],
  "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
