IP Geo Location

FREE
By natkapral
Updated 3 months ago
Location
9.8/10
Popularity Score
48ms
Latency
99%
Success Rate

IP Geo Location API Overview

IP geo location API gives detailed information about IP location of your visitors. Data includes information about country, city, latitude and longitude, timezone, asn, currency and some security data. API supports IPv4 and IPv6 IP addresses.
Response formats: json and xml.

UPDATES:

  • 2019-06-28: returns 200 instead of 404 for reserved and private ip addresses
Contact API Provider
star-blueRate

IP Lookup returns geo location data of any provided IPv4 or IPv6 address.

Endpoint:

GET:  /ip/{ip}?format={format}

Parameters:

  • {ip} : IPv4 or IPv6 address
  • {format} : Json or xml. The default format is json

Example response:

{
    "status": "success",
    "ip":"37.140.128.10",
    "type":"IPv4",
    "city":{
        "name":"Moscow",
        "population":10381222
    },
    "area":{
        "code":"MOW",
        "name":"Moscow"
    },
    "country":{
        "code":"RU",
        "name":"Russia",
        "phone_code":"7",
        "area_size":"17100000.00 sq. km",
        "capital":"Moscow",
        "population":140702000,
        "is_in_eu":false
    },
    "time":{
        "timezone":"Europe/Moscow",
        "time":"2019-01-24 15:17:07 +0300"
    },
    "asn":{
        "organisation":"YANDEX LLC",
        "number":13238
    },
    "currency":{
        "code":"RUB",
        "name":"Russian Ruble"
    },
    "location":{
        "latitude":55.7522,
        "longitude":37.6156
    },
    "security":{
        "is_tor":false,
        "is_proxy":false,
        "is_thread":false,
        "is_crawler":false
    },
    "continent":{
        "code":"EU",
        "name":"Europe"
    },
    "postcode":"102087"
}

Errors

In case the request fails or the resource is not available the error will be returned in JSON or XML format.

Error response:

{
    "status":"failed",
    "error":{
        "message":"Invalid key.",
        "code":"403"
    }
}

Error Codes:

  • 400 : Bad request.
  • 403 : Authentication failed
  • 404 : Resource is not found or requested format is incorrect
  • 405 : Method is not allowed.
  • 500 : Server error. We hope you will never see this error.

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication