Business Days API (Tachles Tools) Holidays API

Calendars and their public holidays.

GitHub OpenAPI

Operations 2

GET /v1/holidays List the public holidays of a year #
GET /v1/calendars List every calendar #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tachlestools-com:tachlestools-com-holidays-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tachlestools-com-holidays-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'Business Days API: Working Days Holidays API'
  version: 1.1.0
  description: 'Working-day arithmetic with real public holidays: add business days to a date, count the working days between two dates, check one date, or list a year''s public holidays.

    115 calendars: countries and their regions (for example US, GB-ENG, DE-BY). Years 2010 to 2045.


    **Keys.** Every call except `/v1/calendars`, `/v1/about` and `/health` needs a key in the `X-Api-Key` header (or `?key=`).


    | Plan | Calls a month | Price |

    |---|---|---|

    | Free | 100 | $0, no end date, no credit card, one key per email address |

    | 14-day trial | 1,000 | $0 |

    | Starter | 10,000 | $49 a year |

    | Pro | 100,000 | $149 a year |

    | Business | 1,000,000 | $399 a year |


    Get a key at https://tachlestools.com/en/business-days-api/. Calls are counted per calendar month (UTC); `/v1/usage` is not counted.


    **Rules.** `workday` works like WORKDAY in Excel and Google Sheets (the start day is not counted). `networkdays` works like NETWORKDAYS (both ends counted).


    **Errors.** Every error is JSON: `{"error": "", "message": ""}`.


    Holiday data: the date-holidays project (CC BY 3.0), checked against a second source and corrected from official lists. See `/v1/about`.'
  contact:
    name: Tachles Tools
    url: https://tachlestools.com/en/support/
    email: support@tachlestools.com
  termsOfService: https://tachlestools.com/en/terms/
servers:
- url: https://api.tachlestools.com
security:
- ApiKeyHeader: []
- ApiKeyQuery: []
tags:
- name: Holidays
  description: Calendars and their public holidays.
