Holidayapi

Holidays

Holidays are hard. We make them easy.

Data & analytics#calendar

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Holidays are hard. We make them easy.

Endpoints 5

  • GETRetrieves a list public holidays and observances for countries, states and provinces./v1/holidays?key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&country=US&year=2015List Holidays
  • GETRetrieves a list countries with states and provinces./v1/countries?key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxList Countries
  • GETRetrieves a list languages./v1/languages?key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxList Languages
  • GETCalculates the workday (based on country's workweek) that occurs a given number of days after a date./v1/workday?key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&country=US&start=2015-07-01&days=7Get Workday
  • GETCalculates the number of workdays (based on country's workweek) that occur between a given date range./v1/workdays?key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&country=US&start=2015-07-01&end=2015-07-10Get Workdays

API details

Base URL
https://holidayapi.com
Authentication
None declared in the description
Operations
5 operations on 5 pathsGET 5
Response formats
application/json
Description format
OpenAPI 3.0.3, API version 1.0

How to test the Holidays in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Holidays collection, without the publisher's secrets.
  3. Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
  4. Send a requestPick an endpoint, for example “Retrieves a list public holidays and observances for countries, states and provinces.” (GET /v1/holidays?key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&country=US&year=2015), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Holidays?

Holidays are hard. We make them easy. It is listed under Data & analytics and has 5 endpoints.

Who publishes the Holidays?

It is listed from Holidayapi's public API description (an OpenAPI document), not published by Holidayapi on Swastik Codes. Anyone who controls holidayapi.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Holidays?

Requests go to https://holidayapi.com. Endpoint paths are added to this base URL.

How do I authenticate with the Holidays?

Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.

How many endpoints does the Holidays have?

5 operations on 5 paths (5 GET).

Is forking the Holidays free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.