国内新闻

国内新闻资讯热点事件

接口文档

接口地址: https://whyta.cn/api/tx/guonei

返回格式: JSON

请求方式: GET

请求示例:https://whyta.cn/api/tx/guonei?key=你的APIKEY&num=10

接口备注:2 =>扫码关注公众号获取APIKEY<=

请求参数:

参数类型必填示例值说明
keystring你的APIKEY
numint10返回数量1-50,默认10
pageint1翻页
randint1随机获取
wordstring数据检索关键词

返回参数说明:

参数类型类型说明
curpageint1当前页
allnumint625结果数
idstring62ac899e8fcf654a74479b4239b4651f新闻唯一ID
ctimeDate2015-07-17发布时间
titlestring文章的标题文章标题
descriptionstring文章的描述文章描述
sourcestring文章来源文章来源
picUrlstringhttps://xxx.png封面图片
urlstringhttps://www.whyta.cn/article/154文章地址

返回示例:

JSON返回示例

{
  "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"
      }
    ]
  }
}