Country by IP Address API

Introduction

This API returns detailed information about the country identified by geolocating the provided IPv4 IP address. This includes ISO defined names, languages, currencies, United Nations and Word Bank defined region names and income levels. Powered by patent pending Next Generation IP Geolocation Technology.

Update Rate

Geolocation data: re-evaluated every 2 hours or at least once daily

Country object data: usually updates at least once a month

API Pricing

  1. Monthly Subscription
    FREE 10,000 queries/month
    Additional 10,000 queries US$2.00/month
  2. Annual Subscription
    FREE 10,000 queries/month
    Additional 10,000 queries US$1.60/month

Request Format

Order

Parameter

Required

Data type

Description

1

ip

No

string

IPv4 IP address in a string or numeric format. If omitted, the caller’s IP address is assumed

2

key

Yes

string

Your API key

Response Format

Field

Data type

Description

ip

string

Requested IPv4 IP address in a string format

country

<Country> object

Geolocated Country

Data Objects

Country object

Field

Data type

Description

isoAlpha2

string

ISO 3166-1 Alpha-2 code

isoAlpha3

string

ISO 3166-1 Alpha-3 code

m49Code

16 bit integer

United Nations M.49 code

isoName

string

ISO 3166-1 Country name

isoAdminLanguages

Array of <Language> objects

Administrative languages as defined by ISO 3166-1 standard

unRegion

string

Region name as defined by United Nations

currency

<Currency> object

Currency as defined by ISO 4217 standard

wbRegion

<WbNode> object

Region name as defined by World Bank

wbIncomeLevel

<WbNode> object

Income level as defined by World Bank

callingCode

string

Calling code

countryFlagEmoji

string

Country emoji

Language object

Field

Data type

Description

isoAlpha2

string

ISO 3166-1 Alpha-2 code

isoAlpha3

string

ISO 3166-1 Alpha-3 code

isoName

string

ISO 3166-1 Language name

Currency object

Field

Data type

Description

numericCode

string

ISO 4217 standard numeric code

code

string

ISO 4217 standard code

Name

string

ISO 4217 English name

minorUnits

byte

ISO 4217 minor units as the currency exponent  (e.g. 2 = 1/100)

WbNode object

Field

Data type

Description

id

string

Identification number

iso2Code

string

ISO 2 letters code

value

string

Value

Try It Now


Use the form below to try out this API.

Parameters


Parameter Type Your Input Value
ip string
key string


Curl



Request URL



Response


Awaiting request submission...

Related APIs