# Pinterest 热门商品类目 API (pinterest.trending_product_categories)

- Canonical page: [https://everyinfra.com/pinterest-api/trending_product_categories](https://everyinfra.com/pinterest-api/trending_product_categories?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "pinterest", "action": "trending_product_categories", "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 100 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=trending_product_categories

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| age | not declared | no | not declared | 年龄段，可多选、用逗号隔开：18-24、25-34、35-44、45-49、50-54、55-64、65+。不传是不分年龄。 |
| gender | not declared | no | not declared | 性别，可多选、用逗号隔开：female、male、unspecified。不传是不分性别。 |
| region | enum: ca / gb+ie / us | no | not declared | 地区，不传是 US（美国）。可选：US、CA、GB+IE。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| category_id | 商品类目编号，和 product_categories 的 id 是一套。 |
| category_name | 商品类目的名字。 |
| parent_category_ids | 各上级类目的编号，从上到下。 |
| parent_category_names | 各上级类目的名字，从上到下。 |
| click_growth_percent | 外链点击的环比增长百分比：114 就是比上个月多 114%。榜单按它排。 |
| save_growth_percent | 保存的环比增长百分比。 |
| engagement_growth_percent | 互动的环比增长百分比。 |
| related_keywords | 相关搜索词。 |
| date | 平台数据最新到哪天（YYYY-MM-DD），一般比今天早几天。 |
| 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": "trending_product_categories",
  "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": "trending_product_categories",
        "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": "trending_product_categories",
  "results": [
    {
      "category_id": …,
      "category_name": …,
      "parent_category_ids": …,
      "parent_category_names": …,
      "click_growth_percent": …,
      "save_growth_percent": …,
      "engagement_growth_percent": …,
      "related_keywords": …,
      "date": …,
      "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
