logo
theme
IP Geo Location
FREEMIUM
By natkapral
Updated 2 months ago
IP Geo Location 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.

We update our API on the weekly basis. If you would like to be notified of any major api updates, please let us know.

provider
rating
Followers on API
Follow this API
resourcesProvider WebsiteTerms of Service
More Details

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

Endpoint:

GET:  /ip/{ip}?format={format}&flter={filter}

Parameters:

  • {ip} : IPv4 or IPv6 address
  • {format} : Json or xml. The default format is json
  • {filter}: Filters the response to return only the required data. Options: asn, city, country, continent, area, currency, security, time, postcode. Can be comma separated.

Example response:

{
    "status": "success",
    "ip":"37.140.128.10",
    "type":"IPv4",
    "city":{
        "name":"Moscow",
        "population":10381222,
        "geonameid":524901
    },
    "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,
        "geonameid":2017370
    },
    "time":{
        "timezone":"Europe/Moscow",
        "time":"2019-01-24 15:17:07 +0300",
        "gtm_offset":10800
    },
    "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",
        "geonameid":6255148
    },
    "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.
Have a question about this API?Ask the API Provider.
More by natkapral
Developers who viewed IP Geo Location also viewed

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication