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.
Python Example
import requests
req = requests.get("https://api.ipquery.io/")
print(req.text) # Your ip addressResponse
1.1.1.1Query Specific IP Address
GET /1.1.1.1
Returns the ip address queried along with all of the fields.
Python Example
Response
Bulk Query A List of IP Address's
IPQuery supports bulk lookups, each address can be seperated with a comma.
The maximum number of allowed lookups in batch mode is capped at 10,000.
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