Catalog
The fixed lists - training styles, regions and days of the week - with their Hebrew names.
The keys are what style and region take everywhere. A key never changes or goes away within a version, but new ones may join a list (15 training styles joined on 2026-11-26, 23 in all): read the list rather than hard-coding it, and treat an unknown key as other.
Request
curl "https://api.dev.repp.co.il/v1/catalog"const response = await fetch("https://api.dev.repp.co.il/v1/catalog");
if (!response.ok) throw new Error((await response.json()).error.message);
const data = await response.json();/** The fixed lists: styles, regions and days. */
interface Catalog {
styles: {
key: string;
label: string;
}[];
regions: {
key: string;
label: string;
}[];
days: {
key: number;
label: string;
}[];
}
interface ApiError {
error: { code: string; message: string; reason?: string };
}
const response = await fetch("https://api.dev.repp.co.il/v1/catalog");
if (!response.ok) throw new Error(((await response.json()) as ApiError).error.message);
const data = (await response.json()) as Catalog;import requests
response = requests.get(
"https://api.dev.repp.co.il/v1/catalog",
timeout=30,
)
if not response.ok:
raise RuntimeError(response.json()["error"]["message"])
data = response.json()<?php
$ch = curl_init("https://api.dev.repp.co.il/v1/catalog");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 400) {
throw new RuntimeException($data["error"]["message"]);
}Response
200 · application/json
{
"styles": [
{
"key": "pilates",
"label": "פילאטיס"
},
{
"key": "yoga",
"label": "יוגה ומיינדפולנס"
}
],
"regions": [
{
"key": "gush_dan",
"label": "גוש דן"
},
{
"key": "sharon",
"label": "השרון ופתח תקווה"
}
],
"days": [
{
"key": 0,
"label": "א׳"
},
{
"key": 1,
"label": "ב׳"
}
]
}Response fields (9)
| Field | Type | Description |
|---|---|---|
styles | array of object | Training styles. |
styles[].key | string | The key, as it is sent in parameters. |
styles[].label | string | The name in Hebrew. |
regions | array of object | Regions. |
regions[].key | string | The key, as it is sent in parameters. |
regions[].label | string | The name in Hebrew. |
days | array of object | Days of the week. |
days[].key | integer | Day number, 0 = Sunday. |
days[].label | string | The name in Hebrew. |
| Status | Code | Meaning |
|---|---|---|
| 429 | too_many_requests | Over the rate limit. Wait the seconds in Retry-After (60) and go on. |
| 500 | server_error | Something failed on our side. Try again shortly. |