首页

获取整合后的首页数据

接口说明

此接口用于一次性获取系统公告、未看剧集列表、当季新番列表、热门种子等接口的数据,并合并为同一个文档进行返回。

权限需求

当未提供jwt token时,将认为是匿名用户,返回的番剧列表中isFavorited始终为false。 当提供jwt token时(登录状态),返回的番剧列表中将按照当前用户对番剧关注状态设定isFavorited值。

get/api/v2/homepage

Request

  • Base URL: https://api.dandanplay.net
  • URL: https://api.dandanplay.net/api/v2/homepage
  • Auth: one of:
    • API key in header X-AppId
    • API key in header X-AppSecret
    • HTTP bearer

Query parameters

filterAdultContentboolean

是否过滤可能出现的成人内容

Response

errorCodeinteger

错误代码,0表示没有发生错误,非0表示有错误,详细信息会包含在errorMessage属性中

successboolean

接口是否调用成功

errorMessagestring nullable

当发生错误时,说明错误具体原因

errorDetailstring nullable

当参数校验失败时,提供可供调用方定位问题字段的补充信息。

Changes

No recorded changes to this operation across all 1 revision of this API.