Holiday API · Schema
Country
A country (or subdivision) supported by Holiday API.
CalendarHolidaysPublic HolidaysObservancesReference DataCountriesLanguagesWorkdaysBusiness DaysLocalization
Properties
| Name | Type | Description |
|---|---|---|
| code | string | Primary country code (ISO 3166-1 alpha-2). |
| name | string | Country name. |
| codes | object | |
| languages | array | Spoken languages (ISO 639-1 codes). |
| currencies | array | |
| flag | string | URL to a 64x64 flag image. |
| subdivisions | array | |
| weekend | array |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/holidays/main/json-schema/holidays-country-schema.json",
"title": "Country",
"description": "A country (or subdivision) supported by Holiday API.",
"type": "object",
"required": ["code", "name", "codes", "languages", "currencies", "flag", "subdivisions", "weekend"],
"properties": {
"code": {"type": "string", "description": "Primary country code (ISO 3166-1 alpha-2)."},
"name": {"type": "string", "description": "Country name."},
"codes": {
"type": "object",
"required": ["alpha-2", "alpha-3", "numeric"],
"properties": {
"alpha-2": {"type": "string", "minLength": 2, "maxLength": 2},
"alpha-3": {"type": "string", "minLength": 3, "maxLength": 3},
"numeric": {"type": "integer"}
}
},
"languages": {
"type": "array",
"items": {"type": "string"},
"description": "Spoken languages (ISO 639-1 codes)."
},
"currencies": {
"type": "array",
"items": {
"type": "object",
"required": ["alpha"],
"properties": {
"alpha": {"type": "string", "minLength": 3, "maxLength": 3, "description": "ISO 4217 currency code."}
}
}
},
"flag": {"type": "string", "format": "uri", "description": "URL to a 64x64 flag image."},
"subdivisions": {
"type": "array",
"items": {
"type": "object",
"required": ["code", "name", "languages"],
"properties": {
"code": {"type": "string", "description": "ISO 3166-2 subdivision code."},
"name": {"type": "string"},
"languages": {"type": "array", "items": {"type": "string"}}
}
}
},
"weekend": {
"type": "array",
"items": {
"type": "object",
"required": ["name", "numeric"],
"properties": {
"name": {"type": "string"},
"numeric": {"type": "integer"}
}
}
}
}
}