Log In Register
c
After 2020-05-14 all API request will require api_key parameter. Please register to get your key
This function returns city, region, country code, latitude and longitude for a given IP address.
Information based on data provided by db-ip.com under CC BY 4.0.
Requests can be performed using HTTP GET or POST methods. Response is always in JSON format.
parameter value description
required ip IP address (IPv4)
api_key You API key. Register to get your key

request

response

Click POST or GET to see response

possible errors

R7ERR_NOTFOUND Information not found

code samples

Below code samples update automatically when you change parameters above
curl
wget
aria2
php
javascript

curl, method POST


	
	

curl, method GET


wget, method POST


	
	

wget, method GET


aria2, method GET

		

php, method GET



	

php, method GET, using curl


	
	

php, method POST, using curl


javascript, method GET, using XMLHttpRequest

			
			
	

javascript, method GET, using jquery