Skip to content

Instantly share code, notes, and snippets.

@bluelovers
Forked from zhihaofans/dmzj-api.md
Created July 3, 2018 10:21
Show Gist options
  • Save bluelovers/5e9bfeecdbff431c62d5b50e7bdc3e48 to your computer and use it in GitHub Desktop.
Save bluelovers/5e9bfeecdbff431c62d5b50e7bdc3e48 to your computer and use it in GitHub Desktop.

新闻

推荐列表

URL:http://v2.api.dmzj.com/article/recommend/header.json

method: GET

content-type: text/html

response:

{
"code": 0,
"msg": "成功",
"data": [{
    "id": 786,
    "title": "P站美图推荐——fate grand order特辑",
    "pic_url":  "http:\/\/images.dmzj.com\/news\/recommend\/14794598686673.jpg",
    "object_id": 7435,
    "object_url":     "http:\/\/v2.api.dmzj.com\/article\/show\/v2\/7435.html",
}, {
    "id": 784,
    "title": "《监狱学园》会长白木牙衣子手办",
    "pic_url": "http:\/\/images.dmzj.com\/news\/recommend\/14794597896273.jpg",
    "object_id": 7461,
    "object_url": "http:\/\/v2.api.dmzj.com\/article\/show\/v2\/7461.html"
}, {
    "id": 783,
    "title": "P站美图推荐——单马尾特辑",
    "pic_url": "http:\/\/images.dmzj.com\/news\/recommend\/14794597233783.jpg",
    "object_id": 7313,
    "object_url": "http:\/\/v2.api.dmzj.com\/article\/show\/v2\/7313.html"
}, {
    "id": 774,
    "title": "P站美图推荐——无口少女特辑",
    "pic_url": "http:\/\/images.dmzj.com\/news\/recommend\/14782566241692.jpg",
    "object_id": 7237,
    "object_url": "http:\/\/v2.api.dmzj.com\/article\/show\/v2\/7237.html"
}, {
    "id": 772,
    "title": "P站美图推荐——呆毛特辑",
    "pic_url": "http:\/\/images.dmzj.com\/news\/recommend\/14782565573356.jpg",
    "object_id": 7207,
    "object_url": "http:\/\/v2.api.dmzj.com\/article\/show\/v2\/7207.html"
}]
}

文章分类

URL:http://v2.api.dmzj.com/article/category.json

method: GET

content-type: text/html

data:

[{
    "tag_id": 3,
    "tag_name": "轻小说情报"
},
]  
// 这是我补充的
{
    "tag_id": 0,
    "tag_name": "全部"
}

文章列表

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

method: GET

content-type: text/html

params:
  • tag_id: 新闻分类

  • page: 页数 从0开始

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

data:

[
{
"title": "《美妙天堂》剧场版第四部特报公布 全新舞台登场",
"from_name": "",
"from_url": "",
"create_time": 1479890214,
"is_foreign": 0,
"foreign_url": "",
"intro": "《美妙天堂》是龙之子工作室与DONGWOO A&E共同制作的日本美少女偶像题材新作品,是《美妙旋律》的姐妹篇。此前,该作已经推出过三部剧场版,此次的第四部剧场版也预定将于来年3月4日上映。",
"author_id": 100452615,
"status": 1,
"row_pic_url": "http:\/\/images.dmzj.com\/news\/article\/7728\/row_583555186343e.jpg",
"col_pic_url": "http:\/\/images.dmzj.com\/news\/article\/7728\/col_5835551fb1485.jpg",
"article_id": 7728,
"page_url": "http:\/\/v2.api.dmzj.com\/article\/show\/v2\/7728.html",
"comment_amount": "0",
"author_uid": 100452615,
"cover": "http:\/\/images.dmzj.com\/user\/67\/68\/67685a0c8cc11a77eaf294236d2ac758.png",
"nickname": "托甫台希迪",
"mood_amount": 0
},
]

文章详情

URL:http://v2.api.dmzj.com/article/show/v2/${object_id}.html

