Documentation

Using IPLocate is easy. Really easy.

To look up information for an IP address, make a GET request to https://www.iplocate.io/api/lookup/:ip_address, replacing :ip_address with your desired IP address.

For example, https://www.iplocate.io/api/lookup/35.172.201.102

Data format

JSON is our default. Use a different format by appending /json, /yaml, /xml, or /csv:
e.g. https://www.iplocate.io/api/lookup/35.172.201.102/xml

JavaScript callback

To receive your data as a JavaScript callback (JSONP), use the JSON format with a callback query parameter - like so
e.g. https://www.iplocate.io/api/lookup/35.172.201.102/json?callback=my_javascript_function

Authentication

Errors

Things don't go wrong very often. If you've sent an invalid request, we'll respond with HTTP 400 Bad Request. If you're over your API limits for the day, we'll respond with HTTP 429 Too Many Requests. Any error will return a JSON response with an error key that describes what went wrong.