🚀 API使用指南

1. 统一入口格式

# 统一API入口 /api/index.php?api=[api_type]&[参数]

2. 完整API对照表

API类型 主要功能 示例URL
content 章节内容获取(默认full接口,单章) /api/index.php?api=content&item_ids=7276663560427471412
content (多章batch) 多章节内容(需api_type=batch) /api/index.php?api=content&item_ids=7276663560427471412,7341402209906606616&api_type=batch
content (听书) 音频播放链接 /api/index.php?api=content&ts=听书&item_ids=123
content (详情/评论) 书籍详细/评论 /api/index.php?api=content&book_id=7237397843521047567
/api/index.php?api=content&book_id=123&comment=评论
chapter 章节内容 /api/index.php?api=chapter&item_id=123
book 书籍目录信息 /api/index.php?api=book&bookId=123
search 内容搜索 /api/index.php?api=search&key=关键词
video 短剧视频 /api/index.php?api=video&ts=短剧&item_id=123
directory 目录结构 /api/index.php?api=directory&fq_id=123
item_info 项目详情 /api/index.php?api=item_info&item_ids=123
full 多章节内容 /api/index.php?api=full&book_id=123&item_ids=id1,id2
ios_content iOS专用内容 /api/index.php?api=ios_content&item_id=123
ios_register iOS设备注册 /api/index.php?api=ios_register&action=register
device_register 设备注册 /api/index.php?api=device_register&action=register
device_register 查看当前设备状态 /api/index.php?api=device_register&action=status
manga 漫画图片解密(返回图片URL数组或直接显示图片) /api/index.php?api=manga&item_ids=123
/api/index.php?api=manga&item_ids=123&show_html=1
raw_full 漫画图片解析(不调用本地解密) /api/index.php?api=raw_full&item_id=7012248593146839588

3. Content API 详细功能说明

🔹 漫画接口

# 返回图片URL数组 /api/index.php?api=manga&item_ids=漫画章节ID # 直接在网页显示图片 /api/index.php?api=manga&item_ids=漫画章节ID&show_html=1

🔹 单章节内容(默认full接口)

# 单章节内容(默认full接口) /api/index.php?api=content&item_ids=7276663560427471412

🔹 多章节内容(batch接口,需api_type=batch)

# 多章节内容(batch接口) /api/index.php?api=content&item_ids=7276663560427471412,7341402209906606616&api_type=batch

🔹 自定义URL模式

/api/index.php?api=content&item_ids=123&custom_url=https://example.com/api?device_id={$zwkey2}&item_id={$item_id}

🔹 听书功能

/api/index.php?api=content&ts=听书&item_ids=7276663560427471412

🔹 书籍详情

/api/index.php?api=content&book_id=7237397843521047567

🔹 书籍评论

/api/index.php?api=content&book_id=7237397843521047567&comment=评论&count=10&offset=0