IP Lookup API

The IP Lookup API provides geolocation data based on the provided IP address.

Base URL

"https://openapi-idk8.onrender.com"

Endpoint

GET `/iplookup/:ip`

Description: Retrieves geolocation data for a specific IP address.

Parameters:

  • ip: IP address for which geolocation data is requested.

Sample Request

GET `https://openapi-idk8.onrender.com/iplookup/1.178.207.255`

Sample Response

{
    "ip": "1.178.207.255",
    "continent_code": "OC",
    "continent_name": "Oceania",
    "country_code2": "AU",
    "country_code3": "AUS",
    "country_name": "Australia",
    "country_name_official": "Commonwealth of Australia",
    "country_capital": "Canberra",
    "state_prov": "Queensland",
    "state_code": "AU-QLD",
    "district": "",
    "city": "Brisbane",
    "zipcode": "4102",
    "latitude": "-27.48793",
    "longitude": "153.03778",
    "is_eu": false,
    "calling_code": "+61",
    "country_tld": ".au",
    "languages": "en-AU",
    "country_flag": "https://ipgeolocation.io/static/flags/au_64.png",
    "geoname_id": "6943568",
    "isp": "Iseek Communications Pty Ltd",
    "connection_type": "",
    "organization": "Iseek Communications Pty Ltd",
    "country_emoji": "🇦🇺",
    "currency": {
        "code": "AUD",
        "name": "Australian Dollar",
        "symbol": "A$"
    },
    "time_zone": {
        "name": "Australia/Brisbane",
        "offset": 10,
        "offset_with_dst": 10,
        "current_time": "2024-06-13 17:21:43.464+1000",
        "current_time_unix": 1718263303.464,
        "is_dst": false,
        "dst_savings": 0,
        "dst_exists": false,
        "dst_start": "",
        "dst_end": ""
    }
}

Error Handling

500 Internal Server Error: Returned when there's an issue fetching geolocation data from the server.

Response Body:


{
    "error": "Failed to fetch geolocation data for IP {ip}"
}