Get IP ASN
API Endpoint
https://api.steamdata.cloud.cubicnode.com/service-api/ip-info/get-ip-asn
This interface is used to obtain the ASN information of an IP.
API Call Instructions
- The IP address must be a valid IPv4 or IPv6 address
- Upload can use form-data or x-www-form-urlencoded or json format (json format is recommended)
Request Method
GET | POST
Request Parameters
Parameter Name | Parameter Type | Is Required | Parameter validation rules | Parameter Description |
---|---|---|---|---|
ip | string | Yes | ipv4 or ipv6 address | The IP address to be queried |
language | string | No | Enumeration value: en, fr, ru, zh_CN | The language of the returned results, default is en |
Request Example
POST /service-api/ip-info/get-ip-asn HTTP/1.1
Request Headers:
Host: api.safeimages.com
Accept: */*
Authorization: SD1-HMAC-SHA256 Credential=012345ABCDEFGHJKLNMOPQRSTU/20240101/ap-east-1/service/sd1_request,SignedHeaders=host;x-sd-api-version;x-sd-datetime,Signature=1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
Content-Type: multipart/form-data; boundary=-----------------xxxxxxxxxxxxxxxxx
X-SD-Instance-Id: 12345678-1234-1234-1234-123456789012
X-SD-Api-Version: 1.0
X-SD-Datetime: 20240101T173850Z
...
Request Body:
{
"ip": "127.0.0.1",
"language": "zh_CN"
}
Response Example
json
{
"message": "success",
"code": 00000,
"data": {
"ip": "127.0.0.1",
"network": null,
"autonomous_system_number": null,
"autonomous_system_organization": null
}
}