# 红果短剧 搜索联想词 API (hongguo.search_suggest)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 搜索框里打了的字，可以只打一半（如 王），最多 50 个字；返回红果搜索框给的那一组联想，约 10 条。 |
| limit | integer (1–) | no | not declared | 正整数（≥1），本次最多返回的条数：不传则返回本次取到的全部结果，传了只把结果截短到这个条数以内，不会多取，也不会变多。扣费不受 `limit` 影响。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| text | 联想词的文字（search_suggest）。 |
| type | 联想词的种类（search_suggest）：series 是剧名、query 是普通搜索词、category 是分类、performer 是演员，平台还会给别的值。 |
| series_id | 联想到的那部剧的 ID（search_suggest，type 是 series 时有）。 |
| performer_id | 联想到的演员的 ID（search_suggest，type 是 performer 时有）。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| cover_url | 封面图链接。 |
| episode_count | 总集数；还没上线的预约剧没有。 |
| hot_score | 热度值，平台用它代替播放数；红果不公开播放数。 |
| hot_score_label | 热度值在页面上的原文，如 5574万热度。 |
| is_finished | 是否完结；toplist 不带 exact 时没有。 |
| rank | 名次：toplist 是榜上第几名，search、search_suggest 是这一行在结果里的位置；从 1 开始。 |
| 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": "hongguo",
  "action": "search_suggest",
  "params": {
    "keyword": "王"
  }
}'
```

```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": "hongguo",
        "action": "search_suggest",
        "params": {
            "keyword": "王",
        },
    },
    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": "hongguo",
  "action": "search_suggest",
  "results": [
    {
      "text": …,
      "type": …,
      "series_id": …,
      "performer_id": …,
      "title": …,
      "cover_url": …,
      "episode_count": …,
      "hot_score": …,
      "hot_score_label": …,
      "is_finished": …,
      "rank": …,
      "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=hongguo
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
