Paņem brīvdienu Calendar API

The Calendar API from Paņem brīvdienu — 2 operation(s) for calendar.

GitHub OpenAPI

Operations 2

GET /api/v1/calendar/{year}/holidays List a year's public holidays #
GET /api/v1/calendar/{year}/statistics Count a year's working days and days off #

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/panembrivdienu-lv:panembrivdienu-lv-calendar-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

panembrivdienu-lv-calendar-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Paņem brīvdienu Calendar API
  version: '1'
  summary: Latvian public holidays, time-off planning and annual leave estimates.
  description: 'Calendars cover 2026 and 2027 and assume a Monday-to-Friday workweek. The API is open without a key: anonymous clients get 10 requests per second with a burst of 20. An API key (request one through the site''s contact form) raises that to 100 per second with a burst of 200. JSON request bodies are limited to 64 KiB.'
  contact:
    name: SIA Valksor
    url: https://panembrivdienu.lv/en#contact
  license:
    name: BSD-3-Clause
    identifier: BSD-3-Clause
servers:
- url: https://panembrivdienu.lv
security:
- {}
- apiKey: []
tags:
- name: Calendar
paths:
  /api/v1/calendar/{year}/holidays:
    get:
      operationId: listHolidays
      summary: List a year's public holidays
      description: Statutory holidays with Latvian and English names, sorted by date. With apply_transfers=true, the 2026 transferred days off are listed too, marked with is_moved_day.
      parameters:
      - $ref: '#/components/parameters/Year'
      - $ref: '#/components/parameters/ApplyTransfers'
      responses:
        '200':
          description: The year's holidays.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HolidaysResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/InvalidAPIKey'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      tags:
      - Calendar
  /api/v1/calendar/{year}/statistics:
    get:
      operationId: getCalendarStatistics
      summary: Count a year's working days and days off
      parameters:
      - $ref: '#/components/parameters/Year'
      - $ref: '#/components/parameters/ApplyTransfers'
      responses:
        '200':
          description: The year's day counts, working hours and monthly breakdown.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CalendarStatisticsResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/InvalidAPIKey'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      tags:
      - Calendar
components:
  parameters:
    ApplyTransfers:
      name: apply_transfers
      in: query
      description: Apply the 2026 workday transfers (January 2 with January 17, June 22 with June 27). They apply to specified state-funded institutions and are opt-in. Only valid for 2026.
      schema:
        type: boolean
        default: false
    Year:
      name: year
      in: path
      required: true
      schema:
        type: integer
        enum:
        - 2026
        - 2027
  responses:
    MethodNotAllowed:
      description: The path exists but not for this method (METHOD_NOT_ALLOWED).
      headers:
        Allow:
          description: The methods the path accepts.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InvalidAPIKey:
      description: An API key was sent but is not known (INVALID_API_KEY).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    BadRequest:
      description: Invalid parameters (VALIDATION_ERROR) or body (INVALID_JSON).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    TooManyRequests:
      description: The client's rate limit is used up (RATE_LIMIT_EXCEEDED).
      headers:
        Retry-After:
          description: Seconds until the next request is allowed.
          schema:
            type: integer
            minimum: 1
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    HolidaysResponse:
      type: object
      required:
      - year
      - transfers_applied
      - holidays
      properties:
        year:
          type: integer
        transfers_applied:
          type: boolean
        holidays:
          type: array
          items:
            $ref: '#/components/schemas/Holiday'
    MonthStatistics:
      type: object
      required:
      - month
      - working_days
      - working_hours
      - weekday_holidays
      - pre_holiday_dates
      - moved_days_off
      - moved_workdays
      properties:
        month:
          type: integer
          minimum: 1
          maximum: 12
        working_days:
          type: integer
          description: Working days, including Saturdays that became working days through a transfer.
        working_hours:
          type: integer
          description: 8 hours per working day, minus one hour for each pre-holiday day.
        weekday_holidays:
          type: integer
          description: Public holidays that fall on a weekday; holidays on a weekend are not counted.
        pre_holiday_dates:
          type: array
          description: Working days shortened by one hour because a public holiday follows on the next calendar day (Article 135 of the Labour Law).
          items:
            type: string
            format: date
        moved_days_off:
          type: array
          description: Weekdays that became days off through a transfer; empty unless apply_transfers is true.
          items:
            type: string
            format: date
        moved_workdays:
          type: array
          description: Saturdays that became working days through a transfer; empty unless apply_transfers is true.
          items:
            type: string
            format: date
    Holiday:
      type: object
      required:
      - date
      - name_lv
      - name_en
      - is_moved_day
      properties:
        date:
          $ref: '#/components/schemas/Date'
        name_lv:
          type: string
        name_en:
          type: string
        is_moved_day:
          type: boolean
          description: A day off from the 2026 workday transfers rather than a statutory holiday.
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              examples:
              - VALIDATION_ERROR
            message:
              type: string
            request_id:
              type: string
    CalendarStatisticsResponse:
      type: object
      required:
      - year
      - transfers_applied
      - total_days
      - working_days
      - weekend_days
      - holidays
      - moved_working_days
      - moved_days_off
      - total_days_off
      - working_hours
      - months
      properties:
        year:
          type: integer
        transfers_applied:
          type: boolean
        total_days:
          type: integer
        working_days:
          type: integer
        weekend_days:
          type: integer
        holidays:
          type: integer
        moved_working_days:
          type: integer
        moved_days_off:
          type: integer
        total_days_off:
          type: integer
          description: Weekends, holidays and transferred days off.
        working_hours:
          type: integer
          description: 'Working hours of the year: 8 per working day, minus one hour for each pre-holiday day.'
        months:
          type: array
          description: 'Working time of each month, January first. months[].working_days includes transferred working Saturdays, while the top-level working_days does not. months[].weekday_holidays counts only holidays on weekdays, while the top-level holidays counts all. pre_holiday_dates are computed on the selected calendar: with apply_transfers the day before a transferred day off is not shortened.'
          items:
            $ref: '#/components/schemas/MonthStatistics'
    Date:
      type: string
      format: date
      examples:
      - '2026-06-24'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Optional. Raises the rate limit; a supplied but unknown key returns 401.
externalDocs:
  description: API documentation
  url: https://panembrivdienu.lv/api-docs