POST

接口健康状态

24h 健康值
正常
  • 健康 / 正常
  • 可用
正常

24 小时趋势

30 天趋势

短剧榜单:返回列表,每次一页、固定 20 条(最后一页可能更少),要更多就把响应顶层的 next_page_token 作为 page_token 再调;limit 照收但不起作用;主要字段 id、url、title、cover_url、description、episode_count。支持翻页:把响应里的 next_page_token 作为 page_token 传回拿下一页,其他参数不变,每页算一次调用。

请求发到 POST https://api.everyinfra.com/api/v1/social,platform 填 hongguo,action 填 toplist。 单价 $8 / 千次(每次 $0.008),失败和空结果都不收费。 同步返回;慢任务可在请求体加 "mode": "async",先拿 job_id 再轮询。

AI 提示词

#
请帮我用 EveryInfra 的「红果短剧短剧榜单」接口(hongguo/toplist)写一个数据采集脚本。

接口约定:
- 请求:POST https://api.everyinfra.com/api/v1/social,请求头 Authorization: Bearer <API Key>;Key 从环境变量 EVERYINFRA_API_KEY 读取,不要写进代码。
- 请求体里 platform 填 hongguo,action 填 toplist,参数放在 params 里。
- 必填参数:
  - board:哪个榜:hot 热播榜、prestige 臻果榜(按评分)、subscribe 预约榜、new 新剧榜、hot_search 热搜榜、must_watch 必看榜、followed 收藏榜。每个榜是前 100 名。(可选值:followed / hot / hot_search / must_watch / new / prestige / subscribe)
- 可选参数:
  - category:只看榜里的一类,可不传:real 真人剧、comic 漫剧、ai AI 剧。hot、hot_search、new 三类都能选;must_watch、followed 只能选 real、ai。(可选值:ai / comic / real)
  - exact:传 true 时热度、收藏、点赞、分享、评分人数换成准数,并给是否完结 is_finished;多等约 3 秒,价格不变。不传时这几项只精确到万(带 *_estimated),is_finished 没有。
  - page_token:翻页令牌:把上一次响应里的 next_page_token 原样传回,拿下一页,其他参数和第一页一样;不传从第一页开始。每页算一次调用;没有 next_page_token 就是最后一页。
- 返回一组记录,每条记录的主要字段:id(剧 ID)、url(这部剧在红果网站上的详情页链接)、title、cover_url(封面图链接)、description、episode_count(总集数)、updated_episode_count(已经更新到第几集(series_d…)、accessible_episode_count(平台网站上公开能看的集数(seri…)、tags、status_tags(平台在卡片上打的状态标签(如新剧、…)、hot_score(热度值)、hot_score_label(热度值在页面上的原文);一共 51 个字段,完整列表见 https://api.everyinfra.com/api/v1/social/catalog?platform=hongguo。
- 示例请求体:
{
  "platform": "hongguo",
  "action": "toplist",
  "params": {
    "board": "hot"
  }
}
- 计费:$8 / 千次;失败和空结果不扣费。
- 一次要采几十上百个时,在请求体加 "mode": "async":先拿到 job_id,再轮询 GET https://api.everyinfra.com/api/v1/jobs/{job_id} 取结果。
- 返回 422 时,按错误信息里的候选参数和允许值修正;返回 429 或 503 时,按 Retry-After 等待后重试。

写代码前,先问清楚我要采哪些对象、一共多少个、需要哪些字段、结果存成什么格式,再把方案和大概花费讲给我确认。

请求参数

#
参数名位置类型必填默认值说明
Authorizationheaderstring是-Bearer 加你的 API Key。在控制台创建;不要放进网址或代码仓库。
platformbodystring是hongguo平台标识,固定值。
actionbodystring是toplist能力标识,固定值。
boardbody.paramsstring (enum)是-哪个榜:hot 热播榜、prestige 臻果榜(按评分)、subscribe 预约榜、new 新剧榜、hot_search 热搜榜、must_watch 必看榜、followed 收藏榜。每个榜是前 100 名。允许值followedhothot_searchmust_watchnewprestigesubscribe
categorybody.paramsstring (enum)否-只看榜里的一类,可不传:real 真人剧、comic 漫剧、ai AI 剧。hot、hot_search、new 三类都能选;must_watch、followed 只能选 real、ai;prestige、subscribe 不分类。选了这个榜没有的分类在扣费前被拒。允许值aicomicreal
exactbody.paramsboolean否-传 true 时热度、收藏、点赞、分享、评分人数换成准数,并给是否完结 is_finished;多等约 3 秒,价格不变。不传时这几项只精确到万(带 *_estimated),is_finished 没有。
page_tokenbody.paramsstring否-翻页令牌:把上一次响应里的 next_page_token 原样传回,拿下一页,其他参数和第一页一样;不传从第一页开始。每页算一次调用;没有 next_page_token 就是最后一页。每页 20 部,一个榜最多 5 页。

代码示例

#
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": "toplist",
  "params": {
    "board": "hot"
  }
}'

OpenAPI 定义 (JSON)示例从环境变量 EVERYINFRA_API_KEY 读取 Key,复制出去的代码不含你的 Key。

board 填榜名,如 hot 热播榜、new 新剧榜、subscribe 预约榜;每榜前 100 名,每页 20 部。

响应示例

#
这组示例参数还没有真实样例:这里只按接口定义列出响应结构和字段,值用 … 占位,不是一次真实调用的结果。
json
{  "id": "req_…",  "platform": "hongguo",  "action": "toplist",  "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": …,      "board": …,      "category": …,      "board_updated_label": …,      "rank": …,      "collected_at": …,      "platform": …    }  ],  "next_page_token": …,  "pagination": { … },  "count": …,  "billing": {    "charged": …,    "charged_usd": …,    "balance_after_usd": …,    …  },  "quota": { … }}

返回字段

#

业务数据在 results 里;下表是每条记录可能包含的字段,平台没有提供的值不会被编造。

字段含义
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)。
board这次查的榜(toplist):hot、prestige、subscribe、new、hot_search、must_watch、followed 之一,每行相同。
category这次查的分类(toplist):real、comic、ai 之一;没按分类查时没有这个字段。
board_updated_label平台写的榜单更新和排序说明(toplist),如 12月05日已更新·基于红果内观看/互动等综合热度排序。
rank名次:toplist 是榜上第几名,search、search_suggest 是这一行在结果里的位置;从 1 开始。
collected_at这条数据的抓取时刻(ISO 8601,UTC)。
platform数据来源平台标识,与请求里的 platform 一致(如 xiaohongshu、tiktok)。

错误与计费

#
401
缺少 Key 或 Key 无效。
402
余额不足,先充值。
422
参数名或取值不对,按错误信息给的候选改;不扣费。
429
超过每分钟请求上限,按 Retry-After 等待后再试。
503
暂时无法完成,预扣的费用退回;结果未知时先核对,不要直接重发。
200 空结果
没有数据,不扣费。

错误码

Google Analytics 同意才加载 隐私