{
    "openapi": "3.0.0",
    "info": {
        "title": "频道列表 - API文档",
        "version": "1.0.0",
        "description": "该接口输出所有新闻类接口的频道ID，介绍、请求路径等。也可以点此查看<a href=\"https:\/\/www.tianapi.com\/article\/118\" target=\"_blank\">新闻接口所有频道ID<\/a>。（请注意：为方便调用该接口已合并至 <a href=\"https:\/\/www.tianapi.com\/apiview\/51-2\" target=\"_blank\">分类新闻<\/a> 接口第二接入点，因此本接口已下线不再提供）"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/channellist\/index": {
            "get": {
                "summary": "频道列表",
                "tags": [
                    "频道列表"
                ],
                "description": "返回平台全部新闻类接口分类列表",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "name": {
                                            "type": "string",
                                            "example": "动漫资讯",
                                            "description": "频道名称"
                                        },
                                        "colid": {
                                            "type": "int",
                                            "example": 33,
                                            "description": "频道ID"
                                        },
                                        "nameid": {
                                            "type": "string",
                                            "example": "dongman",
                                            "description": "名称ID"
                                        },
                                        "jianjie": {
                                            "type": "string",
                                            "example": "全网热点动漫资讯，带你了解二次元世界",
                                            "description": "频道简介"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "name": "体育新闻",
                                                "colid": 12,
                                                "nameid": "tiyu",
                                                "jianjie": "国内外体育API"
                                            },
                                            {
                                                "name": "娱乐新闻",
                                                "colid": 10,
                                                "nameid": "huabian",
                                                "jianjie": "娱乐新闻API服务"
                                            },
                                            {
                                                "name": "国内新闻",
                                                "colid": 7,
                                                "nameid": "guonei",
                                                "jianjie": "国内新闻资讯"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "频道列表",
                "tags": [
                    "频道列表"
                ],
                "description": "返回平台全部新闻类接口分类列表",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    }
                                },
                                "required": [
                                    "key"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "name": {
                                            "type": "string",
                                            "example": "动漫资讯",
                                            "description": "频道名称"
                                        },
                                        "colid": {
                                            "type": "int",
                                            "example": 33,
                                            "description": "频道ID"
                                        },
                                        "nameid": {
                                            "type": "string",
                                            "example": "dongman",
                                            "description": "名称ID"
                                        },
                                        "jianjie": {
                                            "type": "string",
                                            "example": "全网热点动漫资讯，带你了解二次元世界",
                                            "description": "频道简介"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "name": "体育新闻",
                                                "colid": 12,
                                                "nameid": "tiyu",
                                                "jianjie": "国内外体育API"
                                            },
                                            {
                                                "name": "娱乐新闻",
                                                "colid": 10,
                                                "nameid": "huabian",
                                                "jianjie": "娱乐新闻API服务"
                                            },
                                            {
                                                "name": "国内新闻",
                                                "colid": 7,
                                                "nameid": "guonei",
                                                "jianjie": "国内新闻资讯"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}