为了方便各类开发者,现提供免费开放Api接口,所有接口均无使用限制,返回格式全是JSON,所以基本能满足大家的开发需求,但请各位不要将这些Api接入正式项目,因为有一些不稳定因素,这些Api是我平时业余时间编写,可能有些不能满足需求的情况,请大家在留言区提出来,或者大家写Demo需要一些有关联的数据等等,都可以在留言区告诉我,我有时间一定会给大家处理。
api.apiopen.top

请去以上地址查看接口文档。

因为前期服务杂乱,故此次下架所有历史版本,使用新版接口,新版接口处于开发状况,部分接口正在重写,敬请期待。

接口示例:

获取短视频
https://api.apiopen.top/api/getHaoKanVideo?page=0&size=2
响应
{
  "code": 200,
  "message": "成功!",
  "result": {
    "total": 11860,
    "list": [
      {
        "id": 7525,
        "title": "敢直接叫向华强要人,周润发当配角,给张学友做个表情包",
        "userName": "也毁灭另一些人",
        "userPic": "https://pic.rmb.bdstatic.com/bjh/user/00f938d6a2615985a2fe68b40252d319.jpeg?x-bce-process=image/resize,m_lfit,w_200,h_200&autime=33634",
        "coverUrl": "https://f7.baidu.com/it/u=4107050099,3096145322&fm=222&app=108&f=JPEG@s_2,w_681,h_381,q_100",
        "playUrl": "http://vd2.bdstatic.com/mda-nc5e6rphet3kr6td/cae_h264_delogo/1646561464607182321/mda-nc5e6rphet3kr6td.mp4",
        "duration": "01:19"
      },
      {
        "id": 10948,
        "title": "吕秀才倒霉的一天",
        "userName": "影视小滔",
        "userPic": "https://pic.rmb.bdstatic.com/bjh/user/ae482e23dfca594081b51d558d8367ac.jpeg?x-bce-process=image/resize,m_lfit,w_200,h_200&autime=37424",
        "coverUrl": "https://f7.baidu.com/it/u=3822864426,1054969009&fm=222&app=108&f=JPEG@s_2,w_681,h_381,q_100",
        "playUrl": "http://vd3.bdstatic.com/mda-ndg2vcdujbewdd9m/cae_h264_delogo/1650161723467982957/mda-ndg2vcdujbewdd9m.mp4",
        "duration": "05:21"
      }
    ]
  }
}
获取图片

图片因为源站做了限制,在html的head里加入以下标签即可。

<meta name="referrer" content="no-referrer" />

可选参数:type animal/beauty/car/comic/food/game/movie/person/phone/scenery
参数意义:type 动物/美女/汽车/漫画/食物/游戏/电影/人物/手机/风景

https://api.apiopen.top/api/getImages?page=0&size=5
响应
{
  "code": 200,
  "message": "成功!",
  "result": {
    "total": 19080,
    "list": [
      {
        "id": 12247,
        "title": "芯觉 美女 4k高清壁纸",
        "url": "https://pic.netbian.com/uploads/allimg/210406/225411-16177208512fbb.jpg",
        "type": "comic"
      },
      {
        "id": 6212,
        "title": "森林 道路 树 树叶 太阳",
        "url": "https://pic.netbian.com/uploads/allimg/170701/192430-1498908270d5c2.jpg",
        "type": "scenery"
      },
      {
        "id": 17469,
        "title": "爱心 浪漫气球 小女孩 4",
        "url": "https://pic.netbian.com/uploads/allimg/170517/202350-14950238301dad.jpg",
        "type": "person"
      },
      {
        "id": 6350,
        "title": "羚羊峡谷5K风景壁纸",
        "url": "https://pic.netbian.com/uploads/allimg/170620/122006-1497932406c2b4.jpg",
        "type": "scenery"
      },
      {
        "id": 13657,
        "title": "黄漫老师 埃罗芒阿老师壁",
        "url": "https://pic.netbian.com/uploads/allimg/180610/161233-1528618353a6ad.jpg",
        "type": "comic"
      }
    ]
  }
}
获取一言名句
https://api.apiopen.top/api/sentences
响应
{
  "code": 200,
  "message": "成功!",
  "result": {
    "name": "独出前门望野田,月明荞麦花如雪。",
    "from": "白居易《村夜》"
  }
}
用户登录
https://api.apiopen.top/api/login
# json参数
{
  "account": "zhangzhichaolove@vip.qq.com",
  "password": "123456"
}
响应
{
  "code": 200,
  "message": "成功!",
  "result": {
    "id": 2,
    "createdAt": "2022-05-01 14:19:41",
    "updatedAt": "2022-05-01 14:19:41",
    "deletedAt": null,
    "account": "zhangzhichaolove@vip.qq.com",
    "level": 0,
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjIsImlkIjoyLCJjcmVhdGVkQXQiOiIyMDIyLTA1LTAxIDE0OjE5OjQxIiwidXBkYXRlZEF0IjoiMjAyMi0wNS0wMSAxNDoxOTo0MSIsImRlbGV0ZWRBdCI6bnVsbCwiYWNjb3VudCI6InpoYW5nemhpY2hhb2xvdmVAdmlwLnFxLmNvbSIsImxldmVsIjowLCJleHAiOjE2NTE5OTIyMDAsImlzcyI6ImFwaV9vcGVuIiwibmJmIjoxNjUxMzg2NDAwfQ.VHqpzA_qnunT5P8IlJBr97VzYaNESNRqke_H4NcE6pQ"
  }
}

其他接口见官网接口文档

数据来源于网络,如有侵权,请告知,我将立即删除。

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