Skip to content

Instantly share code, notes, and snippets.

@dodying
Forked from zhihaofans/dmzj-api.md
Last active June 4, 2024 06:08
Show Gist options
  • Save dodying/69f0b477a273777734a991cbd6e03037 to your computer and use it in GitHub Desktop.
Save dodying/69f0b477a273777734a991cbd6e03037 to your computer and use it in GitHub Desktop.
[动漫之家API] #api

说明

  1. v3api.dmzj.com 为手机APP抓取的数据
  2. interface.dmzj.com 为网页抓取的数据

新闻

推荐列表

URL:https://v3api.dmzj.com/article/recommend/header.json

method: GET

文章分类

URL:https://v3api.dmzj.com/article/category.json

method: GET

文章列表

URL:https://v3api.dmzj.com/article/list/v2/${tag_id}/2/${page}.json

method: GET

params:

  • tag_id: 新闻分类

  • page: 页数 从0开始

ps: 那个2,我(原作者)估计是排序之类的,在charles中没发现相关信息

文章详情

URL:https://v3api.dmzj.com/article/show/v2/${object_id}.html

method: GET

轻小说与漫画通用

分类

URL: https://v3api.dmzj.com/${big_cat_id}/category.json

method: GET

params:

  • big_cat_id: 分类id; 0为漫画, 1为轻小说

搜索

URL:https://v3api.dmzj.com/search/show/${big_cat_id}/${keywords}/${page}.json

method: GET

params:

  • big_cat_id: 分类id; 0为漫画, 1为轻小说

  • keywords: 关键字

  • page: 页数(从0开始)

搜索-自动填充

URL:https://v3api.dmzj.com/search/fuzzy/${big_cat_id}/${keywords}.json

method: GET

params:

  • big_cat_id: 分类id; 0为漫画, 1为轻小说

  • keywords: 关键字

详情

URL:https://v3api.dmzj.com/${type}/${id}.json

method: GET

params:

  • type: novel/comic

  • id: id

浏览记录

URL: https://interface.dmzj.com/api/getReInfo/${type}/${user_id}/${page}

method: GET

params:

  • type: novel/comic

  • user_id: 用户id

  • page: 页数(从0开始)

更新记录

URL: https://interface.dmzj.com/api/record/getRe?callback=${callback}&uid=${user_id}&type=${big_cat_id}&st=${type}&json=${historyJson}

method: GET

params:

  • callback: callback

  • user_id: 用户id

  • big_cat_id: 分类id; 1为漫画, 3为轻小说

  • type: novel/comic

  • historyJson: 需经过encodeURIComponent编码 漫画格式: [{"comic_id":"chapter_id","comicId":"comic_id","chapterId":"chapter_id","page":page,"time":unix_timestamp}] 小说格式: [{"volume_id":volume_id,"chapter_id":chapter_id,"time":unix_timestamp,"total_num":amount_of_readed_words,"lnovel_id":novel_id,"page":page}]

添加/取消订阅

URL: https://interface.dmzj.com/api/subscribe/${action}?callback=callback&sub_id=${id}&uid=${user_id}&sub_type=${big_cat_id}&_=${unix_timestamp}

method: GET

params:

  • action: add/del

  • id: id

  • user_id: 用户id

  • big_cat_id: 分类id; 0为漫画, 1为动画(可能), 2为轻小说

  • unix_timestamp: unix timestamp

我的订阅

URL: https://v3api.dmzj.com/UCenter/subscribe?type=${big_cat_id}&letter=${letter_filter}&sub_type=${status_id}&page=${page}&uid=${user_id}&dmzj_token=${token}

method: GET

params:

  • big_cat_id: 分类id; 0为漫画, 1为轻小说

  • letter_filter: 字母筛选,a-z/all

  • status_id: 连载情况,1为全部,2为未读,3为已读,4为完结

  • user_id: 用户id

  • page: 页数(从0开始)

  • token: token

轻小说

轻小说-推荐

URL:https://v3api.dmzj.com/novel/recommend.json

method:GET

轻小说-最近更新

URL: https://v3api.dmzj.com/novel/recentUpdate/${page}.json

method: GET

params:

  • page: 页数(从0开始)

小说卷列表

URL:https://v3api.dmzj.com/novel/chapter/${id}.json

method: GET

params:

  • id: 小说id

小说章节正文

URL:https://v3api.dmzj.com/novel/download/${id}_${volume_id}_${chapter_id}.txt

method: GET

content-type: application/force-download

params:

  • id: 小说id

  • volume_id: 卷id

  • chapter_id: 章节id

小说筛选条件

URL:https://v3api.dmzj.com/novel/filter.json

method: GET

小说列表

URL:https://v3api.dmzj.com/novel/${cat_id}/${status_id}/${order_id}/${page}.json

method: GET

params:

  • cat_id: 分类id

  • status_id: 连载情况,1为全部,2为未读,3为已读,4为完结

  • order_id: 排序 0为人气从高到低,1为更新时间从近到远

  • page: 页数(从0开始)

漫画

漫画-推荐

URL:https://v3api.dmzj.com/v3/recommend.json

method:GET

漫画-最近更新

URL: https://v3api.dmzj.com/latest/${type}/${page}.json

method: GET

params:

  • type: 类型; 0为译制漫画,1为原创漫画,100为全部

  • page: 页数(从0开始)

@undefinedKey
Copy link

想写个练习app但是图片资源403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment