Open classes
Classes still looking for a trainer and open to everyone who fits, soonest first.
A direct invitation to one trainer is never listed here. There is no street address: only the region and the town.
Request
curl "https://api.dev.repp.co.il/v1/open-classes?style=yoga®ion=gush_dan"const response = await fetch("https://api.dev.repp.co.il/v1/open-classes?style=yoga®ion=gush_dan");
if (!response.ok) throw new Error((await response.json()).error.message);
const data = await response.json();/** One page of a list. */
interface OpenClassPage {
items: OpenClass[];
more: boolean;
}
/** A class still looking for a trainer, open to everyone who fits. No street address. */
interface OpenClass {
id: string;
style: Style;
date: string;
time: string;
starts_at: string;
duration_minutes: number;
pay: number;
region: Region;
city: string | null;
business: Business;
}
/** A training style: one of the keys in Catalog. */
type Style =
| "pilates"
| "barre"
| "strength"
| "crossfit"
| "trx"
| "calisthenics"
| "cardio"
| "hiit"
| "spinning"
| "running"
| "aqua"
| "yoga"
| "mobility"
| "meditation"
| "personal"
| "martial_arts"
| "boxing"
| "krav_maga"
| "dance"
| "zumba"
| "kids"
| "seniors"
| "other";
/** A region of Israel: one of the keys in Catalog. */
type Region = "gush_dan" | "shfela" | "sharon" | "haifa" | "jerusalem" | "north" | "south" | "judea_samaria";
/** A business, as the public index shows it. */
interface Business {
id: string;
name: string;
photo_url: string | null;
}
interface ApiError {
error: { code: string; message: string; reason?: string };
}
const response = await fetch("https://api.dev.repp.co.il/v1/open-classes?style=yoga®ion=gush_dan");
if (!response.ok) throw new Error(((await response.json()) as ApiError).error.message);
const data = (await response.json()) as OpenClassPage;import requests
response = requests.get(
"https://api.dev.repp.co.il/v1/open-classes?style=yoga®ion=gush_dan",
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/open-classes?style=yoga®ion=gush_dan");
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
{
"items": [
{
"id": "a4e5f6b7-c8d9-4e0f-8a1b-2c3d4e5f6a7b",
"style": "yoga",
"date": "2026-12-01",
"time": "18:00",
"starts_at": "2026-12-01T16:00:00+00:00",
"duration_minutes": 60,
"pay": 180,
"region": "gush_dan",
"city": "רמת גן",
"business": {
"id": "7c1f6a52-3b8e-4d1a-9f0e-2a6b8c4d5e10",
"name": "סטודיו נועה",
"photo_url": null
}
}
],
"more": true
}| Name | Type | Default | Description |
|---|---|---|---|
style | one of: pilates, barre, strength, crossfit, trx, calisthenics, cardio, hiit, spinning, running, aqua, yoga, mobility, meditation, personal, martial_arts, boxing, krav_maga, dance, zumba, kids, seniors, other | — | Only this style. |
region | one of: gush_dan, shfela, sharon, haifa, jerusalem, north, south, judea_samaria | — | Only this region. |
limit | integer 1–100 | 60 | How many to return, 1 to 100. |
offset | integer 0–5000 | 0 | How many to skip from the start (for the next page), up to 5000. |
Response fields (15)
| Field | Type | Description |
|---|---|---|
items | array of OpenClass | The items of this page. |
items[].id | string | Identifier. |
items[].style | one of: pilates, barre, strength, crossfit, trx, calisthenics, cardio, hiit, spinning, running, aqua, yoga, mobility, meditation, personal, martial_arts, boxing, krav_maga, dance, zumba, kids, seniors, other | A training style: one of the keys in Catalog. |
items[].date | string | A date in Israel, YYYY-MM-DD. |
items[].time | string | A time of day in Israel, HH:MM, 24 hours. |
items[].starts_at | string | An exact moment, ISO 8601 with its offset. |
items[].duration_minutes | integer | Length of the class in minutes. |
items[].pay | integer | What the business pays the trainer, in whole shekels. |
items[].region | one of: gush_dan, shfela, sharon, haifa, jerusalem, north, south, judea_samaria | A region of Israel: one of the keys in Catalog. |
items[].city | string, nullable | The town, from our list of towns, or null. |
items[].business | Business | A business, as the public index shows it. |
items[].business.id | string | Identifier. |
items[].business.name | string | The business's name. |
items[].business.photo_url | string, nullable | The business's photo, or null. |
more | boolean | There is another page: ask again with a larger offset. |
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_parameter | A parameter is not one the endpoint accepts. The message names it. |
| 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. |