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.
openapi: 3.2.0
info:
title: Paņem brīvdienu Health 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: Health
paths:
/api/v1/health:
get:
operationId: getHealth
summary: Check that the service is up
responses:
'200':
description: The service is up.
content:
application/json:
schema:
type: object
required:
- status
properties:
status:
type: string
const: ok
'401':
$ref: '#/components/responses/InvalidAPIKey'
'405':
$ref: '#/components/responses/MethodNotAllowed'
'429':
$ref: '#/components/responses/TooManyRequests'
tags:
- Health
components:
responses:
InvalidAPIKey:
description: An API key was sent but is not known (INVALID_API_KEY).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
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'
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:
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
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