This endpoint retrieves information about a specific IP address.
Parameters:
?ip=IP_ADDRESS
Example Request:
/api/query?ip=8.8.8.8
Response Format:
{ "ip": "8.8.8.8", "asn": { "number": 15169, "name": "Google LLC", "info": "Google LLC" }, "addr": "8.8.8.0/24", "country": { "code": "US", "name": "United States" }, "regions": [ "California", "Mountain View" ] }
This endpoint retrieves information about the server's public IP address.
Example Request:
/api/
Response Format:
{ "ip": "SERVER_PUBLIC_IP", "asn": { "number": 12345, "name": "Organization Name", "info": "Organization Name" }, "addr": "SERVER_PUBLIC_IP/24", "country": { "code": "ISO_CODE", "name": "Country Name" }, "regions": [ "City Name" ] }
This endpoint retrieves IP information from ip-api.com.
Parameters:
?ip=IP_ADDRESS
Example Request:
/api/ip_api?ip=8.8.8.8
Response Format:
{ "status": "success", "query": "8.8.8.8", "country": "United States", "regionName": "California", "city": "Mountain View", "zip": "94035", "lat": 37.4056, "lon": -122.0775, "isp": "Google LLC" }
Author: www.geeklinux.cn
Powered by Flask, Vue.js, and Element Plus