Paņem brīvdienu · Schema

CalendarStatisticsResponse

CalendarLatviaHolidaysWorkdaysPlanner

Properties

Name Type Description
year integer
transfers_applied boolean
total_days integer
working_days integer
weekend_days integer
holidays integer
moved_working_days integer
moved_days_off integer
total_days_off integer Weekends, holidays and transferred days off.
working_hours integer Working hours of the year: 8 per working day, minus one hour for each pre-holiday day.
months array 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 we
View JSON Schema on GitHub

JSON Schema

panembrivdienu-lv-calendar-statistics-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/panembrivdienu-lv/json-schema/panembrivdienu-lv-calendar-statistics-response-schema.json",
  "title": "CalendarStatisticsResponse",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/panembrivdienu-lv-openapi.yml#/components/schemas/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": "#/$defs/MonthStatistics"
      }
    }
  },
  "$defs": {
    "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"
          }
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/panembrivdienu-lv-calendar-statistics-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.