文档中心 > API类目 > 书旗内容文巢

alibaba.shuqi.content.backend.categoryv.categorylist (获取分类树)

获取分类树

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
source String 可选 1 source

响应参数

名称 类型 示例值 描述
data CategoryTreeDTO 系统参数
  • drama
  • CategoryTreeItemDTO
  • 短剧(旧)
  • └ category_type
  • String
  • top_category
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • first_category
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • sec_category
  • 1
  • └ sub_category
  • String []
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 1315
  • 1
  • └ category_name
  • String
  • 都市言情
  • 1
  • └ category_id
  • Number
  • 1316
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 1314
  • 1
  • └ category_name
  • String
  • 短剧
  • 1
  • └ category_id
  • Number
  • 1315
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 0
  • 1
  • └ category_name
  • String
  • 短剧
  • 1
  • └ category_id
  • Number
  • 1314
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • audio
  • CategoryTreeItemDTO
  • 听书
  • └ category_type
  • String
  • top_category
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • first_category
  • 1
  • └ sub_category
  • String []
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 6
  • 1
  • └ category_name
  • String
  • 有声读物
  • 1
  • └ category_id
  • Number
  • 184
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 2
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 0
  • 1
  • └ category_name
  • String
  • 听书
  • 1
  • └ category_id
  • Number
  • 6
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • lite_novel
  • CategoryTreeItemDTO
  • 轻小说
  • └ category_type
  • String
  • top_category
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • first_category
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • sec_category
  • 1
  • └ sub_category
  • String []
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 166
  • 1
  • └ category_name
  • String
  • 异界大陆
  • 1
  • └ category_id
  • Number
  • 326
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 2
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 5
  • 1
  • └ category_name
  • String
  • 玄幻
  • 1
  • └ category_id
  • Number
  • 166
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 2
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 0
  • 1
  • └ category_name
  • String
  • 轻小说
  • 1
  • └ category_id
  • Number
  • 5
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • comic
  • CategoryTreeItemDTO
  • 漫画
  • └ category_type
  • String
  • top_category
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • first_category
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • sec_category
  • 1
  • └ sub_category
  • String []
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 155
  • 1
  • └ category_name
  • String
  • 都市爱情
  • 1
  • └ category_id
  • Number
  • 291
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 4
  • 1
  • └ category_name
  • String
  • 恋爱
  • 1
  • └ category_id
  • Number
  • 155
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 2
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 0
  • 1
  • └ category_name
  • String
  • 漫画
  • 1
  • └ category_id
  • Number
  • 4
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 2
  • 1
  • pub
  • CategoryTreeItemDTO
  • 出版物
  • └ category_type
  • String
  • top_category
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • first_category
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • sec_category
  • 1
  • └ sub_category
  • String []
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 131
  • 1
  • └ category_name
  • String
  • 世界名著
  • 1
  • └ category_id
  • Number
  • 286
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 3
  • 1
  • └ category_name
  • String
  • 中外名著
  • 1
  • └ category_id
  • Number
  • 131
  • 1
  • └ bg_url
  • String
  • http://img-tailor.11222.cn/cms/upload/img/1647943504241ce799ef7c4d6a412ddeea736a988e6ba.png
  • 1
  • └ status
  • Number
  • 1
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 11
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 0
  • 1
  • └ category_name
  • String
  • 出版物
  • 1
  • └ category_id
  • Number
  • 3
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • novel
  • CategoryTreeItemDTO
  • 网文
  • └ category_type
  • String
  • top_class
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • top_category
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • first_category
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • sec_category
  • 1
  • └ sub_category
  • String []
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 7
  • 1
  • └ category_name
  • String
  • 都市生活
  • 1
  • └ category_id
  • Number
  • 8
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 1
  • 1
  • └ category_name
  • String
  • 都市
  • 1
  • └ category_id
  • Number
  • 7
  • 1
  • └ bg_url
  • String
  • http://img-tailor.11222.cn/cms/upload/img/1647943151024e7dccc969ef7fe15af26b54ccb189e3c.png
  • 1
  • └ status
  • Number
  • 1
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 0
  • 1
  • └ category_name
  • String
  • 男生
  • 1
  • └ category_id
  • Number
  • 1
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 1
  • 1
  • └ category_name
  • String
  • 网文
  • 1
  • └ category_id
  • Number
  • 502
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • story
  • CategoryTreeItemDTO
  • 短故事
  • └ category_type
  • String
  • top_class
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • top_category
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • first_category
  • 1
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • sec_category
  • 1
  • └ sub_category
  • String []
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 1283
  • 1
  • └ category_name
  • String
  • 未来史诗
  • 1
  • └ category_id
  • Number
  • 1284
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 1235
  • 1
  • └ category_name
  • String
  • 科幻故事
  • 1
  • └ category_id
  • Number
  • 1283
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 0
  • 1
  • └ category_name
  • String
  • 男频
  • 1
  • └ category_id
  • Number
  • 1235
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 1
  • 1
  • └ category_name
  • String
  • 短故事
  • 1
  • └ category_id
  • Number
  • 1234
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • shuqi_drama
  • CategoryTreeItemDTO
  • 书旗短剧
  • └ category_type
  • String
  • top_category
  • 类型
  • sub_category
  • String []
  • 子类型列表
  • └ category_type
  • String
  • first_category
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 1314
  • 1
  • └ category_name
  • String
  • 水浒
  • 分类名称
  • └ category_id
  • Number
  • 1315
  • 分类ID
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 状态
  • sub_category
  • String []
  • 1
  • └ category_type
  • String
  • sec_category
  • 分类类型
  • └ sub_category
  • String []
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 1345
  • 1
  • └ category_name
  • String
  • 都市言情
  • 1
  • └ category_id
  • Number
  • 1316
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
  • └ allow_bind_book
  • Boolean
  • 1
  • 1
  • └ allow_post
  • Boolean
  • 1
  • 1
  • └ pid
  • Number
  • 1
  • 1
  • └ category_name
  • String
  • 短剧
  • 分类名称
  • └ category_id
  • Number
  • 1314
  • 1
  • └ bg_url
  • String
  • 1
  • 1
  • └ status
  • Number
  • 1
  • 1
