Let someone else think about when the next public holiday is.
The API is being continually expanded with new countries and features. We guarantee the data is kept up to date, including last minute holiday changes.
Please get in touch with us at support@timeape.io if you are experiencing difficulties, or would like to request a feature or country.
The API uses standard HTTP status codes to indicate the success or failure of the API call. The body of the response will be JSON in the following format:
{
"message": "Missing required request parameters: [year]"
}
We currently only support API key authentication. Please provide this in each request.
Returns all the holidays for a given country
country required | string Country is expected in ISO 3166-1 alpha-2 format. e.g. au for Australia. |
year required | string Year is expected in YYYY format, e.g. 2020 |
200 response
400 response
500 response
curl -H 'x-api-key: 123456' \ "https://api.timeape.io/v1/holidays/au?year=2020"
[- {
- "country": "au",
- "holiday_date": "2020-06-08",
- "holiday_observed": "2020-06-08",
- "holiday_type": "public_holiday",
- "states": [
- "tas",
- "nt",
- "qld",
- "act",
- "nsw",
- "vic"
], - "title": "Queen's Birthday",
- "uuid": "ad97a9f2-f7ee-457b-95df-7325644d4efa",
- "year": "2020"
}
]
Returns all the holidays for a given state/province within a country
country required | string Country is expected in ISO 3166-1 alpha-2 format. e.g. au for Australia. |
state required | string Where possible, we try to stick to the local naming convention for states, territories and provinces of the country. |
year required | string Year is expected in YYYY format, e.g. 2020 |
200 response
400 response
500 response
curl -H 'x-api-key: 123456' \ "https://api.timeape.io/v1/holidays/au/vic?year=2020"
[- {
- "country": "au",
- "holiday_date": "2020-06-08",
- "holiday_observed": "2020-06-08",
- "holiday_type": "public_holiday",
- "states": [
- "tas",
- "nt",
- "qld",
- "act",
- "nsw",
- "vic"
], - "title": "Queen's Birthday",
- "uuid": "ad97a9f2-f7ee-457b-95df-7325644d4efa",
- "year": "2020"
}
]
country | string |
holiday_date | string |
holiday_observed | string |
holiday_type | string |
states | Array of strings |
title | string |
uuid | string |
year | integer <int32> |
{- "country": "au",
- "holiday_date": "2020-06-08",
- "holiday_observed": "2020-06-08",
- "holiday_type": "public_holiday",
- "states": [
- "tas",
- "nt",
- "qld",
- "act",
- "nsw",
- "vic"
], - "title": "Queen's Birthday",
- "uuid": "ad97a9f2-f7ee-457b-95df-7325644d4efa",
- "year": "2020"
}
country | string |
holiday_date | string |
holiday_observed | string |
holiday_type | string |
states | Array of strings |
title | string |
uuid | string |
year | integer <int32> |
[- {
- "country": "au",
- "holiday_date": "2020-06-08",
- "holiday_observed": "2020-06-08",
- "holiday_type": "public_holiday",
- "states": [
- "tas",
- "nt",
- "qld",
- "act",
- "nsw",
- "vic"
], - "title": "Queen's Birthday",
- "uuid": "ad97a9f2-f7ee-457b-95df-7325644d4efa",
- "year": "2020"
}
]