Lookup IP Address
GET https://botblocker.pro/api/v1/ip
This endpoint retrieves geolocation information based on the visitor's IP address. It provides details such as the ISP, city, region, country, and more. This is useful for tracking user locations or customizing content based on geolocation data.
Note:
This API request is free and does not count against your available request quota.
Query Parameters
Name
Type
Description
apikey*
string
Your API Key generated from BotBlocker.Pro Developer page.
ip*
string
IP address to lookup (e.g., 8.8.8.8)
cURL Example
curl -X GET "https://botblocker.pro/api/v1/ip?apikey={apikey}&ip={ip}"Response
{
"data": {
"ip": "8.8.8.8",
"hostname": "dns.google",
"isp": "Google LLC",
"city": "Mountain View",
"region": "California",
"country": "US",
"loc": "37.4223,-122.085",
"org": "Level 3",
"postal": "94043",
"timezone": "America\/Los_Angeles"
},
"meta": {
"code": 200,
"message": "OK"
}
}{
"meta": {
"code": 400,
"message": {
"ip": "Parameter ip needed."
}
}
}Last updated