state Number 200 1
message String success 1

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaShuqiContentBackendCategoryvCategorylistRequest req = new AlibabaShuqiContentBackendCategoryvCategorylistRequest();
req.setSource("1");
AlibabaShuqiContentBackendCategoryvCategorylistResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_shuqi_content_backend_categoryv_categorylist_response>
    <data>
        <drama>
            <category_type>top_category</category_type>
            <sub_category>
                <string>
                    <category_type>first_category</category_type>
                    <sub_category>
                        <string>
                            <category_type>sec_category</category_type>
                            <allow_bind_book>1</allow_bind_book>
                            <allow_post>1</allow_post>
                            <pid>1315</pid>
                            <category_name>都市言情</category_name>
                            <category_id>1316</category_id>
                            <bg_url>1</bg_url>
                            <status>1</status>
                        </string>
                    </sub_category>
                    <allow_bind_book>1</allow_bind_book>
                    <allow_post>1</allow_post>
                    <pid>1314</pid>
                    <category_name>短剧</category_name>
                    <category_id>1315</category_id>
                    <bg_url>1</bg_url>
                    <status>1</status>
                </string>
            </sub_category>
            <allow_bind_book>1</allow_bind_book>
            <allow_post>1</allow_post>
            <pid>0</pid>
            <category_name>短剧</category_name>
            <category_id>1314</category_id>
            <bg_url>1</bg_url>
            <status>1</status>
        </drama>
        <audio>
            <category_type>top_category</category_type>
            <sub_category>
                <string>
                    <category_type>first_category</category_type>
                    <allow_bind_book>1</allow_bind_book>
                    <allow_post>1</allow_post>
                    <pid>6</pid>
                    <category_name>有声读物</category_name>
                    <category_id>184</category_id>
                    <bg_url>1</bg_url>
                    <status>2</status>
                </string>
            </sub_category>
            <allow_bind_book>1</allow_bind_book>
            <allow_post>1</allow_post>
            <pid>0</pid>
            <category_name>听书</category_name>
            <category_id>6</category_id>
            <bg_url>1</bg_url>
            <status>1</status>
        </audio>
        <lite_novel>
            <category_type>top_category</category_type>
            <sub_category>
                <string>
                    <category_type>first_category</category_type>
                    <sub_category>
                        <string>
                            <category_type>sec_category</category_type>
                            <allow_bind_book>1</allow_bind_book>
                            <allow_post>1</allow_post>
                            <pid>166</pid>
                            <category_name>异界大陆</category_name>
                            <category_id>326</category_id>
                            <bg_url>1</bg_url>
                            <status>2</status>
                        </string>
                    </sub_category>
                    <allow_bind_book>1</allow_bind_book>
                    <allow_post>1</allow_post>
                    <pid>5</pid>
                    <category_name>玄幻</category_name>
                    <category_id>166</category_id>
                    <bg_url>1</bg_url>
                    <status>2</status>
                </string>
            </sub_category>
            <allow_bind_book>1</allow_bind_book>
            <allow_post>1</allow_post>
            <pid>0</pid>
            <category_name>轻小说</category_name>
            <category_id>5</category_id>
            <bg_url>1</bg_url>
            <status>1</status>
        </lite_novel>
        <comic>
            <category_type>top_category</category_type>
            <sub_category>
                <string>
                    <category_type>first_category</category_type>
                    <sub_category>
                        <string>
                            <category_type>sec_category</category_type>
                            <allow_bind_book>1</allow_bind_book>
                            <allow_post>1</allow_post>
                            <pid>155</pid>
                            <category_name>都市爱情</category_name>
                            <category_id>291</category_id>
                            <bg_url>1</bg_url>
                            <status>1</status>
                        </string>
                    </sub_category>
                    <allow_bind_book>1</allow_bind_book>
                    <allow_post>1</allow_post>
                    <pid>4</pid>
                    <category_name>恋爱</category_name>
                    <category_id>155</category_id>
                    <bg_url>1</bg_url>
                    <status>2</status>
                </string>
            </sub_category>
            <allow_bind_book>1</allow_bind_book>
            <allow_post>1</allow_post>
            <pid>0</pid>
            <category_name>漫画</category_name>
            <category_id>4</category_id>
            <bg_url>1</bg_url>
            <status>2</status>
        </comic>
        <pub>
            <category_type>top_category</category_type>
            <sub_category>
                <string>
                    <category_type>first_category</category_type>
                    <sub_category>
                        <string>
                            <category_type>sec_category</category_type>
                            <allow_bind_book>1</allow_bind_book>
                            <allow_post>1</allow_post>
                            <pid>131</pid>
                            <category_name>世界名著</category_name>
                            <category_id>286</category_id>
                            <bg_url>1</bg_url>
                            <status>1</status>
                        </string>
                    </sub_category>
                    <allow_bind_book>1</allow_bind_book>
                    <allow_post>1</allow_post>
                    <pid>3</pid>
                    <category_name>中外名著</category_name>
                    <category_id>131</category_id>
                    <bg_url>http://img-tailor.11222.cn/cms/upload/img/1647943504241ce799ef7c4d6a412ddeea736a988e6ba.png</bg_url>
                    <status>1</status>
                </string>
            </sub_category>
            <allow_bind_book>1</allow_bind_book>
            <allow_post>1</allow_post>
            <pid>0</pid>
            <category_name>出版物</category_name>
            <category_id>3</category_id>
            <bg_url>1</bg_url>
            <status>1</status>
        </pub>
        <novel>
            <category_type>top_class</category_type>
            <sub_category>
                <string>
                    <category_type>top_category</category_type>
                    <sub_category>
                        <string>
                            <category_type>first_category</category_type>
                            <sub_category>
                                <string>
                                    <category_type>sec_category</category_type>
                                    <allow_bind_book>1</allow_bind_book>
                                    <allow_post>1</allow_post>
                                    <pid>7</pid>
                                    <category_name>都市生活</category_name>
                                    <category_id>8</category_id>
                                    <bg_url>1</bg_url>
                                    <status>1</status>
                                </string>
                            </sub_category>
                            <allow_bind_book>1</allow_bind_book>
                            <allow_post>1</allow_post>
                            <pid>1</pid>
                            <category_name>都市</category_name>
                            <category_id>7</category_id>
                            <bg_url>http://img-tailor.11222.cn/cms/upload/img/1647943151024e7dccc969ef7fe15af26b54ccb189e3c.png</bg_url>
                            <status>1</status>
                        </string>
                    </sub_category>
                    <allow_bind_book>1</allow_bind_book>
                    <allow_post>1</allow_post>
                    <pid>0</pid>
                    <category_name>男生</category_name>
                    <category_id>1</category_id>
                    <bg_url>1</bg_url>
                    <status>1</status>
                </string>
            </sub_category>
            <allow_bind_book>1</allow_bind_book>
            <allow_post>1</allow_post>
            <pid>1</pid>
            <category_name>网文</category_name>
            <category_id>502</category_id>
            <bg_url>1</bg_url>
            <status>1</status>
        </novel>
        <story>
            <category_type>top_class</category_type>
            <sub_category>
                <string>
                    <category_type>top_category</category_type>
                    <sub_category>
                        <string>
                            <category_type>first_category</category_type>
                            <sub_category>
                                <string>
                                    <category_type>sec_category</category_type>
                                    <allow_bind_book>1</allow_bind_book>
                                    <allow_post>1</allow_post>
                                    <pid>1283</pid>
                                    <category_name>未来史诗</category_name>
                                    <category_id>1284</category_id>
                                    <bg_url>1</bg_url>
                                    <status>1</status>
                                </string>
                            </sub_category>
                            <allow_bind_book>1</allow_bind_book>
                            <allow_post>1</allow_post>
                            <pid>1235</pid>
                            <category_name>科幻故事</category_name>
                            <category_id>1283</category_id>
                            <bg_url>1</bg_url>
                            <status>1</status>
                        </string>
                    </sub_category>
                    <allow_bind_book>1</allow_bind_book>
                    <allow_post>1</allow_post>
                    <pid>0</pid>
                    <category_name>男频</category_name>
                    <category_id>1235</category_id>
                    <bg_url>1</bg_url>
                    <status>1</status>
                </string>
            </sub_category>
            <allow_bind_book>1</allow_bind_book>
            <allow_post>1</allow_post>
            <pid>1</pid>
            <category_name>短故事</category_name>
            <category_id>1234</category_id>
            <bg_url>1</bg_url>
            <status>1</status>
        </story>
        <shuqi_drama>
            <category_type>top_category</category_type>
            <sub_category>
                <string>
                    <category_type>first_category</category_type>
                    <allow_bind_book>1</allow_bind_book>
                    <allow_post>1</allow_post>
                    <pid>1314</pid>
                    <category_name>水浒</category_name>
                    <category_id>1315</category_id>
                    <bg_url>1</bg_url>
                    <status>1</status>
                    <sub_category>
                        <string>
                            <category_type>sec_category</category_type>
                            <allow_bind_book>1</allow_bind_book>
                            <allow_post>1</allow_post>
                            <pid>1345</pid>
                            <category_name>都市言情</category_name>
                            <category_id>1316</category_id>
                            <bg_url>1</bg_url>
                            <status>1</status>
                        </string>
                    </sub_category>
                </string>
            </sub_category>
            <allow_bind_book>1</allow_bind_book>
            <allow_post>1</allow_post>
            <pid>1</pid>
            <category_name>短剧</category_name>
            <category_id>1314</category_id>
            <bg_url>1</bg_url>
            <status>1</status>
        </shuqi_drama>
    </data>
    <state>200</state>
    <message>success</message>
</alibaba_shuqi_content_backend_categoryv_categorylist_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部