Your detailsLive

Loading...

Get started now

curl https://www.iplocate.io/api/lookup/54.162.118.107
const iplocate = require('node-iplocate');

iplocate('54.162.118.107').then((results) => {
  console.log(results);
});
$.getJSON('https://www.iplocate.io/api/lookup/54.162.118.107', function(data) {
  alert(JSON.stringify(data));
});
require 'iplocate'

results = IPLocate.lookup('54.162.118.107')

puts results.inspect
<?php
$res = file_get_contents('https://www.iplocate.io/api/lookup/54.162.118.107');
$res = json_decode($res);

var_dump($res);

Powerful IP geolocation API

  • 1,500 free requests per day - no need to sign up
  • Get started with one line of code
  • Super fast response times
  • Secure by default

Pricing

We price based on API usage. Simple.

Everyone gets 1,500 daily requests for free, no need to sign up.


Monthly Yearly

Pay annually and get two months free.

Upgrade or downgrade any time.

Need even more API requests, or have special requirements? Drop us a line.

Documentation

Using IPLocate is easy. Really easy.

We have official docs, or get started quickly below.

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/54.162.118.107

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/54.162.118.107/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/54.162.118.107/json?callback=my_javascript_function

Authentication

Add your API key with the X-API-Key header or apikey query parameter.
e.g. https://www.iplocate.io/api/lookup/54.162.118.107?apikey=abcdef1234

No authentication is necessary for free requests.

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.