# Pinterest Trending product categories API (pinterest.trending_product_categories)

- Canonical page: [https://everyinfra.com/en/pinterest-api/trending_product_categories](https://everyinfra.com/en/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 | Age groups, comma-separated: 18-24, 25-34, 35-44, 45-49, 50-54, 55-64, 65+. Leave it out for all ages. |
| gender | not declared | no | not declared | Genders, comma-separated: female, male, unspecified. Leave it out for all genders. |
| region | enum: ca / gb+ie / us | no | not declared | Region; US when left out. One of US, CA, GB+IE. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| category_id | Product category ID; uses the same IDs as `id` in `product_categories`. |
| category_name | Product category name. |
| parent_category_ids | IDs of the parent categories, from the top down. |
| parent_category_names | Names of the parent categories, from the top down. |
| click_growth_percent | Month-over-month growth in outbound clicks, in percent: 114 means 114% more than the previous month. The list is ranked by it. |
| save_growth_percent | Month-over-month growth in saves, in percent. |
| engagement_growth_percent | Month-over-month growth in engagement, in percent. |
| related_keywords | Related search terms. |
| date | The latest day the platform's data covers (YYYY-MM-DD), usually a few days before today. |
| rank | Position in this response, from 1 (search, user_posts, boards, board_pins). |
| collected_at | Time this record was collected (ISO 8601, UTC). |
| platform | Source platform identifier, the same as platform in the request (for example 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
