Network

Query IP

0calls
2 credits / call

Want to know where an IP address or domain comes from? This endpoint can help you locate it. Returns standard results by default; if you pass source=commercial, more complete location information will be returned.

Overview

Provide a public IPv4, IPv6 address or domain name, we will query and return its geographic location (country, province, city), latitude/longitude, and the operator (ISP) and Autonomous System Number (ASN) information it belongs to. This is very useful in network security analysis, access source statistics and other fields.

When passing source=commercial, the response will include more complete city, district, operator, timezone, altitude and other information, but response time may be slightly longer.

Query parameters

ip
stringrequired

The public IP address or domain name you need to query (supports IPv4 and IPv6).

source
stringoptional

Query result type. When not passed, returns standard results; if set to commercial, returns more complete geographic location information, but response time may be slightly longer.

Response

200 / OK

Query successful! Returns detailed geographic and network information for this IP address.

JSON

400 / Bad Request

Invalid IP address parameter. Please check if the ip parameter is provided and whether it is a valid public IP address.

JSON

404 / Not Found

Information not found. This usually means you queried an internal IP address (e.g., 192.168.x.x) or an unassigned public IP address, and our database does not have information about it.

JSON

500 / Internal Server Error

Internal server error. The IP query service may have encountered a problem.

JSON