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.

Endpoints

IPv4 only API Endpoint

Use this endpoint to force API calls routed over the IPv4 network only

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

Dual-Stack API Endpoint

This endpoint has native IPv6 support and backs the API calls routed over both IPv4 and IPv6 networks

GET
https://api-bdc.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-bdc.net/data/country-info?code=au&localityLanguage=en&key=[YOUR API KEY]
  

Example response

Schema

application/json