1、天气预报查询:支持全国以及全球多个城市的天气查询,包含国内3400+个城市以及国际4万个城市的实况数据,同时也支持国内任意经纬度查询,接口会返回该经纬度最近的站点信息;更新频率分钟级别。
Java 接入示例:
OkHttpClient client = new OkHttpClient().newBuilder().build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
Request request = new Request.Builder()
.url("https://eolink.o.apispace.com/456456/weather/v001/now?areacode=101010100&lonlat=116.407526,39.904030")
.method("GET",null)
.addHeader("X-APISpace-Token","")
.addHeader("Authorization-Type","apikey")
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
2 、 全国快递物流查询:提供包括申通、顺丰、圆通、韵达、中通、汇通等600+快递公司在内的快递物流单号查询;与官网实时同步更新;自动识别快递公司。
PHP 接入示例:
<?php
$client = new http\Client;
$request = new http\Client\Request;
$body = new http\Message\Body;
$body->append("{"cpCode":null,"mailNo":null,"tel":null,"orderType":null}");
$request->setRequestUrl("eolink.o.apispace.com/wlgj1/paidtobuy_api/trace_search");
$request->setRequestMethod("POST");
$request->setBody($body);
$request->setHeaders(array(
"X-APISpace-Token" => "",
"Authorization-Type" => "apikey",
"Content-Type" => ""
));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
3、手机号码归属地:提供三大运营商的手机号码归属地查询。
Python 接入示例:
import http.client
conn = http.client.HTTPSConnection("eolink.o.apispace.com")
payload = "mobile="
headers = {
"X-APISpace-Token":"",
"Authorization-Type":"apikey",
"Content-Type":""
}
conn.request("POST","/teladress/teladress", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
4、通用文字识别OCR:多场景、多语种、高精度的整图文字检测和识别服务,多项指标行业领先,可识别中、英、日、韩、法、德多种语言。
JavaScript 接入示例:
var data = "{"image":null,"url":null,"pdf":null,"pdf_page":null,"language":null}"
$.ajax({
"url":"https://eolink.o.apispace.com/ocrbase/ocr/v1/base",
"method": "POST",
"headers": {
"X-APISpace-Token":"",
"Authorization-Type":"apikey",
"Content-Type":"application/json"
},
"data": data,
"crossDomain": true
})
.done(function(response){})
.fail(function(jqXHR){})
5、短信验证码:可用于登录、注册、找回密码、支付认证等等应用场景。支持三大运营商,3秒可达,99.99%到达率,支持大容量高并发。
微信小程序接入示例:
var data = "{"msg":"","params":"","sendtime":"","extend":"","uid":""}"
wx.request({
"url":"https://eolink.o.apispace.com/sms-code/verifycode",
"method": "POST",
"header": {
"X-APISpace-Token":"",
"Authorization-Type":"apikey",
"Content-Type":""
},
"data": data,
"success": (response)=> {
console.log(response.data)
}
})
6、IP归属地-IPv4区县级:根据IP地址查询归属地信息,包含43亿全量IPv4,支持到中国地区(不含港台地区)区县级别,含运营商数据。
NodeJS 接入示例:
var request = require("request");
var requestInfo={
method: "GET",
url: "https://eolink.o.apispace.com/ipguishu/ip/geo/v1/district?ip=1.45.124.145&coordsys=WGS84",
headers: {
"X-APISpace-Token":"",
"Authorization-Type":"apikey"
},
form: {
}
};
request(requestInfo, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});