{
    "openapi": "3.0.0",
    "info": {
        "title": "疫情同程查询 - API文档",
        "version": "1.0.0",
        "description": "本接口可按车次和出发时间、到达城市查询武汉肺炎疫情确诊患者同行程信息，信息来自权威媒体报道。请注意：type、no、arrive参数仅支持单条件查询。返回字段type类型：1飞机，2火车，3地铁，4长途客车\/大巴，5公交车，6出租车，7轮船，8其他公共场所。本接口完全免费，用完可继续申请测试额度。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/ncovsame\/index": {
            "get": {
                "summary": "查询疫情同程信息",
                "tags": [
                    "疫情同程查询"
                ],
                "description": "查询公共交通工具中和感染者同程疫情信息",
                "parameters": [
                    {
                        "name": "no",
                        "in": "query",
                        "description": "车次",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "k22",
                            "description": "车次"
                        }
                    },
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "num",
                        "in": "query",
                        "description": "返回数量，默认10",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 10,
                            "description": "返回数量，默认10"
                        }
                    },
                    {
                        "name": "date",
                        "in": "query",
                        "description": "时间",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2020-01-23",
                            "description": "时间"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "翻页，默认1",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "翻页，默认1"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "description": "交通类型，默认飞机",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "交通类型，默认飞机"
                        }
                    },
                    {
                        "name": "arrive",
                        "in": "query",
                        "description": "到达地点",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "郑州",
                            "description": "到达地点"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "int",
                                            "example": 50,
                                            "description": "数据ID"
                                        },
                                        "no": {
                                            "type": "string",
                                            "example": "南充川R60720",
                                            "description": "车次"
                                        },
                                        "end": {
                                            "type": "string",
                                            "example": "2020-01-23T15:59:59.000Z",
                                            "description": "到达时刻"
                                        },
                                        "who": {
                                            "type": "string",
                                            "example": "央视新闻",
                                            "description": "媒体平台"
                                        },
                                        "date": {
                                            "type": "string",
                                            "example": "2020-01-23",
                                            "description": "日期"
                                        },
                                        "memo": {
                                            "type": "string",
                                            "description": "乘客情况"
                                        },
                                        "type": {
                                            "type": "int",
                                            "example": 4,
                                            "description": "交通工具类型"
                                        },
                                        "start": {
                                            "type": "string",
                                            "example": "2020-01-23T01:57:00.000Z",
                                            "description": "出发时刻"
                                        },
                                        "no_sub": {
                                            "type": "string",
                                            "description": "病例所在车厢"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "https:\/\/mp.weixin.qq.com\/s\/jEBlMLCgSTD9AcpcV1yRtg",
                                            "description": "消息来源"
                                        },
                                        "pos_end": {
                                            "type": "string",
                                            "example": "武胜县烈面镇",
                                            "description": "到达站"
                                        },
                                        "verified": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "是否已证实"
                                        },
                                        "pos_start": {
                                            "type": "string",
                                            "example": "南充",
                                            "description": "出发站"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2020-01-27T10:02:43.000Z",
                                            "description": "发生时刻"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2020-01-27T10:02:43.000Z",
                                            "description": "更新时刻"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "id": 50,
                                                "no": "南充川R60720",
                                                "end": "2020-01-23T15:59:59.000Z",
                                                "who": "央视新闻",
                                                "date": "2020-01-23",
                                                "memo": "",
                                                "type": 4,
                                                "start": "2020-01-23T01:57:00.000Z",
                                                "no_sub": "",
                                                "source": "https:\/\/mp.weixin.qq.com\/s\/jEBlMLCgSTD9AcpcV1yRtg",
                                                "pos_end": "武胜县烈面镇",
                                                "verified": 1,
                                                "pos_start": "南充",
                                                "created_at": "2020-01-27T10:02:43.000Z",
                                                "updated_at": "2020-01-27T10:02:43.000Z"
                                            },
                                            {
                                                "id": 52,
                                                "no": "锡林浩特市3路公交车",
                                                "end": "2020-01-23T00:28:00.000Z",
                                                "who": "央视新闻",
                                                "date": "2020-01-23",
                                                "memo": "",
                                                "type": 5,
                                                "start": "2020-01-23T00:14:00.000Z",
                                                "no_sub": "",
                                                "source": "https:\/\/mp.weixin.qq.com\/s\/jEBlMLCgSTD9AcpcV1yRtg",
                                                "pos_end": "盟医院站",
                                                "verified": 1,
                                                "pos_start": "报社站",
                                                "created_at": "2020-01-27T10:04:52.000Z",
                                                "updated_at": "2020-01-27T10:04:52.000Z"
                                            },
                                            {
                                                "id": 53,
                                                "no": "G1278",
                                                "end": "2020-01-23T12:28:00.000Z",
                                                "who": "央视新闻",
                                                "date": "2020-01-23",
                                                "memo": "同车厢共有乘客53人",
                                                "type": 2,
                                                "start": "2020-01-22T23:55:00.000Z",
                                                "no_sub": "2号车厢",
                                                "source": "https:\/\/mp.weixin.qq.com\/s\/jEBlMLCgSTD9AcpcV1yRtg",
                                                "pos_end": "哈尔滨西",
                                                "verified": 1,
                                                "pos_start": "武汉",
                                                "created_at": "2020-01-27T10:06:36.000Z",
                                                "updated_at": "2020-01-27T10:06:36.000Z"
                                            },
                                            {
                                                "id": 61,
                                                "no": "本溪28路公交车",
                                                "end": "2020-01-23T15:59:59.000Z",
                                                "who": "中国日报网",
                                                "date": "2020-01-23",
                                                "memo": "",
                                                "type": 5,
                                                "start": "2020-01-23T02:00:00.000Z",
                                                "no_sub": "",
                                                "source": "https:\/\/baijiahao.baidu.com\/s?id=1656758480273984649&wfr=spider&for=pc",
                                                "pos_end": "本钢总院",
                                                "verified": 1,
                                                "pos_start": "顺山车站",
                                                "created_at": "2020-01-27T10:56:54.000Z",
                                                "updated_at": "2020-01-27T10:56:54.000Z"
                                            },
                                            {
                                                "id": 121,
                                                "no": "富平县陕ED0098号",
                                                "end": "2020-01-23T15:59:59.000Z",
                                                "who": "富平县疾病预防控制中心",
                                                "date": "2020-01-23",
                                                "memo": "",
                                                "type": 5,
                                                "start": "2020-01-23T04:10:00.000Z",
                                                "no_sub": "",
                                                "source": "http:\/\/news.hsw.cn\/system\/2020\/0127\/1149962.shtml",
                                                "pos_end": "到贤镇",
                                                "verified": 1,
                                                "pos_start": "富平县新华大厦门前",
                                                "created_at": "2020-01-27T13:02:14.000Z",
                                                "updated_at": "2020-01-27T13:02:14.000Z"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "查询疫情同程信息",
                "tags": [
                    "疫情同程查询"
                ],
                "description": "查询公共交通工具中和感染者同程疫情信息",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "no": {
                                        "type": "string",
                                        "example": "k22",
                                        "description": "车次"
                                    },
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "num": {
                                        "type": "int",
                                        "example": 10,
                                        "description": "返回数量，默认10"
                                    },
                                    "date": {
                                        "type": "string",
                                        "example": "2020-01-23",
                                        "description": "时间"
                                    },
                                    "page": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "翻页，默认1"
                                    },
                                    "type": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "交通类型，默认飞机"
                                    },
                                    "arrive": {
                                        "type": "string",
                                        "example": "郑州",
                                        "description": "到达地点"
                                    }
                                },
                                "required": [
                                    "key"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "int",
                                            "example": 50,
                                            "description": "数据ID"
                                        },
                                        "no": {
                                            "type": "string",
                                            "example": "南充川R60720",
                                            "description": "车次"
                                        },
                                        "end": {
                                            "type": "string",
                                            "example": "2020-01-23T15:59:59.000Z",
                                            "description": "到达时刻"
                                        },
                                        "who": {
                                            "type": "string",
                                            "example": "央视新闻",
                                            "description": "媒体平台"
                                        },
                                        "date": {
                                            "type": "string",
                                            "example": "2020-01-23",
                                            "description": "日期"
                                        },
                                        "memo": {
                                            "type": "string",
                                            "description": "乘客情况"
                                        },
                                        "type": {
                                            "type": "int",
                                            "example": 4,
                                            "description": "交通工具类型"
                                        },
                                        "start": {
                                            "type": "string",
                                            "example": "2020-01-23T01:57:00.000Z",
                                            "description": "出发时刻"
                                        },
                                        "no_sub": {
                                            "type": "string",
                                            "description": "病例所在车厢"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "https:\/\/mp.weixin.qq.com\/s\/jEBlMLCgSTD9AcpcV1yRtg",
                                            "description": "消息来源"
                                        },
                                        "pos_end": {
                                            "type": "string",
                                            "example": "武胜县烈面镇",
                                            "description": "到达站"
                                        },
                                        "verified": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "是否已证实"
                                        },
                                        "pos_start": {
                                            "type": "string",
                                            "example": "南充",
                                            "description": "出发站"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2020-01-27T10:02:43.000Z",
                                            "description": "发生时刻"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2020-01-27T10:02:43.000Z",
                                            "description": "更新时刻"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "id": 50,
                                                "no": "南充川R60720",
                                                "end": "2020-01-23T15:59:59.000Z",
                                                "who": "央视新闻",
                                                "date": "2020-01-23",
                                                "memo": "",
                                                "type": 4,
                                                "start": "2020-01-23T01:57:00.000Z",
                                                "no_sub": "",
                                                "source": "https:\/\/mp.weixin.qq.com\/s\/jEBlMLCgSTD9AcpcV1yRtg",
                                                "pos_end": "武胜县烈面镇",
                                                "verified": 1,
                                                "pos_start": "南充",
                                                "created_at": "2020-01-27T10:02:43.000Z",
                                                "updated_at": "2020-01-27T10:02:43.000Z"
                                            },
                                            {
                                                "id": 52,
                                                "no": "锡林浩特市3路公交车",
                                                "end": "2020-01-23T00:28:00.000Z",
                                                "who": "央视新闻",
                                                "date": "2020-01-23",
                                                "memo": "",
                                                "type": 5,
                                                "start": "2020-01-23T00:14:00.000Z",
                                                "no_sub": "",
                                                "source": "https:\/\/mp.weixin.qq.com\/s\/jEBlMLCgSTD9AcpcV1yRtg",
                                                "pos_end": "盟医院站",
                                                "verified": 1,
                                                "pos_start": "报社站",
                                                "created_at": "2020-01-27T10:04:52.000Z",
                                                "updated_at": "2020-01-27T10:04:52.000Z"
                                            },
                                            {
                                                "id": 53,
                                                "no": "G1278",
                                                "end": "2020-01-23T12:28:00.000Z",
                                                "who": "央视新闻",
                                                "date": "2020-01-23",
                                                "memo": "同车厢共有乘客53人",
                                                "type": 2,
                                                "start": "2020-01-22T23:55:00.000Z",
                                                "no_sub": "2号车厢",
                                                "source": "https:\/\/mp.weixin.qq.com\/s\/jEBlMLCgSTD9AcpcV1yRtg",
                                                "pos_end": "哈尔滨西",
                                                "verified": 1,
                                                "pos_start": "武汉",
                                                "created_at": "2020-01-27T10:06:36.000Z",
                                                "updated_at": "2020-01-27T10:06:36.000Z"
                                            },
                                            {
                                                "id": 61,
                                                "no": "本溪28路公交车",
                                                "end": "2020-01-23T15:59:59.000Z",
                                                "who": "中国日报网",
                                                "date": "2020-01-23",
                                                "memo": "",
                                                "type": 5,
                                                "start": "2020-01-23T02:00:00.000Z",
                                                "no_sub": "",
                                                "source": "https:\/\/baijiahao.baidu.com\/s?id=1656758480273984649&wfr=spider&for=pc",
                                                "pos_end": "本钢总院",
                                                "verified": 1,
                                                "pos_start": "顺山车站",
                                                "created_at": "2020-01-27T10:56:54.000Z",
                                                "updated_at": "2020-01-27T10:56:54.000Z"
                                            },
                                            {
                                                "id": 121,
                                                "no": "富平县陕ED0098号",
                                                "end": "2020-01-23T15:59:59.000Z",
                                                "who": "富平县疾病预防控制中心",
                                                "date": "2020-01-23",
                                                "memo": "",
                                                "type": 5,
                                                "start": "2020-01-23T04:10:00.000Z",
                                                "no_sub": "",
                                                "source": "http:\/\/news.hsw.cn\/system\/2020\/0127\/1149962.shtml",
                                                "pos_end": "到贤镇",
                                                "verified": 1,
                                                "pos_start": "富平县新华大厦门前",
                                                "created_at": "2020-01-27T13:02:14.000Z",
                                                "updated_at": "2020-01-27T13:02:14.000Z"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}