Nager.DateNager.Date public-holiday API
GET/api/v4/Countries/{countryCode}
Get country information
Gets country names, region, and available land-border information for an ISO 3166-1 alpha-2 code.
Look up supported countries, country information, annual or upcoming public holidays, today's holiday status, and the service version. The complete Community API v4 has six read-only endpoints; commercial use requires active sponsorship.
Request
- operationId
getCountry- Server
https://nagerholidays.com- Authentication
- None
Request parameters
countryCode
pathstringrequired
ISO 3166-1 alpha-2 country code.
US
Responses
200
CountryInfoWithBordersDtoapplication/json
Request succeeded.
Properties: borderscommonNamecountryCodenativeNameofficialNameregion
404
ProblemDetailsapplication/json
The requested country or resource was not found.
Properties: detailinstancestatustitletype
{
"borders": {
"commonName": "United States",
"countryCode": "US",
"nativeName": "United States",
"officialName": "United States of America",
"region": "Americas"
},
"commonName": "United States",
"countryCode": "US",
"nativeName": "United States",
"officialName": "United States of America",
"region": "Americas"
}