Overview
Weekend as a Service returns the weekend days for a requested language as a JSON array. The service assumes a Monday-through-Sunday ordering for each locale.
Weekend rule: the API returns the 6th and 7th entries
(Saturday and Sunday) from the language dataset.
Quick start
Request a language-specific weekend array in one call.
GET /api/en.json ["Saturday", "Sunday"] Endpoint
Use the production base URL below.
https://waas.zsoltsimon.hu/api/{lang}.json | Parameter | Type | Description |
|---|---|---|
lang | string | ISO language code supported by the service. Case-insensitive. |
Responses
200 OK
Returns the weekend days for the requested language.
["Saturday", "Sunday"] Content type
All responses are UTF-8 JSON.
Content-Type: application/json; charset=utf-8 Errors
Unknown languages return a 404 payload with the supported
language list.
{
"error": "Language not found",
"available": ["ar", "az", "be", "bg", "bs", "ca"]
} Examples
curl
curl https://waas.zsoltsimon.hu/api/en.json JavaScript
const res = await fetch("/api/tr.json");
const days = await res.json();
console.log(days); Languages
The API supports the following language codes.
- ar
- az
- be
- bg
- bs
- ca
- cs
- da
- de
- el
- en
- es
- et
- fa
- fi
- fr
- he
- hr
- hu
- hy
- id
- it
- ja
- ka
- kk
- ko
- ky
- lt
- lv
- mk
- mn
- nb
- nl
- nn
- pl
- pt
- ro
- ru
- sk
- sl
- sr
- sv
- th
- tr
- uk
- ur
- uz
- vi
- zh
FAQ
Are the weekend days always Saturday and Sunday?
This service assumes a Monday-first week and returns Saturday/Sunday for every supported language.
How do I discover supported languages?
Review the supported language list on this page.
Can I request multiple languages at once?
Not in v1. Call each language endpoint individually.