# Hongguo Short Drama Search suggestions API (hongguo.search_suggest)

- Canonical page: [https://everyinfra.com/en/hongguo-api/search_suggest](https://everyinfra.com/en/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 | Search words: a series title, a theme or any keyword, up to 50 characters. On `search_suggest` it can be just the first characters someone has typed into the search box. |
| limit | integer (1–) | no | not declared | Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without `limit`, whatever the value. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| text | The suggestion text (`search_suggest`). |
| type | Kind of suggestion (`search_suggest`): series is a series title, query a plain search term, category a category and performer a performer; the platform may add other values. |
| series_id | ID of the suggested series (`search_suggest`, when type is series). |
| performer_id | ID of the suggested performer (`search_suggest`, when type is performer). |
| title | Title. null when the platform has no titles (for example text-only posts). |
| cover_url | Link to the cover image. |
| episode_count | Total number of episodes; absent for series not yet released. |
| hot_score | Heat value, which the platform shows in place of a play count; Hongguo does not publish play counts. |
| hot_score_label | The heat value as written on the page, in Chinese number units. |
| is_finished | Whether the series has finished releasing; absent on `toplist` without `exact`. |
| rank | Position: the place on the chart on `toplist`, the position in the results on `search` and `search_suggest`; from 1. |
| collected_at | When this data 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": "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
