Hongguo Short Drama Search suggestions API
API health
- 24h health
- Normal
- Healthy / normal
- Available
Last 24 hours
Last 30 days
Get the suggestions the Hongguo search box shows for what has been typed in keyword, even a single character, usually about 10 in the platform's order with rank from 1. type tells a series title, which also carries series_id, title, cover_url, episode_count, hot_score and is_finished, from a plain search term, a category or a performer with performer_id. There is no paging.
Send POST https://api.everyinfra.com/api/v1/social with platform set to hongguo and action set to search_suggest. Price $1.6 per 1,000 requests ($0.001597 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
#Please help me write a data collection script with the EveryInfra Hongguo Short Drama Search suggestions endpoint (hongguo/search_suggest).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to hongguo and action to search_suggest, and put the parameters inside params.
- Required parameters:
- keyword: 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.
- Optional parameters:
- limit: 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.
- Returns a list of records. Main fields of each record: text (The suggestion text (search_suggest)), type (Kind of suggestion (search_suggest): se…), series_id (ID of the suggested series (search_sugg…), performer_id (ID of the suggested performer (search_s…), title, cover_url (Link to the cover image), episode_count (Total number of episodes), hot_score (Heat value, which the platform shows in…), hot_score_label (The heat value as written on the page,…), is_finished (Whether the series has finished releasi…), rank (Position: the place on the chart on top…), collected_at (When this data was collected (ISO 8601,…).
- Example request body:
{
"platform": "hongguo",
"action": "search_suggest",
"params": {
"keyword": "王"
}
}
- Price: $1.6 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | hongguo | Platform identifier, fixed value. |
action | body | string | Yes | search_suggest | Capability identifier, fixed value. |
keyword | body.params | string | Yes | - | 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 | body.params | integer (1–) | No | - | 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. |
Code samples
#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": "王"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "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": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain. Values the platform does not show are never made up.
| 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). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.