paths:
  /v1/holidays:
    get:
      tags:
      - Holidays
      operationId: listHolidays
      summary: List the public holidays of a year
      description: The public holidays of one calendar in one year, substitute (observed) days included. `calendar=none` is not accepted here.
      parameters:
      - $ref: '#/components/parameters/calendar'
      - name: year
        in: query
        required: true
        schema:
          type: integer
          minimum: 2010
          maximum: 2045
          example: 2027
      - $ref: '#/components/parameters/weekend'
      - $ref: '#/components/parameters/days_off'
      responses:
        '200':
          description: OK
          headers:
            X-Quota-Limit:
              description: Calls your plan allows in a calendar month.
              schema:
                type: integer
                example: 100
            X-Quota-Remaining:
              description: Calls left this month, after this one.
              schema:
                type: integer
                example: 99
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Holidays'
              examples:
                england:
                  summary: GET /v1/holidays?calendar=GB-ENG&year=2027
                  value:
                    calendar:
                      id: GB-ENG
                      name: United Kingdom – England
                      weekend:
                      - Saturday
                      - Sunday
                    year: 2027
                    count: 10
                    holidays:
                    - date: '2027-01-01'
                      name: New Year's Day
                      weekday: Friday
                      on_weekend: false
                    - date: '2027-03-26'
                      name: Good Friday
                      weekday: Friday
                      on_weekend: false
                    - date: '2027-03-29'
                      name: Easter Monday
                      weekday: Monday
                      on_weekend: false
        '400':
          description: Something in the request needs fixing. The message says what.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Error'
                - type: object
                  properties:
                    error:
                      type: string
                      enum:
                      - missing_calendar
                      - unknown_calendar
                      - region_required
                      - invalid_date
                      - out_of_range
                      - invalid_weekend
                      - too_many_days_off
                      - invalid_year
                      - invalid_days
              examples:
                region_required:
                  summary: GET /v1/holidays?calendar=Australia&year=2026
                  value:
                    error: region_required
                    message: 'Australia has different holidays by region: choose one.'
                    regions:
                    - id: AU-ACT
                      name: Australia – Australian Capital Territory
                    - id: AU-NSW
                      name: Australia – New South Wales
                    - id: AU-NT
                      name: Australia – Northern Territory
                invalid_date:
                  summary: GET /v1/workday?calendar=US&start=2026-02-30&days=1
                  value:
                    error: invalid_date
                    message: 'start is not a real date: 2026-02-30.'
        '401':
          $ref: '#/components/responses/NoKey'
        '403':
          $ref: '#/components/responses/Expired'
        '429':
          $ref: '#/components/responses/OverQuota'
        '500':
          $ref: '#/components/responses/ServerError'
  /v1/calendars:
    get:
      tags:
      - Holidays
      operationId: listCalendars
      summary: List every calendar
      security: []
      description: Every country and region, with its id and usual weekend. No key needed, and not counted.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Calendars'
              examples:
                all:
                  summary: GET /v1/calendars
                  value:
                    count: 115
                    years:
                      first: 2010
                      last: 2045
                    calendars:
                    - id: AU-ACT
                      name: Australia – Australian Capital Territory
                      country: AU
                      region: true
                      weekend:
                      - Saturday
                      - Sunday
                    - id: AU-NSW
                      name: Australia – New South Wales
                      country: AU
                      region: true
                      weekend:
                      - Saturday
                      - Sunday
                    - id: AU-NT
                      name: Australia – Northern Territory
                      country: AU
                      region: true
                      weekend:
                      - Saturday
                      - Sunday
        '404':
          $ref: '#/components/responses/NotFound'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    CalendarUsed:
      type: object
      additionalProperties: false
      required:
      - id
      - name
      - weekend
      properties:
        id:
          type: string
          description: The calendar id, or `none`.
          example: GB-ENG
        name:
          type: string
          example: United Kingdom – England
        weekend:
          type: array
          items:
            $ref: '#/components/schemas/Weekday'
          description: The weekly days off that were used.
      description: The calendar and weekend the answer was worked out with, so you can check it.
    Error:
      type: object
      additionalProperties: false
      required:
      - error
      - message
      properties:
        error:
          type: string
          enum:
          - missing_calendar
          - unknown_calendar
          - region_required
          - invalid_date
          - out_of_range
          - invalid_weekend
          - too_many_days_off
          - invalid_year
          - invalid_days
          - missing_key
          - invalid_key
          - expired_key
          - quota_exceeded
          - not_found
          - method_not_allowed
          - server_error
          description: A code you can test in your program.
        message:
          type: string
          description: What went wrong and what to do, in plain English.
        regions:
          type: array
          description: 'With `region_required`: the regions to choose from.'
          items:
            type: object
            additionalProperties: false
            required:
            - id
            - name
            properties:
              id:
                type: string
              name:
                type: string
        expired:
          type:
          - string
          - 'null'
          format: date
          description: 'With `expired_key`: the day the key ended.'
        plan:
          $ref: '#/components/schemas/Plan'
        limit:
          type: integer
          description: 'With `quota_exceeded`: the calls your plan allows in a month.'
        resets:
          type: string
          format: date
          description: 'With `quota_exceeded`: the day counting starts again.'
    Calendars:
      type: object
      additionalProperties: false
      required:
      - count
      - years
      - calendars
      properties:
        count:
          type: integer
        years:
          type: object
          additionalProperties: false
          required:
          - first
          - last
          properties:
            first:
              type: integer
            last:
              type: integer
        calendars:
          type: array
          items:
            type: object
            additionalProperties: false
            required:
            - id
            - name
            - country
            - region
            - weekend
            properties:
              id:
                type: string
                example: DE-BY
              name:
                type: string
                example: Germany – Bavaria
              country:
                type: string
                description: Two-letter country code.
                example: DE
              region:
                type: boolean
                description: True for a region of a country.
              weekend:
                type: array
                items:
                  $ref: '#/components/schemas/Weekday'
    Weekday:
      type: string
      enum:
      - Sunday
      - Monday
      - Tuesday
      - Wednesday
      - Thursday
      - Friday
      - Saturday
    Plan:
      type: string
      enum:
      - free
      - trial
      - starter
      - pro
      - business
      description: 'free: 100 calls a month; trial: 1,000 calls a month; starter: 10,000 calls a month; pro: 100,000 calls a month; business: 1,000,000 calls a month.'
    Holidays:
      type: object
      additionalProperties: false
      required:
      - calendar
      - year
      - count
      - holidays
      properties:
        calendar:
          $ref: '#/components/schemas/CalendarUsed'
        year:
          type: integer
        count:
          type: integer
        holidays:
          type: array
          items:
            type: object
            additionalProperties: false
            required:
            - date
            - name
            - weekday
            - on_weekend
            properties:
              date:
                type: string
                format: date
              name:
                type: string
              weekday:
                $ref: '#/components/schemas/Weekday'
              on_weekend:
                type: boolean
                description: True when the holiday falls on a weekly day off.
  responses:
    ServerError:
      description: Something went wrong on our side.
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/Error'
            - type: object
              properties:
                error:
                  type: string
                  enum:
                  - server_error
    MethodNotAllowed:
      description: Only GET is supported.
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/Error'
            - type: object
              properties:
                error:
                  type: string
                  enum:
                  - method_not_allowed
          examples:
            method_not_allowed:
              summary: POST /v1/calendars
              value:
                error: method_not_allowed
                message: Use GET.
    NoKey:
      description: No key was sent, or the key is not valid.
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/Error'
            - type: object
              properties:
                error:
                  type: string
                  enum:
                  - missing_key
                  - invalid_key
          examples:
            missing_key:
              summary: GET /v1/workday?calendar=US&start=2026-12-23&days=5 (no key)
              value:
                error: missing_key
                message: Send your API key in the X-Api-Key header. Get a free key (100 calls a month) at https://tachlestools.com/en/business-days-api/#plans
            invalid_key:
              summary: GET /v1/workday?calendar=US&start=2026-12-23&days=5 (a wrong key)
              value:
                error: invalid_key
                message: This API key is not valid. Copy it again from your email, or get one at https://tachlestools.com/en/business-days-api/#plans
    NotFound:
      description: No such endpoint.
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/Error'
            - type: object
              properties:
                error:
                  type: string
                  enum:
                  - not_found
          examples:
            not_found:
              summary: GET /v1/nothing
              value:
                error: not_found
                message: Unknown endpoint. Try /v1/calendars, /v1/holidays, /v1/is-workday, /v1/workday, /v1/networkdays or /v1/usage.
    Expired:
      description: The trial or the paid year has ended. A free key has no end date.
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/Error'
            - type: object
              required:
              - expired
              properties:
                error:
                  type: string
                  enum:
                  - expired_key
          examples:
            expired_key:
              summary: GET /v1/workday?calendar=US&start=2026-12-23&days=5 (a trial key that ended)
              value:
                error: expired_key
                message: Your trial ended on 2026-11-01. Renew at https://tachlestools.com/en/business-days-api/#plans
                expired: '2026-11-01'
    OverQuota:
      description: This month's calls are used up. Counting starts again on the 1st (UTC). Nothing is charged.
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/Error'
            - type: object
              required:
              - plan
              - limit
              - resets
              properties:
                error:
                  type: string
                  enum:
                  - quota_exceeded
          examples:
            quota_exceeded:
              summary: GET /v1/workday?calendar=US&start=2026-12-23&days=5 (call 101 with a free key)
              value:
                error: quota_exceeded
                message: This key has used its 100 calls for 2026-11. The count starts again on 2026-12-01. For more calls, see https://tachlestools.com/en/business-days-api/#plans
                plan: free
                limit: 100
                resets: '2026-12-01'
  parameters:
    weekend:
      name: weekend
      in: query
      required: false
      description: 'The weekly days off, when they differ from the country''s usual weekend: `sat-sun`, `fri-sat`, `sun`, `sat`, `fri`, `thu-fri`, `sun-mon`, `none`, or 7 digits Monday to Sunday where 1 is a day off (`0000011`).'
      schema:
        type: string
        example: fri-sat
    days_off:
      name: days_off
      in: query
      required: false
      description: Your own closed dates, comma separated (`2026-12-24,2026-12-31`). Up to 366.
      schema:
        type: string
        example: 2026-12-24,2026-12-31
    calendar:
      name: calendar
      in: query
      required: true
      description: A calendar id from `/v1/calendars` (`US`, `GB-ENG`, `DE-BY`), a name (`Germany`, `Bavaria`, `uk`), or `none` for weekends only. A country whose holidays differ by region answers `region_required` with the regions to choose from.
      schema:
        type: string
        example: GB-ENG
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-Api-Key
      description: Your key, as it arrived by email (it starts with `TT1-`).
    ApiKeyQuery:
      type: apiKey
      in: query
      name: key
      description: The same key in the address, for places where a header can't be set. The header is safer.
externalDocs:
  description: Guide, prices and keys
  url: https://tachlestools.com/en/business-days-api/