Loading... # AIC小站-API * 该版本非正式版,新版本为微服务重构 --- ## 图片类 ### 二次元类 URL: `https://api.aiucl.cn/api/acg` ### 高清必应类 URL: `https://api.aiucl.cn/api/bing` #### 调用方法 | 参数 | 值 | 可选 | 说明 | | :-: | :-: | :-: | :-: | | return | 见 `返回类型` | 是 | 返回数据类型 | --- | 返回类型 | 说明 | | :-: | :-: | | 默认 `nil` | 以302方式跳转到图床 | | json | 返回JSON格式值 例见后表 | | xml | 返回xml格式值 例见后表 | | 301/302 | 跳转方式 | * Json ```json {"Status":"200","Msg":"OK","URL":"https://tva4.sinaimg.cn/large/0072Vf1pgy1foxkfob8yfj31hc0u0ts9.jpg"} ``` * Xml ```xml <ReMod><Status>200</Status><Msg>OK</Msg><URL>https://tva4.sinaimg.cn/large/a15b4afegy1fmvjkeowyfj21hc0u0qh5.jpg</URL></ReMod> ``` --- * 同一页面多次调用,请加上随机参数,例如: * https://api.aiucl.cn/api/acg?cid=450 ## 实用类 ### 取IP地址 URL: `https://api.aiucl.cn/v1/practical/ip` #### 调用方法 | 参数 | 值 | 可选 | 说明 | | :-: | :-: | :-: | :-: | | return | 见 `返回类型` | 是 | 返回数据类型 | --- | 返回类型 | 说明 | | :-: | :-: | | 默认 `nil` | 返回可视IP信息 | | js | 返回js变量,直接引用 | | json | 返回json类型,见后表 | | xml | 返回xml类型,见后表 | * Json ```json { "Status": "200", "IP": "*", "CityCode": "*", "Raw": "中国广东 电信", "Msg": "OK" } ``` * Xml ```xml <IPstruct> <Status>200</Status> <IP>*</IP> <CityCode>*</CityCode> <Raw>中国广东 电信</Raw> <Msg>OK</Msg> </IPstruct> ``` ### 取城市ID URL: `https://api.aiucl.cn/v1/practical/cityid` #### 调用方法 | 参数 | 值 | 可选 | 说明 | | :-: | :-: | :-: | :-: | | ip | string | 是 | 查看IP地址所属城市ID | | return | 见 `返回类型` | 是 | 返回数据类型 | --- | 返回类型 | 说明 | | :-: | :-: | | 默认 `nil` | 返回本机IP城市ID | | js | 返回js变量,直接引用 | | json | 返回json类型,见后表 | | xml | 返回xml类型,见后表 | ### 天气预报 ``` ``` Last modification:August 20th, 2020 at 12:41 pm © 允许规范转载 Support 如果觉得我的文章对你有用,请随意赞赏 ×Close Appreciate the author Sweeping payments Pay by AliPay