BotBlocker.Pro
  • Introduction
  • Blocker
  • Shortlink
  • Lookup IP Address
  • Email Validator
  • Disposable Email Identity
  • Phone Number Identity
  • Retrieves the Current API Usage Statistics
  • Information
    • Affiliate
    • Reseller
    • FAQs
    • Service Status
    • Report Abuse
  • Trust & Legal
    • Privacy Policy
    • Terms of Services
Powered by GitBook
On this page

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."
        }
    }
}
{
    "meta": {
        "code": 401,
        "message": "Unauthorized, an valid API Key needed!"
    }
}
{
    "meta": {
        "code": 500,
        "message": "Invalid IP address. Please, try a different IP address ..."
    }
}
PreviousShortlinkNextEmail Validator

Last updated 9 months ago