# Threads 搜索联想词 API (threads.search_suggest)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 在搜索框里输入的字，如 coffee，最多 50 个字。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| keyword | trending：这个趋势的搜索词，和 id 一起传给 trend_posts 看趋势下的帖子；search_suggest：请求里输入的词。 |
| keywords | search_suggest：联想词，每项 keyword；是社区的另带 topic：id、display_name、member_count（成员数）、online_count（在线人数）、recent_post_count（近期帖子数）。 |
| profiles | search_suggest：联想到的账号，每项 user_id、username、display_name、bio、follower_count、is_verified、is_private、url、avatar_url、platform、rank（排第几）。 |
| 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": "threads",
  "action": "search_suggest",
  "params": {
    "keyword": "coffee"
  }
}'
```

```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": "threads",
        "action": "search_suggest",
        "params": {
            "keyword": "coffee",
        },
    },
    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": "threads",
  "action": "search_suggest",
  "results": {
    "keyword": …,
    "keywords": …,
    "profiles": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=threads
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
