Are you overpaying for ip lookup service? iploka offers one of the most affordable IP to geolocation APIs and global IP database services worldwide.
Sign up to iploka in less than 5 minutes
Find your API key inside iploka dashbaord
Reveal your visitors geolocation information
// set IP address and API access key
$api_key = 'YOUR_API_KEY';
$ip = 'YOURIPHERE';
// Initialize CURL:
$ch = curl_init('https://api.iploka.com/'.$ip.'?api_key='.$api_key.'');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Store the data:
$json = curl_exec($ch);
curl_close($ch);
// Decode JSON response:
$api_result = json_decode($json, true);
# set IP address and API access key
API_KEY=YOUR_API_KEY
IP=YOURIPHERE
# make a curl request
curl "https://api.iploka.com/${IP}?api_key=${API_KEY}"
// set IP address and API access key
let apiKey = 'YOUR_API_KEY';
let ip = 'YOURIPHERE';
// make a http request to get ip result
fetch(`https://api.iploka.com/${ip}?api_key=${apiKey}`)
.then(response => response.json())
.then(data => console.log(data));
import requests
key = "YOUR_API_KEY"
ip = "YOURIPHERE"
res = requests.get("https://api.iploka.com/{}?api_key={}".format(ip, key))
print(res.json())
# nethttp.rb
require 'uri'
require 'net/http'
uri = URI('https://api.iploka.com/YOURIPHERE?api_key=YOUR_API_KEY')
res = Net::HTTP.get_response(uri)
puts res.body if res.is_a?(Net::HTTPSuccess)
To help you get started, we have prepared some of the most popular programming language code sample for you to copy and paste into your system that just work!
GET FREE API KEY