国内新闻资讯热点事件
接口地址: https://whyta.cn/api/tx/guonei
返回格式: JSON
请求方式: GET
请求示例:https://whyta.cn/api/tx/guonei?key=你的APIKEY&num=10
接口备注:2
参数 | 类型 | 必填 | 示例值 | 说明 |
---|---|---|---|---|
key | string | 是 | 你的APIKEY | |
num | int | 否 | 10 | 返回数量1-50,默认10 |
page | int | 否 | 1 | 翻页 |
rand | int | 否 | 1 | 随机获取 |
word | string | 否 | 数据 | 检索关键词 |
参数 | 类型 | 类型 | 说明 |
---|---|---|---|
curpage | int | 1 | 当前页 |
allnum | int | 625 | 结果数 |
id | string | 62ac899e8fcf654a74479b4239b4651f | 新闻唯一ID |
ctime | Date | 2015-07-17 | 发布时间 |
title | string | 文章的标题 | 文章标题 |
description | string | 文章的描述 | 文章描述 |
source | string | 文章来源 | 文章来源 |
picUrl | string | https://xxx.png | 封面图片 |
url | string | https://www.tianapi.com/article/154 | 文章地址 |
{
"code": 200,
"msg": "success",
"result": {
"curpage": 1,
"allnum": 500,
"list": [
{
"id": "cfd4b1b056a40d2fb199b94b81630fa5",
"ctime": "2021-02-04 13:57",
"title": "绿媒欢呼在圭亚外长泼冷水",
"description": "中华国内",
"source": "中华国内",
"picUrl": "https://img2.utuku.imgcdc.com/300x200/news/20210204/f91b682d-f1f2-4fee-95a9-1c92d39634a7.png",
"url": "https://news.china.com/domestic/945/20210204/39259849.html"
},
{
"id": "9156081c67ce5c54741d6dab41f7644f",
"ctime": "2021-02-04 14:34",
"title": "三天两头来偷窥!美军MQ-4C无人机被爆3天内两次进入南海",
"description": "中华国内",
"source": "中华国内",
"picUrl": "https://img2.utuku.imgcdc.com/300x200/news/20210204/f673da0c-6aec-4cc5-8cca-301940ecec01.jpg",
"url": "https://news.china.com/domestic/945/20210204/39260149.html"
},
{
"id": "ec8746e42feb713a1bb63023076b00f5",
"ctime": "2021-02-04 13:30",
"title": "第一次!中国军官指挥英国军人执行任务",
"description": "中华国内",
"source": "中华国内",
"picUrl": "https://img3.utuku.imgcdc.com/300x200/news/20210204/9d8b2d5c-c392-4983-abaa-fb5cb72c6d59.jpg",
"url": "https://news.china.com/domestic/945/20210204/392596181.html"
}
]
}
}