# Pinterest Keyword audience API (pinterest.keyword_audience)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | An English keyword (case-insensitive, up to 100 characters). Returns the age and gender split of people who searched it over the past year. A keyword too rare to have data returns an empty result and is not charged. |
| 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. |
| age_distribution | Share by age group in percent, keyed by 18-24, 25-34, 35-44, 45-49, 50-54, 55-64 and 65+. |
| gender_distribution | Share by gender in percent, keyed by female, male and unspecified. |
| date | The latest day the platform's data covers (YYYY-MM-DD), usually a few days before today. |
| period_days | Number of days the shares cover (365 means the past year). |
| 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": "keyword_audience",
  "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": "keyword_audience",
        "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": "keyword_audience",
  "results": {
    "keyword": …,
    "age_distribution": …,
    "gender_distribution": …,
    "date": …,
    "period_days": …,
    "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
