IP Geo Location

FREEMIUM
Verified
Door Geo API | Bijgewerkt לפני 4 ימים | Location
Populariteit

9.9 / 10

Latency

194ms

Serviceniveau

100%

Health Check

N/A

README

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

Endpoint:


GET:  /ip/{ip}

Parameters:

  • {ip} : IPv4 or IPv6 address
  • {format} : Json or xml. The default format is json
  • {language} : the language of the returned data. Options are: en,ru,zh,es,ar,fr,fa,ja,pl,it,pt,de
  • {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 request


GET:  /ip/37.140.128.10?filter=country,time

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",
        "flag":{
                "emoji":"🇷🇺",
                "file":"http://commons.wikimedia.org/wiki/Special:FilePath/Flag_of_Russia.svg",
                "unicode":"U+1F1F7 U+1F1FA"
        }
        "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.
Volgers: 58
Bronnen:
Productwebsite Gebruiksvoorwaarden
API maker:
Rapid account: Geo API
Geo API
natkapral
Log in om API te beoordelen
Beoordeling: 2.7 - Stemmen: 7