# 红果短剧 搜短剧 API (hongguo.search)

- Canonical page: [https://everyinfra.com/hongguo-api/search](https://everyinfra.com/hongguo-api/search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "hongguo", "action": "search", "params": {...}}
- Price: $0.016 per call ($16 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of 10 per call (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- 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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 搜索词：剧名、题材或任意关键词，如 重生，最多 50 个字。 |
| exact | not declared | no | not declared | 传 true 时每部剧带上剧评数 review_count，点赞数、收藏数、评分人数换成准数，不用再逐部查详情；多等约 5～15 秒，价格不变。不传时点赞、收藏是平台给的约数（带 *_estimated）。 |
| page_token | not declared | no | not declared | 翻页令牌：把上一次响应里的 next_page_token 原样传回，拿下一页，其他参数和第一页一样；不传从第一页开始。每页算一次调用；没有 next_page_token 就是最后一页。每页 10 部。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 剧 ID，一串数字（search、toplist、series_detail）；可以直接当 series_detail 的 url 用。 |
| url | 这部剧在红果网站上的详情页链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| cover_url | 封面图链接。 |
| description | 简介或描述，通常比 text 短。 |
| episode_count | 总集数；还没上线的预约剧没有。 |
| updated_episode_count | 已经更新到第几集（series_detail）。 |
| accessible_episode_count | 平台网站上公开能看的集数（series_detail），一般是前 5 集。 |
| tags | 标签数组。无标签时为空数组，不是 null。 |
| status_tags | 平台在卡片上打的状态标签（如新剧、独家）；这部剧有才出现。 |
| hot_score | 热度值，平台用它代替播放数；红果不公开播放数。 |
| hot_score_label | 热度值在页面上的原文，如 5574万热度。 |
| hot_score_estimated | 为 true 表示热度值是平台给的约数（如 19.9万）换算成的整数；带 exact 取到准数时没有这个字段。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| rating_count | 评分人数。 |
| rating_count_label | 评分人数在页面上的原文。 |
| rating_count_estimated | 为 true 表示评分人数是平台给的约数（如 19.9万）换算成的整数；带 exact 取到准数时没有这个字段。 |
| bookmark_count | 收藏数。 |
| bookmark_count_label | 收藏数在页面上的原文，如 12万收藏。 |
| bookmark_count_estimated | 为 true 表示收藏数是平台给的约数（如 19.9万）换算成的整数；带 exact 取到准数时没有这个字段。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| like_count_label | 点赞数在页面上的原文，如 19.9万点赞。 |
| like_count_estimated | 为 true 表示点赞数是平台给的约数（如 19.9万）换算成的整数；带 exact 取到准数时没有这个字段。 |
| share_count | 分享/转发数。null 表示不公开，不等于 0。 |
| share_count_label | 分享数在页面上的原文。 |
| share_count_estimated | 为 true 表示分享数是平台给的约数（如 19.9万）换算成的整数；带 exact 取到准数时没有这个字段。 |
| review_count | 剧评数，整部剧下面的评论条数，不含单集评论（series_detail；search 带 exact 时也有）。 |
| is_finished | 是否完结；toplist 不带 exact 时没有。 |
| status_label | 更新状态在页面上的原文，如 全119集、更新至30集。 |
| is_paid | 是不是付费剧（toplist）。 |
| metric_label | 这个榜排序用的那个数在页面上的原文（toplist），如 5574万热度、2123.5万期待。 |
| subscribe_count | 预约人数（toplist 的预约榜）。 |
| subscribe_count_label | 预约人数在页面上的原文，如 578.8万人预约。 |
| subscribe_count_estimated | 为 true 表示预约人数是平台给的约数（如 19.9万）换算成的整数；带 exact 取到准数时没有这个字段。 |
| expected_release_label | 预计上线时间在页面上的原文（预约榜），如 预计12月18日上线。 |
| expected_release_at | 预计上线时间（ISO 8601，UTC）；平台给了具体时间才有。 |
| reservation_only | 为 true 表示这部剧还在预约、没上线（预约榜）；这样的剧查 series_detail 是空结果。 |
| cast | 演员表（series_detail）：每项有 name（演员名）、role（饰演的角色）、id（演员 ID）、avatar_url（头像）；漫剧、AI 剧一般是空数组。 |
| license_no | 备案号，平台写的括号前缀原样保留，如（番茄）微短剧备字（2026）第412420号。 |
| rank_labels | 这部剧现在的榜单名次标签（series_detail），如 红果热播榜第1名；不在榜上是空数组。 |
| season_id | 这部剧所属系列（各季）的 ID；分季的剧才有。 |
| season_number | 第几季；分季的剧才有。 |
| created_at | 这部剧在平台建档的时间（ISO 8601，UTC）。 |
| released_at | 上线时间（ISO 8601，UTC）。 |
| search_total_count | 这个搜索词一共搜到几部（search），每行相同。 |
| 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",
  "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",
        "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",
  "results": [
    {
      "id": …,
      "url": …,
      "title": …,
      "cover_url": …,
      "description": …,
      "episode_count": …,
      "updated_episode_count": …,
      "accessible_episode_count": …,
      "tags": …,
      "status_tags": …,
      "hot_score": …,
      "hot_score_label": …,
      "hot_score_estimated": …,
      "rating": …,
      "rating_scale": …,
      "rating_count": …,
      "rating_count_label": …,
      "rating_count_estimated": …,
      "bookmark_count": …,
      "bookmark_count_label": …,
      "bookmark_count_estimated": …,
      "like_count": …,
      "like_count_label": …,
      "like_count_estimated": …,
      "share_count": …,
      "share_count_label": …,
      "share_count_estimated": …,
      "review_count": …,
      "is_finished": …,
      "status_label": …,
      "is_paid": …,
      "metric_label": …,
      "subscribe_count": …,
      "subscribe_count_label": …,
      "subscribe_count_estimated": …,
      "expected_release_label": …,
      "expected_release_at": …,
      "reservation_only": …,
      "cast": …,
      "license_no": …,
      "rank_labels": …,
      "season_id": …,
      "season_number": …,
      "created_at": …,
      "released_at": …,
      "search_total_count": …,
      "rank": …,
      "collected_at": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "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
