# Threads Search suggestions API (threads.search_suggest)

- Canonical page: [https://everyinfra.com/en/threads-api/search_suggest](https://everyinfra.com/en/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 | Specifies the search query to find public posts using search or creator profiles using discover_profiles. In `trend_posts` it is the trend's search term, the `keyword` of a `trending` row. In `search_suggest` it is the text typed in the search box, up to 50 characters. The discover_profiles action operates asynchronously, so the initial task status response must not be parsed as the final creator list. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| keyword | trending: the trend's search term; pass it with id to trend_posts to read the posts under the trend. search_suggest: the text you typed, as sent. |
| keywords | search_suggest: suggested search terms, each with keyword; a term that is a community also carries topic: id, display_name, member_count (members), online_count (online now) and recent_post_count (recent posts). |
| profiles | search_suggest: suggested accounts, each with user_id, username, display_name, bio, follower_count, is_verified, is_private, url, avatar_url, platform and rank (position). |
| 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": "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
