Public JSON API for widgets, group sites, and integrations
Overview
Group API methods return JSON. The path uses the group slug — the same one as on the group page URL.
https://esya.ru/api/group/groupSlug/…
Responses are always JSON (Content-Type: application/json).
The groupSlug parameter is the public group id (same as in the group page URL).
Public GET methods are cacheable; respect Cache-Control when you need fresh data.
Success is HTTP 200 with a JSON payload. An error is the same 4xx/5xx status and an application/problem+json document (see Errors).
Group API
GET/api/group/{groupSlug}/events
Event catalog
List of the group’s public events with summary counts for participants, written reviews (with text), star-only ratings (no text), and photos. Cursor pagination, 25 items per page. Full reviews and photos are on the event detail endpoint.
Parameters
Name
In
Description
groupSlug
path
Group slug.
cursor
query
Next-page cursor from the previous response nextCursor field.
year
query
Optional year filter (by event start date).
Response fields: limit, hasMore, nextCursor. Pass cursor=nextCursor for the next page. Invalid cursor — HTTP 400. Each item includes an api link to the full card.
GET/api/group/{groupSlug}/events/next
Next / current event
Returns the group’s relevant event: in progress, recently finished (within 8 hours), or the nearest planned one. Includes description, distance, links, map, trip type, difficulty, status, contacts, and route progress.
Parameters
Name
In
Description
groupSlug
path
Group slug.
HTTP 404 when there is no suitable event. authenticated and canProtocol depend on tracker auth. Cache is disabled while the event is in_progress and when the request comes from an authenticated tracker.
GET/api/group/{groupSlug}/events/{slug}
Event details
Full event payload: description, route, participants, written reviews (with text), star-only ratings (no text), and CDN photos (thumb / medium / large).
Parameters
Name
In
Description
groupSlug
path
Group slug.
slug
path
Event slug.
HTTP 404 if the event is missing or not in the public list. reviews contains only non-empty text; ratings are star scores without text. avgRating includes all participant scores.
GET/api/group/{groupSlug}/reviews
Reviews
Up to 3 random written reviews (non-empty text) across the group’s events. Optionally filter by event start year.
Parameters
Name
In
Description
groupSlug
path
Group slug.
year
query
Optional year filter (by event start date).
Response array reviews lists only written reviews (author, scores, text, event summary). If none are found, the response is HTTP 200 and an empty array.
GET/api/group/{groupSlug}/photos
Photos
Without order — up to 100 latest group photos (by taken or upload date). order=random — a random sample, limit defaults to 20, year is optional. For a single photo pass limit=1 and use the first item.
Parameters
Name
In
Description
groupSlug
path
Group slug.
order
query
random — a random sample. Omit it for the latest photos. Any other value is HTTP 400.
limit
query
How many random photos to return. Default 20, maximum 100. Ignored for the latest photos.
year
query
Optional year filter (by event start date).
Requires group S3 storage (HTTP 503 if not configured). If there are no photos, the response is HTTP 200, count 0 and an empty photos array. Image URLs: https://i.esya.ru/thumb|medium|large/HASH.avif (legacy .webp redirects with 301).
GET/api/group/{groupSlug}/events/next/protocol
Current-event protocol
Participants of the same current event that …/events/next returns: id, name, status, phone, telegram, link, and comment. Requires tracker device auth and protocol edit rights.
Parameters
Name
In
Description
groupSlug
path
Group slug.
Without auth — 401. Without rights — 403. No current event — 404. The response is not cached.
PATCH updates a participant status and comment. The JSON body needs status, comment, or both. An empty comment clears the comment.
Parameters
Name
In
Description
groupSlug
path
Group slug.
id
path
Protocol participant UUID (for PATCH).
Neither status nor comment, or an unknown status — 400. Unknown id — 404. A participant from another event — 403. Without auth — 401, without rights — 403.
Errors
On failure the HTTP status is not 200. The body is application/problem+json: type, title, numeric status, and detail. This is not an envelope with status: error as a string.