One country by ISO alpha-2, alpha-3 or numeric code

Full details of one country by its ISO 3166 alpha-2 (IN) or alpha-3 (IND) code.

Request

GEThttps://countries-info.p.apihiver.com/v1/countries/IN
*
String. ISO alpha-2 (IN) or alpha-3 (IND) country code.
Language
Client
1curl --request GET \
2  --url https://countries-info.p.apihiver.com/v1/countries/IN \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

One country by ISO alpha-2, alpha-3 or numeric code: Countries Info API reference

Full details of one country by its ISO 3166 alpha-2 (`IN`) or alpha-3 (`IND`) code. This endpoint is part of the Countries Info API: Every country's capital, population, area, currency, calling code, languages, continent and neighbours — by code, name or currency.

Example response (200, application/json)

Success.

1{
2  "tld": ".in",
3  "code": "IN",
4  "name": "India",
5  "code3": "IND",
6  "capital": "New Delhi",
7  "area_km2": 3287590,
8  "continent": "Asia",
9  "languages": [
10    "en-IN",
11    "hi",
12    "bn"
13  ],
14  "neighbours": [
15    "CN",
16    "NP",
17    "MM"
18  ],
19  "population": 1352617328,
20  "calling_code": "+91",
21  "numeric_code": "356",
22  "currency_code": "INR",
23  "currency_name": "Rupee",
24  "continent_code": "AS",
25  "postal_code_format": "######"
26}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "A parameter has the wrong format — the message names it."
    5  }
    6}
  • 404 — Nothing matches the value you sent.
    1{
    2  "error": {
    3    "code": "NOT_FOUND",
    4    "message": "No country with code ZZ."
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.