# Pinterest Search suggestions API (pinterest.search_suggest)

- Canonical page: [https://everyinfra.com/en/pinterest-api/search_suggest](https://everyinfra.com/en/pinterest-api/search_suggest?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "pinterest", "action": "search_suggest", "params": {...}}
- Price: $0.002389 per call ($2.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of 12 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=search_suggest

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | What you type into the search box, up to 100 characters. Returns about 12 suggested searches and accounts, as the search box shows them. |

## 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. |
| row_type | What the row is: in `search_suggest`, `query` (a suggested search) or `user` (a suggested account); in `comments` and `comment_replies`, `comment` (a regular comment) or `tried_it` (a “Tried it” post with photos). |
| rank | Position in this response, from 1 (search, user_posts, boards, board_pins). |
| user_id | User's unique ID on the platform. |
| username | Username (@handle). |
| name | Name of the object itself, for account, product and business capabilities. |
| avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
| url | Link to the record on the platform. |
| 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_suggest",
  "params": {
    "keyword": "christmas"
  }
}'
```

```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_suggest",
        "params": {
            "keyword": "christmas",
        },
    },
    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_suggest",
  "results": [
    {
      "keyword": …,
      "row_type": …,
      "rank": …,
      "user_id": …,
      "username": …,
      "name": …,
      "avatar_url": …,
      "url": …,
      "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
