# Pinterest 搜索联想词 API (pinterest.search_suggest)

- Canonical page: [https://everyinfra.com/pinterest-api/search_suggest](https://everyinfra.com/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 | 搜索框里打的字，最多 100 个字；返回搜索框下拉里的联想词和推荐账号，一次约 12 个。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| keyword | 关键词：search_suggest 里是联想出的词（推荐账号的行是账号名）；search_refinements、keyword_audience 里是问的那个词；related_keyword_trends 里是相关的搜索词。 |
| row_type | 这一行是什么：search_suggest 里是 query（联想词）或 user（推荐的账号）；comments、comment_replies 里是 comment（普通评论）或 tried_it（「试过了」的晒图帖）。 |
| rank | 这一行在榜单或结果里的名次，从 1 开始；榜单口径（按什么排、统计多久）以能力说明为准。 |
| user_id | 用户在原平台的唯一 ID。 |
| username | 用户名（@handle）。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| url | 该记录在原平台上的可访问链接。 |
| collected_at | 这条数据的抓取时刻（ISO 8601，UTC）。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 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
