Network

Query My IP

0calls
2 credits / call

Want to know what your exit public IP is? This endpoint is your 'network ID card'. Returns standard results by default; if you pass source=commercial, more complete location information will be returned.

Overview

Calling this endpoint will return your (i.e., the requesting client's) public IP address, along with geographic location and network affiliation information identical to the /network/ipinfo endpoint. Perfect for displaying users' own IP and geographic location on web pages.

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

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 information about your client IP.

JSON

400 / Bad Request

Unable to obtain a valid client IP. This may happen in some special network environments, such as passing through complex proxies.

JSON

500 / Internal Server Error

Internal server error. An error occurred while querying IP geolocation information.

JSON