# Pinterest Search refinements API (pinterest.search_refinements)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | A search phrase, up to 100 characters. Returns the refinements Pinterest shows for it. |
| scope | enum: pins / products | no | not declared | `pins` (default) for refinements of a Pin search, or `products` for refinements of a product search, which also return brands, retailers and a price range. |

## 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. |
| scope | Which search the refinements are for: `pins` or `products`. |
| related_searches | Related refinement searches (usually 25), each with `label`, `keyword` and `image_url`. Pass a `keyword` to `search` or `product_search` to get those results. |
| guides | Grouped guides, such as Style with Modern or Vintage: each group has `name` and `options` (each with `label` and `keyword`). |
| brands | Brands (only with `scope=products`), each with `brand_id`, `name` and `image_url`. |
| retailers | Retailers (only with `scope=products`), each with `domain`, `name`, `image_url` and `is_verified`. A `domain` can be passed as the `retailer` of `product_search`. |
| price_range | Price range (only with `scope=products`): `min`, `max`, `suggested_max` and `currency`. |
| 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": "search_refinements",
  "params": {
    "keyword": "sofa"
  }
}'
```

```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": "search_refinements",
        "params": {
            "keyword": "sofa",
        },
    },
    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": "search_refinements",
  "results": {
    "keyword": …,
    "scope": …,
    "related_searches": …,
    "guides": …,
    "brands": …,
    "retailers": …,
    "price_range": …,
    "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