method: `GET

context-type: text/html

data: html页面

轻小说

推荐

URL:http://v2.api.dmzj.com/novel/recommend.json

method:GET

content-type: text/html

data:

[{
"category_id": 57,
"sort": 0,
"title": "轮番图",
"data": [{
    "id": 2010,
    "obj_id": 1671,
    "title": "为美好的世界献上祝福!第10卷",
    "cover": "http:\/\/images.dmzj.com\/tuijian\/xiaoshuo\/750-480\/145.jpg",
    "url": "",
    "type": 2,
    "sub_title": "",
    "status": "连载中"
}, ]

最近更新

URL: http://v2.api.dmzj.com/novel/recentUpdate/${page}.json method: GET content-type: text/html

params:

  • page: 页数(从0开始)

data:

[{
"id": 2235,
"status": "连载中",
"name": "沃特尼亚战记",
"authors": "保利亮太",
"cover": "http:\/\/xs.dmzj.com\/img\/webpic\/9\/wtny1122l.jpg",
"types": ["冒险", ],
"last_update_chapter_id": 69145,
"last_update_volume_id": 8308,
"last_update_volume_name": "第一卷",
"last_update_chapter_name": "插画",
"last_update_time": 1479811431
},
]

小说详情

URL:http://v2.api.dmzj.com/novel/${id}.json method: GET content-type: text/html params:

  • id: 小说id

data:

{
"id": 2229,
"name": "从今天起我就是萝莉的小白脸!",
"zone": "\u65e5\u672c",
"status": "连载中",
"last_update_volume_name": "第一卷",
"last_update_chapter_name": "插画",
"last_update_volume_id": 8282,
"last_update_chapter_id": 68706,
"last_update_time": 1478948067,
"cover": "http:\/\/xs.dmzj.com\/img\/webpic\/3\/xbl1112l.jpg",
"hot_hits": 8473,
"introduction": "我——天堂晴悠哉地决定成为漫画家。有一天,我感觉自己的人生已经圆满了。那是因为,凭借投资赚得盆满钵满富得流油的美少女小学生——二条藤花居然是我的大粉丝,而且还说要成为我的赞助者!藤花让我住在她的家里,基本上不愁吃不愁穿,而且还给我买来各种各样的漫画BD手办Cos服装等能够成为我创作资料的东西!虽说有了资料也不一定能画出漫画,但既然有了如此梦幻般的环境,我总有一天一定能够画出名垂千古的作品的。……嗯,我想,大概可以吧……?充满甜蜜与快乐的理想小白脸生活,正式开始!",
"types": ["校园/后宫"],
"authors": "晓雪",
"subscribe_num": 5696,
"volume": [{
    "id": 8282,
    "lnovel_id": 2229,
    "volume_name": "第一卷",
    "volume_order": 10,
    "addtime": 1478947412,
    "sum_chapters": 9
}]
}

小说卷列表

URL:http://v2.api.dmzj.com/novel/chapter/${id}.json

method: GET

content-type: text/html

params:

  • id: 小说id

data:

[{
"volume_id": 8303,
"volume_name": "第十一卷",
"volume_order": 160,
"chapters": [{
    "chapter_id": 69077,
    "chapter_name": "转载信息",
    "chapter_order": 10
}, {
    "chapter_id": 69135,
    "chapter_name": "序章",
    "chapter_order": 20
}, {
    "chapter_id": 69136,
    "chapter_name": "第一章 本卷的业界neta全都是假的所以有一个",
    "chapter_order": 30
  }]
}]

小说章节正文

URL:http://v2.api.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

data: txt文件

小说分类

URL: http://v2.api.dmzj.com/1/category.json

method: GET

content-type: text/html

data:

[{
"tag_id": 20,
"title": "冒险",
"cover": "http:\/\/images.dmzj.com\/tuijian\/xiaoshuo       \/fenlei\/maoxian.jpg"
} ]

小说筛选条件

URL:http://v2.api.dmzj.com/novel/filter.json

method: GET

content-type: text/html

data:

[{
"title": "连载进度",
"items": [{
        "tag_id": 0,
        "tag_name": "全部"
    }, ]
}, ]

小说列表

URL:http://v2.api.dmzj.com/novel/${cat_id}/${status_id}/${order_id}/${page}.json

method: GET

content-type: text/html

params:

  • cat_id: 分类id

  • status_id: 连载情况

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

  • page: 页数

data:

[{
"cover": "http:\/\/xs.dmzj.com\/img\/webpic\/22\/1520828_00_main.jpg",
"name": "! 惊叹号",
"authors": "二宫敦人",
"id": 1597
}]

搜索

URL:http://v2.api.dmzj.com/search/show/${big_cat_id}/${keywords}/${page}.json

method: GET

content-type: text/html

params:

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

  • keywords: 关键字

  • page: 页数

data:

[{
"id": 42,
"status": "连载中",
"title": "Campione!弑神者!",
"last_name": "第十九卷 魔王内战",
"cover": "http:\/\/xs.dmzj.com\/img\/webpic\/23\/151117shishenzhel.jpg",
"authors": "丈月城",
"types": "神鬼/后宫",
"hot_hits": 9511526
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment