IPQuery Docs

Home to the main documentation for ipquery.io. IPQuery aims to provide a straightforward and simplistic api for working with ip address's.

Basic Request

GET /

Returns your IP Address.

circle-info

Defaults the response format to text when fetching your own ip address. If you want to include additional fields checkout the Changing Response Formats section.

Python Example

import requests

req = requests.get("https://api.ipquery.io/")
print(req.text) # Your ip address

Response

1.1.1.1

Query Specific IP Address

GET /1.1.1.1

Returns the ip address queried along with all of the fields.

circle-info

Defaults the response format to json when querying a specific ip address. To change this checkout the Changing Response Formats section.

Python Example

Response

Bulk Query A List of IP Address's

IPQuery supports bulk lookups, each address can be seperated with a comma.

circle-exclamation

GET /1.1.1.1,2.2.2.2

Python Example

Response Example

Changing Response Formats

IPQuery supports the following response formats:

  • Text

  • JSON

  • YAML

  • XML

The response format can be changed by adding the ?format= parameter.

GET /1.1.1.1?format=yaml

Python Example

Response

GET /1.1.1.1?format=xml

Python Example

Response

Last updated