Previous: Collection of popular free APIs (attached with access code samples)

1. Weather forecast query : Supports weather query of multiple cities across the country and around the world, including live data of 3,400+ domestic cities and 40,000 international cities, and also supports query of any domestic longitude and latitude, and the interface will return the nearest station information of the longitude and latitude ; Update frequency in minutes.

Java access example:

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. National express logistics query : Provide express logistics tracking number query including 600+ express companies including STO , SF Express, YTO, Yunda, Zhongtong, Huitong, etc.; update in real time with the official website; automatically identify express companies.

Example of PHP access:

<?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. Mobile phone number attribution : Provide mobile phone number attribution query of the three major operators.

Example of Python access:

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. Universal text recognition OCR : multi-scenario, multi-lingual, high-precision full-image text detection and recognition services, with multiple indicators leading the industry, and can recognize Chinese, English, Japanese, Korean, French, and German languages.

JavaScript access example:

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. SMS verification code : It can be used in application scenarios such as login, registration, password retrieval, payment authentication, etc. Supports three major operators, reachable in 3 seconds, 99.99% arrival rate, supports large capacity and high concurrency.

Example of WeChat applet access:

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 attribution-IPv4 district and county level : query the attribution information according to the IP address, including 4.3 billion full IPv4, support to the district and county level in China (excluding Hong Kong and Taiwan), including operator data.

NodeJS access example:

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);
});

Guess you like

Origin blog.csdn.net/m0_58974397/article/details/131914011