On this page

Country Info API

Introduction

This API returns detailed information about countries including ISO defined names, languages and currencies. United Nations and World Bank defined region names and income levels are also provided.

Get started

This API is part of the IP Geolocation package and is available in free and paid plans. Please visit the IP Geolocation package page for limits and pricing information.

Endpoint

GET
https://api.bigdatacloud.net/data/country-info

Request

Parameter
Type
Required
Description
Parameter
code
Type
string
Required
Yes
Description
Country code, acceptable in ISO 3166-1 Alpha-2, Alpha-3 or Numeric code formats
Parameter
localityLanguage
Type
string
Required
Optional, default value: en
Description
Preferred language for locality names in ISO 639-1 format, such as 'en' for English, 'es' for Spanish etc. If the requested language is not available for a requested location, it will default to English. If no English variant is known, will provide the native, local names
Parameter
key
Type
string
Required
Yes
Description
Your API key

Responses

Example query

https://api.bigdatacloud.net/data/country-info?code=au&localityLanguage=en&key=[YOUR API KEY]
  

Example response

  • 1
    {
  • 2
    "isoAlpha2": "AU",
  • 3
    "isoAlpha3": "AUS",
  • 4
    "m49Code": 36,
  • 5
    "name": "Australia",
  • 6
    "isoName": "Australia",
  • 7
    "isoNameFull": "Australia",
  • 8
    "isoAdminLanguages": [...]
    • 9
      {...}
      • 10
        "isoAlpha3": "eng",
      • 11
        "isoAlpha2": "en",
      • 12
        "isoName": "English",
      • 13
        "nativeName": "English"
      • 14
        }
    • 15
      ],
  • 16
    "unRegion": "Oceania/Australia and New Zealand",
  • 17
    "currency": {...}
    • 18
      "numericCode": 36,
    • 19
      "code": "AUD",
    • 20
      "name": "Australian Dollar",
    • 21
      "minorUnits": 2
    • 22
      },
  • 23
    "wbRegion": {...}
    • 24
      "id": "EAS",
    • 25
      "iso2Code": "Z4",
    • 26
      "value": "East Asia & Pacific"
    • 27
      },
  • 28
    "wbIncomeLevel": {...}
    • 29
      "id": "HIC",
    • 30
      "iso2Code": "XD",
    • 31
      "value": "High income"
    • 32
      },
  • 33
    "callingCode": "61",
  • 34
    "countryFlagEmoji": "🇦🇺",
  • 35
    "wikidataId": "Q408",
  • 36
    "geonameId": 2077456,
  • 37
    "continents": [...]
    • 38
      {...}
      • 39
        "continent": "Oceania",
      • 40
        "continentCode": "OC"
      • 41
        }
    • 42
      ]
  • 43
    }

Schema

application/json