# Pinterest Related keyword trends API (pinterest.related_keyword_trends)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | An English keyword (case-insensitive, up to 100 characters). Returns the related searches (usually 5), each with its weekly trend; the keyword's own trend is not included. |
| 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: ar / au+nz / br / ca / co / cr+do+ec+gt+pe / cy+cz+gr+hu+mt+pl+ro+sk / de / de+at+ch / eg / es / fr / gb+ie / id / in / it / it+es+pt+gr+mt / kr / mx / mx+ar+co+cl / my / nl+be+lu / ph / pl+ro+hu+sk+cz / sa / se+dk+fi+no / th / tr / us | no | not declared | Region; US when left out. One of US, CA, GB+IE, DE, DE+AT+CH, FR, IT, ES, IT+ES+PT+GR+MT, SE+DK+FI+NO, NL+BE+LU, PL+RO+HU+SK+CZ, CY+CZ+GR+HU+MT+PL+RO+SK, MX, AR, CO, MX+AR+CO+CL, CR+DO+EC+GT+PE, BR, AU+NZ, KR, ID, IN, MY, PH, TH, SA, EG, TR. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| keyword | The keyword: in `search_suggest`, the suggested search (the account name on account rows); in `search_refinements` and `keyword_audience`, the keyword asked about; in `related_keyword_trends`, a related search. |
| has_prediction | Whether Pinterest gives a forecast for this search (if so, `weekly_values` ends with 13 forecast weeks). |
| weekly_values | Relative weekly interest over the past year, each point with `date`, `value` (0 to 100, scaled to this search's own peak, so use it only for the trend) and `is_predicted` (true for Pinterest's forecast). |
| 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": "related_keyword_trends",
  "params": {
    "keyword": "home decor"
  }
}'
```

```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": "related_keyword_trends",
        "params": {
            "keyword": "home decor",
        },
    },
    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": "related_keyword_trends",
  "results": [
    {
      "keyword": …,
      "has_prediction": …,
      "weekly_values": …,
      "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
