Průvodce API statistik
API zpřístupňuje statistiky závodů jako veřejné soubory JSON. Data můžete využít například v klubovém přehledu nebo článku o závodech. API poskytuje stejná zveřejněná data jako web. Přístup nevyžaduje účet ani API klíč; soubory se aktualizují při publikaci webu, nejde o živý přenos výsledků.
Adresy a první požadavek
Každý web vydává vlastní data pod stejným prefixem:
- FUGA Cup: https://statistiky.fugacup.cz/stats-api/v1/
- Běžecký pohár: https://statistiky.bpkr.cz/stats-api/v1/
- H10: https://statistiky.h10.cz/stats-api/v1/ — připravuje se.
Začněte souborem index.json. Obsahuje katalog endpoints, počty záznamů counts, identifikátor sady generation, čas dat generatedAt, verzi apiVersion, způsob adresování osob personKey a dostupné modules. Cesty katalogu jsou relativní k základní adrese API. endpoints[].count počítá soubory, například persons.json je jeden soubor; počet osob udává counts.persons. Vzor persons/*.json označuje detaily, konkrétní klíče získáte ze seznamu osob. Samotný index.json se v katalogu znovu neuvádí.
Následující úplný příklad vznikl generátorem ze syntetických fixtures testovacího poháru. Adresa example.org, počty, čas i generace jsou ukázkové; nejde o data žádného veřejného webu.
{
"schemaVersion": 1,
"apiVersion": "1.4.0",
"generation": "2026-05-10T18:00:00Z-95e79d3edc1a",
"generatedAt": "2026-05-10T18:00:00Z",
"site": {
"code": "fugacup",
"name": "Testovací pohár (synthetic)",
"url": "https://cup.example.org"
},
"personKey": "slug",
"modules": [
"hall-of-fame",
"records",
"relays"
],
"endpoints": [
{
"path": "persons.json",
"kind": "list",
"count": 1
},
{
"path": "persons/*.json",
"kind": "detail",
"count": 4
},
{
"path": "seasons.json",
"kind": "list",
"count": 1
},
{
"path": "seasons/*.json",
"kind": "detail",
"count": 2
},
{
"path": "events.json",
"kind": "list",
"count": 1
},
{
"path": "events/*.json",
"kind": "detail",
"count": 2
},
{
"path": "races.json",
"kind": "list",
"count": 1
},
{
"path": "races/*.json",
"kind": "detail",
"count": 3
},
{
"path": "clubs.json",
"kind": "list",
"count": 1
},
{
"path": "clubs/*.json",
"kind": "detail",
"count": 2
},
{
"path": "stats.json",
"kind": "list",
"count": 1
},
{
"path": "ages.json",
"kind": "list",
"count": 1
},
{
"path": "search.json",
"kind": "list",
"count": 1
},
{
"path": "hall-of-fame.json",
"kind": "module",
"count": 1
},
{
"path": "records.json",
"kind": "module",
"count": 1
},
{
"path": "relays.json",
"kind": "module",
"count": 1
}
],
"counts": {
"persons": 4,
"seasons": 2,
"events": 2,
"races": 3,
"clubs": 2,
"cities": 0,
"results": 14
},
"semantics": {
"officialTime": "official",
"recordsIncludeRelays": false,
"topListUnit": "result",
"cancelledSeasonBreaksStreak": true,
"hiddenInRankings": "omitted",
"hiddenCategory": "null",
"unidentifiedRows": false
},
"redirects": []
}modules může obsahovat hall-of-fame, records, relays a cities. Modul bez dat chybí. Dostupnost ages.json ověřte přímo v endpoints; není samostatným modulem. Prázdné pole [] nebo hodnota null znamená, že web daný údaj nemá. Výpočty se mezi weby mohou lišit: semantics určuje druh času (officialTime), zahrnutí štafet do rekordů, řazení nejlepších výsledků po výkonech či osobách, přerušení série zrušenou sezónou a zacházení se skrytými osobami a řádky bez identity. Při porovnávání webů tyto hodnoty zohledněte.
Příklady čtení
curl --fail --silent --show-error \
https://statistiky.fugacup.cz/stats-api/v1/index.jsonKrátký příklad pro prohlížeč ověří stav odpovědi i shodu generace. V aplikaci zobrazte uživateli zprávu, pokud se data nepodaří načíst; při dalším pokusu začněte znovu katalogem.
const base = 'https://statistiky.fugacup.cz/stats-api/v1/';
async function readJson(path) {
const response = await fetch(new URL(path, base));
if (response.status !== 200) throw new Error('API file unavailable');
return response.json();
}
async function loadPersons() {
const index = await readJson('index.json');
const persons = await readJson('persons.json');
const latest = await readJson('index.json');
if (persons.generation !== index.generation ||
latest.generation !== index.generation) {
throw new Error('Generation changed; reload from index.json');
}
return persons.persons;
}
loadPersons().then(console.log).catch(console.error);Identifikátory a odkazy
Řiďte se vždy index.json.personKey:
regPersonId: detail má cestupersons/<regPersonId>.json. ID je nenulové celé číslo s nejvýše osmi číslicemi; záporné označuje osobuLOCAL. Je to identifikátor osoby napříč weby, ne číslo výsledku ani pořadí. Hodnotanullznamená, že osoba ID nemá; v tomto režimu pak nemá ani soubor detailu (hrefjenull).slug: každá osoba v seznamu má detail na cestěpersons/<slug>.json, i když máhref: null. PoleregPersonIdv tomto režimu není v žádném souboru. Slug je klíč URL konkrétního webu; stejný slug na dvou webech sám o sobě nedokazuje stejnou osobu. Bez společného ID osoby automaticky nespojujte podle jména.
Režim personKey zůstává v rámci hlavní verze pevný. Odkaz href vede na stránku webu, nikoli na JSON detail. Případné změny slugů popisuje redirects v katalogu. eventCode, seasonCode, clubSlug, citySlug a courseVersion přebírejte z dat; slugy používají malá písmena bez diakritiky, číslice a spojovníky. resultId, raceId a teamId platí pouze uvnitř jedné generace, neukládejte je jako trvalé klíče přes aktualizace.
Konzistence, cache a HTTP
Všechny soubory jedné publikace nesou stejnou generation. Při spojování dat ji porovnávejte s katalogem a po načtení sady znovu načtěte index.json. Když se generace změní nebo soubor nese jinou generaci, rozpracovanou sadu odložte a začněte novým katalogem. Cache různých souborů mohou při publikaci krátce vracet různé generace. Opakování omezte a při přetrvávající neshodě počkejte na obnovení cache.
Server podporuje GET, HEAD a OPTIONS a posílá CORS Access-Control-Allow-Origin: *. Hlavičku Content-Type: application/json pro soubory .json nastavuje hosting Azure Static Web Apps; není součástí konfigurace hlaviček API routy. Cache má Cache-Control: public, max-age=300, must-revalidate pro katalog i data. Při pravidelném stahování počkejte mezi aktualizacemi alespoň 300 sekund a využívejte již načtené soubory stejné generace.
Chybějící soubor vrací HTML stránku 404 webu bez CORS. API nemá JSON chybovou odpověď. Každý stav jiný než 200 považujte za nedostupný soubor a tělo nečtěte. V prohlížeči může kvůli chybějícímu CORS selhat přímo fetch; postup je stejný. Znovu načtěte katalog, ověřte dostupnost cesty a generaci a teprve potom oznamte chybu. Nevytvářejte nekonečnou smyčku opakovaných požadavků.
Soukromí
API neobsahuje data narození, e-maily, telefony ani jiné kontaktní údaje. Ročník narození může být u viditelných osob uveden. Skryté osoby chybí v seznamu osob, detailech i vyhledávání. Ve výsledcích mohou zůstat anonymní řádky: isHidden: true, slug: null, href: null a v režimu s ID také regPersonId: null. Jejich name nese anonymní označení webu, například syntetické fixtures používají „Anonymní závodník“. Označení zobrazujte tak, jak přišlo; nepovažujte ho za identifikátor osoby.
Skrytý výsledek neobsahuje ročník narození, klub ani město. Kategorie a přítomnost anonymních řádků v žebříčcích se řídí semantics.hiddenCategory a semantics.hiddenInRankings. Souhrnné statistiky zahrnují i skryté osoby. Řádek s isHidden: false a bez slugu či ID může být záznam bez přiřazené identity. U štafety je person: null, tým popisují teamId, teamName a members.
Verze a změny
apiVersion používá semver: patch opravuje chyby bez změny schémat, minor přidává pole, endpointy nebo moduly, major mění či odebírá pole, jejich význam nebo pravidla identifikátorů. Klient má tolerovat nová pole a dostupnost modulů číst z katalogu. Prefix /stats-api/v1/ zůstává pro verzi kontraktu v1; nová hlavní verze dostane /stats-api/v2/. Při přechodu poběží obě verze souběžně nejméně 60 dní a ukončení staré verze bude předem oznámeno.
Podmínky použití a kontakt
Data API jsou © Fugatiming. Používat je můžete za těchto podmínek:
- Co smíte: data číst, ukládat do mezipaměti, zobrazovat a dál zpracovávat pro sportovní, klubové, zpravodajské, studijní a statistické účely, včetně vlastních přehledů, grafů a aplikací.
- Uvedení zdroje: u každého použití uveďte „Zdroj dat: Fugatiming“ s odkazem na web, ze kterého data pocházejí (například https://statistiky.fugacup.cz).
- Co nesmíte: obcházet skrytí osob, spojovat data s dalšími údaji za účelem profilování lidí mimo jejich sportovní výsledky, data prodávat nebo je používat k reklamě zacílené na konkrétní závodníky, vydávat je za oficiální výsledky pořadatele.
- Zátěž: změny zjišťujte čtením
index.jsonnejvýš jednou za 300 sekund. Opakované načtení katalogu kvůli kontrole konzistence sady nebo po chybě (viz výše) je v pořádku. Ostatní soubory stahujte znovu jen při změněgeneration, nebo když se načtení téže generace nepovedlo a opakujete ho. Hromadné stahování celého API častěji než jednou denně předem domluvte. - Bez záruky: data poskytujeme tak, jak jsou. Oficiální jsou výsledky vyhlášené pořadatelem závodu.
- Jiné použití jen s předchozím souhlasem Fugatimingu: komerční služba postavená na datech a další zveřejnění nebo předávání úplné kopie API či její podstatné části. Úplná kopie jen pro vlastní zpracování souhlas nepotřebuje.
Kdo nechce být v datech uveden jménem, požádá o skrytí přes stránku pro hlášení chyb níže. Po zpracování žádosti a skrytí osoby ve zdrojových datech se změna projeví při následující publikaci API. Odběratelé ji mají převzít i do svých kopií.
Chyby v datech, dotazy k API a žádosti o opravu posílejte podle webu, ze kterého data pocházejí:
- FUGA Cup: Nahlásit chybu.
- Běžecký pohár: Nahlásit chybu.
- H10: Nahlásit chybu nebo požádat o opravu.
Přiložte cestu souboru, apiVersion a generation.
Přehled endpointů a polí
Všechny cesty níže mají prefix /stats-api/v1/. Tabulky se generují přímo ze schémat; názvy typů odkazují na společné definice na konci. Popisy polí jsou převzaty ze schémat v původním znění. [] v cestě pole značí prvek seznamu; poznámka „nepovinné“ značí, že pole může chybět. Časy s příponou Ms jsou v milisekundách, distanceM v metrech. Odvozené průměry, mediány a jejich rozdíly mohou mít desetinnou část. Stav výsledku F znamená dokončení, DNF nedokončení, DNS nestartoval a DSQ diskvalifikaci.
Endpointy
IndexJson
/stats-api/v1/index.json — Katalog souborů jedné generace, dostupné moduly a souhrnné počty.
| Pole | Typ | Popis |
|---|---|---|
schemaVersion | 1 | |
apiVersion | string | Semver of the stats-api package that generated the files. |
generation | generation | |
generatedAt | string | Time of the data (the snapshot), ISO 8601 UTC; the same value the site shows in its footer. |
site | object | |
site.code | fugacup | bezeckypohar | h10 | |
site.name | string | |
site.url | string | |
personKey | regPersonId | slug | Key of persons/.json, fixed within a major version (plan ch. 3.5 point 2). In ‘slug’ mode no file carries regPersonId. |
modules | hall-of-fame | records | relays | cities[] | |
endpoints | object[] | |
endpoints[].path | string | |
endpoints[].kind | list | detail | module | |
endpoints[].count | count | |
counts | object | |
counts.persons | count | |
counts.seasons | count | |
counts.events | count | |
counts.races | count | |
counts.clubs | count | |
counts.cities | count | |
counts.results | count | |
semantics | object | Where the meaning of derived fields differs between sites (plan ch. 3.1); the doc explains each key. |
semantics.officialTime | official | gun | |
semantics.recordsIncludeRelays | boolean | |
semantics.topListUnit | result | person | |
semantics.cancelledSeasonBreaksStreak | boolean | |
semantics.hiddenInRankings | omitted | anonymous | |
semantics.hiddenCategory | null | kept | |
semantics.unidentifiedRows | boolean | |
redirects | object[] | Old person slugs that now redirect (h10 redirects.csv); [] elsewhere. |
redirects[].fromSlug | slug | |
redirects[].toSlug | slug | |
redirects[].since | dateOrNull |
PersonsJson
/stats-api/v1/persons.json — Seznam viditelných osob. V režimu regPersonId osoba bez ID nemá detail a má href: null; v režimu slug má každá osoba v seznamu detail persons/<slug>.json, i když má href: null.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
persons | PersonListEntry[] | |
persons[].regPersonId (nepovinné) | regPersonIdOrNull | |
persons[].slug | slug | |
persons[].name | string | |
persons[].gender | genderOrNull | |
persons[].birthYear | yearOrNull | |
persons[].club | stringOrNull | |
persons[].clubSlug | slugOrNull | |
persons[].starts | count | |
persons[].finishes | count | |
persons[].href | stringOrNull |
PersonJson
/stats-api/v1/persons/<klíč>.json — Profil viditelné osoby, souhrny, výsledky, mezičasy a soupeři.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
person | PersonHeader | |
person.regPersonId (nepovinné) | regPersonIdOrNull | |
person.slug | slug | |
person.name | string | |
person.isHidden | false | |
person.href | string | |
person.gender | genderOrNull | |
person.birthYear | yearOrNull | |
person.club | stringOrNull | |
person.clubSlug | slugOrNull | |
person.category | object | null | Current category and the season it is from. |
person.category.code | string | |
person.category.seasonCode | slug | |
summary | PersonSummary | |
summary.starts | count | |
summary.finishes | count | |
summary.wins | count | |
summary.podiums | count | |
summary.cupTitles | object[] | |
summary.cupTitles[].seasonCode | slug | |
summary.cupTitles[].scope | scope | |
summary.cupTitles[].category | stringOrNull | |
summary.seasons | slug[] | Season codes with at least one start, ascending. |
summary.firstStart | startRef | |
summary.lastStart | startRef | |
summary.clubs | object[] | |
summary.clubs[].club | string | |
summary.clubs[].from | year | |
summary.clubs[].to | year | |
summary.longestStreak | count | |
summary.currentStreak | count | |
summary.badges | object[] | Badges as codes and parameters only; the site keeps its own labels. |
summary.badges[].code | slug | |
summary.badges[].params | object | |
summary.badges[].params.count | countOrNull | |
summary.badges[].params.year | yearOrNull | |
seasons | object[] | |
seasons[].code | slug | |
seasons[].standings | object[] | The person’s official standing lines of the season, each with its own points grid (the scopes score differently). |
seasons[].standings[].scope | scope | |
seasons[].standings[].category | stringOrNull | |
seasons[].standings[].rank | integer | |
seasons[].standings[].points | number | |
seasons[].standings[].racePoints | RacePoints[] | |
seasons[].results | localId[] | |
percentileBySeason | object[] | |
percentileBySeason[].seasonCode | slug | |
percentileBySeason[].median | number | null | |
percentileBySeason[].n | count | |
events | object[] | |
events[].eventCode | slug | |
events[].starts | count | |
events[].finishes | count | |
events[].best | PersonEventBest | null | The person’s numbers on one course version of the event: best (time or distance), worst and mean time, and how many timed finishes they are from. worst/avgMs are null with fewer than two timed finishes or in a distance race. |
events[].best.resultId | localId | |
events[].best.timeMs | timeMsOrNull | |
events[].best.distanceM | countOrNull | |
events[].best.courseVersion | courseVersion | |
events[].best.count | count | |
events[].best.worstResultId | localIdOrNull | |
events[].best.worstTimeMs | timeMsOrNull | |
events[].best.avgMs | derivedMsOrNull | |
events[].results | PersonEventResult[] | |
events[].results[].resultId | localId | |
events[].results[].raceId | localId | |
events[].results[].seasonCode | slug | |
events[].results[].date | dateOrNull | |
events[].results[].courseVersion | courseVersion | |
events[].results[].status | status | |
events[].results[].position | countOrNull | |
events[].results[].genderPosition | countOrNull | |
events[].results[].categoryPosition | countOrNull | |
events[].results[].category | stringOrNull | |
events[].results[].club | stringOrNull | |
events[].results[].clubSlug | slugOrNull | |
events[].results[].city | stringOrNull | |
events[].results[].citySlug | slugOrNull | |
events[].results[].startNumber | stringOrNull | |
events[].results[].timeMs | timeMsOrNull | |
events[].results[].chipTimeMs | timeMsOrNull | |
events[].results[].distanceM | countOrNull | |
events[].results[].percentile | number | null | |
events[].results[].flags | object | Improvement in ms against the person’s best (pb), the course record of the category (tr) and the course record (cr); null = no flag. |
events[].results[].flags.pb | timeMsOrNull | |
events[].results[].flags.tr | timeMsOrNull | |
events[].results[].flags.cr | timeMsOrNull | |
events[].results[].splits | SplitRow[] | Splits of the result as the profile shows them (h10: 5 km split). |
splitsVsField | object | Key resultId: the result’s splits against the field of its race. |
rivals | object[] | |
rivals[].person | PersonRef | |
rivals[].meetings | count | |
rivals[].wins | count | |
rivals[].losses | count | |
rivals[].headToHead | object[] | |
rivals[].headToHead[].raceId | localId | |
rivals[].headToHead[].ownResultId | localId | |
rivals[].headToHead[].otherResultId | localId | |
rivals[].headToHead[].diffMs | diffMsOrNull | |
pbs | object[] | Personal best per event and course version (h10); [] where the site does not show it. |
pbs[].eventCode | slug | |
pbs[].courseVersion | courseVersion | |
pbs[].timeMs | timeMs | |
pbs[].raceId | localId |
startRef
| Pole | Typ | Popis |
|---|---|---|
raceId | localId | |
date | dateOrNull |
SeasonsJson
/stats-api/v1/seasons.json — Seznam sezón nebo ročníků, účast a vítězové.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
seasons | SeasonListEntry[] | |
seasons[].code | slug | |
seasons[].year | year | |
seasons[].name | string | |
seasons[].cancelled | Cancelled | |
seasons[].running | boolean | |
seasons[].races | count | |
seasons[].starts | count | |
seasons[].finishes | count | |
seasons[].winners | object[] | Top places of the season standings (cup sites); [] without a cup. |
seasons[].winners[].scope | scope | |
seasons[].winners[].category | stringOrNull | |
seasons[].winners[].rank | integer | |
seasons[].winners[].points | number | |
seasons[].winners[].person | PersonRef |
SeasonJson
/stats-api/v1/seasons/<seasonCode>.json — Závody jedné sezóny, pořadí poháru, vývoj pořadí a klubové body.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
season | SeasonInfo | |
season.code | slug | |
season.year | year | |
season.name | string | |
season.cancelled | Cancelled | |
season.rules | SeasonRules | null | Cup rules as fields; the site writes its own rules text from them. null without a cup. |
season.rules.racePoint | numberOrNull | |
season.rules.minRaces | countOrNull | |
season.rules.maxRaces | countOrNull | |
season.rules.pointsTable | stringOrNull | |
season.rules.rankBy | category | gender | overall | null | |
season.rules.tieBreak | final | none | null | |
season.rules.ageLimit | countOrNull | |
season.rules.categoryScheme | stringOrNull | |
season.rules.note | stringOrNull | |
season.running | boolean | The season is still running (provisional standings). |
season.note | stringOrNull | |
races | SeasonRace[] | |
races[].raceId | localId | |
races[].eventCode | slug | |
races[].date | dateOrNull | |
races[].coefficient | numberOrNull | |
races[].isFinal | boolean | |
races[].starters | countOrNull | |
races[].finishers | count | |
races[].women | countOrNull | |
races[].men | countOrNull | |
races[].note | stringOrNull | |
races[].winners | Winners | |
standings | StandingGroup[] | |
standings[].scope | scope | |
standings[].category | stringOrNull | |
standings[].rows | object[] | |
standings[].rows[].person | PersonRef | |
standings[].rows[].rank | integer | |
standings[].rows[].points | number | |
standings[].rows[].raceCount | count | |
standings[].rows[].racePoints | RacePoints[] | |
standings[].unranked | object[] | Persons of the group with finishes who are not ranked (too few races), with the points the site computes for them (not official). |
standings[].unranked[].person | PersonRef | |
standings[].unranked[].raceCount | count | |
standings[].unranked[].points | number | |
standings[].unranked[].racePoints | RacePoints[] | |
rankProgression | object[] | Rank of each person after each race, per standing group. |
rankProgression[].scope | scope | |
rankProgression[].category | stringOrNull | |
rankProgression[].steps | object[] | |
rankProgression[].steps[].raceId | localId | |
rankProgression[].steps[].ranks | object[] | |
rankProgression[].steps[].ranks[].person | PersonRef | |
rankProgression[].steps[].ranks[].rank | integer | |
clubPoints | object[] | |
clubPoints[].clubSlug | slug | |
clubPoints[].club | string | |
clubPoints[].points | number | |
clubPoints[].rank | integer |
EventsJson
/stats-api/v1/events.json — Seznam závodních akcí nebo disciplín a jejich ročníků.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
events | EventListEntry[] | |
events[].code | slug | |
events[].name | string | |
events[].discipline | stringOrNull | |
events[].kind | raceKind | |
events[].editions | count | |
events[].firstSeasonCode | slugOrNull | |
events[].lastSeasonCode | slugOrNull |
EventJson
/stats-api/v1/events/<eventCode>.json — Jedna akce: ročníky, tratě, rekordy, nejlepší výsledky a účast.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
event | EventInfo | |
event.code | slug | |
event.name | string | |
event.discipline | stringOrNull | |
event.kind | raceKind | |
event.description | stringOrNull | |
editions | object[] | Every season of the series: raceId null = the event did not take place that season (note says why). |
editions[].seasonCode | slug | |
editions[].raceId | localIdOrNull | |
editions[].note | stringOrNull | |
editions[].winners | Winners | null | |
courses | Course[] | |
records | TimedEntry[] | |
recordProgression | object[] | |
recordProgression[].courseVersion | courseVersion | |
recordProgression[].seasonCode | slug | |
recordProgression[].raceId | localId | |
recordProgression[].winnerMs | timeMs | |
recordProgression[].recordMs | timeMs | |
top | TopList[] | |
mostStarts | PersonCount[] | |
mostWins | PersonCount[] | |
participation | object[] | |
participation[].seasonCode | slug | |
participation[].raceId | localId | |
participation[].starters | countOrNull | |
participation[].finishers | count |
RacesJson
/stats-api/v1/races.json — Seznam jednotlivých závodů a jejich základních údajů.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
races | RaceInfo[] |
RaceJson
/stats-api/v1/races/<raceId>.json — Úplné výsledky jednoho závodu včetně mezičasů.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
race | RaceInfo | |
course | Course | null | |
results | ResultRow[] | |
splitColumns | object[] | Split columns the results table shows, in order. |
splitColumns[].label | string | |
splitColumns[].kind | splitKind | null |
ClubsJson
/stats-api/v1/clubs.json — Seznam klubů; noClub shrnuje starty bez klubu.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
clubs | GroupSummary[] | |
noClub | object | null | |
noClub.starts | count | |
noClub.persons | count |
ClubJson
/stats-api/v1/clubs/<clubSlug>.json — Členové klubu, nejlepší výsledky a pořadí v sezónách.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
club | GroupSummary | |
members | MemberRow[] | |
bestResults | ResultRow[] | |
seasons | object[] | |
seasons[].code | slug | |
seasons[].points | number | |
seasons[].rank | integer | |
seasons[].ofClubs | integer |
StatsJson
/stats-api/v1/stats.json — Souhrnné statistiky bez jmen a slugů; zahrnují i skryté osoby.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
totals | StatsTotals | |
totals.firstYear | yearOrNull | |
totals.lastYear | yearOrNull | |
totals.seasons | count | |
totals.cancelledSeasons | slug[] | |
totals.races | count | |
totals.starts | count | |
totals.finishes | count | |
totals.teamStarts | countOrNull | |
totals.teamFinishes | countOrNull | |
totals.persons | count | |
totals.clubs | countOrNull | |
totals.cities | countOrNull | |
totals.timeMs | timeMsOrNull | |
totals.timedRaces | countOrNull | |
totals.km | number | null | |
totals.kmMissing | countOrNull | |
participation | object[] | |
participation[].seasonCode | slug | |
participation[].raceId | localIdOrNull | |
participation[].starters | count | |
participation[].finishers | count | |
participation[].womenShare | share | |
genders | object[] | |
genders[].seasonCode | slug | |
genders[].persons | count | |
genders[].women | count | |
genders[].men | count | |
newcomers | object[] | |
newcomers[].seasonCode | slug | |
newcomers[].newcomers | count | |
newcomers[].returning | count | |
ageBands | object[] | Starters by age band; minAge/maxAge null = open end, both null = birth year unknown. raceId null = whole season. |
ageBands[].seasonCode | slug | |
ageBands[].raceId | localIdOrNull | |
ageBands[].bands | object[] | |
ageBands[].bands[].minAge | countOrNull | |
ageBands[].bands[].maxAge | countOrNull | |
ageBands[].bands[].count | count | |
categories | object[] | Distinct persons per season and category; category null = without a category. |
categories[].seasonCode | slug | |
categories[].persons | count | |
categories[].counts | object[] | |
categories[].counts[].category | stringOrNull | |
categories[].counts[].count | count | |
coverage | object | |
coverage.times | coverageItem | |
coverage.medals | coverageItem | |
nationalities | object[] | |
nationalities[].code | string | |
nationalities[].count | count | |
histograms | object[] | |
histograms[].seasonCode | slug | |
histograms[].raceId | localId | |
histograms[].binS | integer | |
histograms[].startS | count | |
histograms[].counts | count[] | |
medians | object[] | |
medians[].seasonCode | slug | |
medians[].raceId | localId | |
medians[].gender | gender | |
medians[].timeMs | derivedMs | |
splits | object[] | Second half against the first half (h10 5 km split) per season. |
splits[].seasonCode | slug | |
splits[].n | count | |
splits[].medianSecondHalfDiffMs | derivedMsOrNull | |
splits[].negativeShare | share |
coverageItem
| Pole | Typ | Popis |
|---|---|---|
covered | count | |
total | count |
AgesJson
/stats-api/v1/ages.json — Věk a čas dokončených výkonů podle akce, trati a pohlaví, bez jmen. Dostupnost ověřte v katalogu.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
tolerance | count | Age tolerance in years the site uses when comparing. |
events | object[] | |
events[].eventCode | slug | |
events[].courseVersion | courseVersion | |
events[].F | agePoint[] | |
events[].M | agePoint[] |
agePoint
| Definice | Typ | Popis |
|---|---|---|
agePoint | [integer, timeMs] | [age in years, timeMs] |
SearchJson
/stats-api/v1/search.json — Vyhledávací index webu bez skrytých osob; filtruje se na straně klienta.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
entries | SearchEntry[] | |
entries[].kind | person | club | city | event | |
entries[].slug | slug | |
entries[].name | string | |
entries[].birthYear | yearOrNull | |
entries[].gender | genderOrNull | |
entries[].club | stringOrNull |
HallOfFameJson
/stats-api/v1/hall-of-fame.json — Modul síně slávy: vítězové, medaile, účast a série startů.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
cupWinners | object[] | |
cupWinners[].seasonCode | slug | |
cupWinners[].scope | scope | |
cupWinners[].category | stringOrNull | |
cupWinners[].person | PersonRef | |
medals | object[] | |
medals[].person | PersonRef | |
medals[].gender | gender | |
medals[].gold | count | |
medals[].silver | count | |
medals[].bronze | count | |
mostStarts | RankedEntry[] | |
mostWins | RankedEntry[] | |
mostPodiums | RankedEntry[] | |
longestStreaks | RankedEntry[] | |
allEditions | object[] | Persons with a start in every season (h10). |
allEditions[].person | PersonRef | |
improvements | object[] | |
improvements[].person | PersonRef | |
improvements[].eventCode | slug | |
improvements[].courseVersion | courseVersion | |
improvements[].fromMs | timeMs | |
improvements[].toMs | timeMs | |
improvements[].fromSeasonCode | slug | |
improvements[].toSeasonCode | slug | |
improvements[].fromRaceId | localId | |
improvements[].toRaceId | localId | |
closeFinishes | object[] | |
closeFinishes[].raceId | localId | |
closeFinishes[].a | ResultRow | |
closeFinishes[].b | ResultRow | |
closeFinishes[].diffMs | timeMs | |
fastSplits | object[] | |
fastSplits[].kind | splitKind | |
fastSplits[].entries | object[] | |
fastSplits[].entries[].person | PersonRef | |
fastSplits[].entries[].resultId | localId | |
fastSplits[].entries[].raceId | localId | |
fastSplits[].entries[].eventCode | slug | |
fastSplits[].entries[].courseVersion | courseVersion | |
fastSplits[].entries[].timeMs | timeMs | |
fastSplits[].entries[].parts | integer |
RecordsJson
/stats-api/v1/records.json — Modul rekordů: rekordy tratí a kategorií, vítězové a nejlepší výkony.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
courseRecords | TimedEntry[] | |
winners | object[] | |
winners[].seasonCode | slug | |
winners[].eventCode | slug | |
winners[].kind | F | M | team | |
winners[].result | ResultRow | |
top | TopList[] | |
categoryRecords | TimedEntry[] |
RelaysJson
/stats-api/v1/relays.json — Modul štafet: týmové výsledky a nejrychlejší týmy podle akce a trati.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
results | ResultRow[] | |
fastest | TimedEntry[] |
CitiesJson
/stats-api/v1/cities.json — Modul měst: přehled měst podle počtu startů.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
cities | GroupSummary[] |
CityJson
/stats-api/v1/cities/<citySlug>.json — Detail města: viditelní závodníci a jejich nejlepší časy. Vyžaduje modul cities.
| Pole | Typ | Popis |
|---|---|---|
generation | generation | |
city | GroupSummary | |
members | MemberRow[] |
Společné typy polí
| Definice | Typ | Popis |
|---|---|---|
generation | string | Id of one generation: generatedAt plus a short content hash. The same value is in every file of a generation; local ids are valid only within it. |
regPersonId | integer | Person key across sites (registry). Negative = LOCAL person, positive = SYSREG. Never 0, at most 8 digits. |
regPersonIdOrNull | regPersonId | null | regPersonId, or null for a person without an id yet. |
slug | string | Local URL key of the site ([a-z0-9-]): person slug, club, city, event or season code. |
slugOrNull | slug | null | |
localId | string | Local id (resultId, raceId, teamId), a string valid only within one generation (plan ch. 3.5 point 4). |
localIdOrNull | localId | null | |
courseVersion | string | Course version key of the site as a string (pohary ‘1’, ‘2’; h10 ‘stadion’, ‘soucasna’). |
count | integer | |
countOrNull | integer | null | |
timeMs | integer | Time in milliseconds. |
timeMsOrNull | integer | null | |
diffMs | integer | |
diffMsOrNull | integer | null | |
derivedMs | number | Milliseconds derived from measured times (median, mean, difference to a median); may be fractional, e.g. the median of an even field. |
derivedMsOrNull | number | null | |
year | integer | |
yearOrNull | integer | null | |
stringOrNull | string | null | |
numberOrNull | number | null | |
share | number | null | |
date | string | |
dateOrNull | date | null | |
gender | M | F | M or F. A relay team row (h10 gender ‘X’) has gender null and person null; the team is in teamId/teamName. |
genderOrNull | gender | null | |
status | F | DNF | DNS | DSQ | F = finished, DNF, DNS, DSQ. The h10 source status FIN maps to F. |
scope | overall | gender | category | |
metric | time | distance | What ranks the race: finish time, or distance covered in a fixed time. |
raceKind | individual | relay | |
splitKind | swim | t1 | bike | t2 | run | lap | other | |
PersonRef | VisiblePersonRef | HiddenPersonRef | A person as a result row, standing or list shows it. Hidden person: regPersonId null, slug null, href null, name = site hiddenLabel. Individual row without identity (h10): isHidden false, regPersonId null, slug null. In personKey ‘slug’ mode the regPersonId field is absent. |
PersonRefOrNull | PersonRef | null | |
ResultRowOrNull | ResultRow | null |
Cancelled
A season that did not take place (h10 2020); null otherwise.
| Pole | Typ | Popis |
|---|---|---|
reason | stringOrNull |
VisiblePersonRef
| Pole | Typ | Popis |
|---|---|---|
regPersonId (nepovinné) | regPersonIdOrNull | |
slug | slugOrNull | |
name | string | |
isHidden | false | |
href | stringOrNull |
HiddenPersonRef
| Pole | Typ | Popis |
|---|---|---|
regPersonId (nepovinné) | null | |
slug | null | |
name | string | |
isHidden | true | |
href | null |
Points
Cup points of a result; null for a site or race without a cup.
| Pole | Typ | Popis |
|---|---|---|
cup | numberOrNull | |
gender | numberOrNull | |
category | numberOrNull |
SplitRow
| Pole | Typ | Popis |
|---|---|---|
seq | integer | |
kind | splitKind | null | |
label | string | |
timeMs | timeMs | |
rank | countOrNull |
ResultRow
One result. person null = relay team (teamId, teamName, members). A hidden person’s row carries no birth year, club or city (category per site, plan ch. 3.7).
| Pole | Typ | Popis |
|---|---|---|
resultId | localId | |
raceId | localId | |
person | PersonRefOrNull | |
teamId | localIdOrNull | |
teamName | stringOrNull | |
members | stringOrNull | |
status | status | |
position | countOrNull | |
genderPosition | countOrNull | |
categoryPosition | countOrNull | |
category | stringOrNull | |
gender | genderOrNull | |
birthYear | yearOrNull | |
club | stringOrNull | |
clubSlug | slugOrNull | |
city | stringOrNull | |
citySlug | slugOrNull | |
nationality | string | null | |
timeMs | timeMsOrNull | |
chipTimeMs | timeMsOrNull | |
gapMs | timeMsOrNull | |
distanceM | countOrNull | |
points | Points | null | |
startNumber | stringOrNull | |
splits | SplitRow[] |
Winners
Winners of a race: women, men, relay team; null where the race has none.
| Pole | Typ | Popis |
|---|---|---|
F | ResultRowOrNull | |
M | ResultRowOrNull | |
team | ResultRowOrNull |
RacePoints
| Pole | Typ | Popis |
|---|---|---|
raceId | localId | |
points | numberOrNull | |
counted | boolean |
Course
| Pole | Typ | Popis |
|---|---|---|
courseVersion | courseVersion | |
swimM | countOrNull | |
bikeKm | number | null | |
runKm | number | null | |
distanceM | countOrNull | |
elevationM | countOrNull | |
validFrom | yearOrNull | |
validTo | yearOrNull |
RaceInfo
| Pole | Typ | Popis |
|---|---|---|
raceId | localId | |
eventCode | slug | |
seasonCode | slug | |
date | dateOrNull | |
courseVersion | courseVersion | |
metric | metric | |
kind | raceKind | |
hasTimes | boolean | |
hasSplits | boolean | |
starters | countOrNull | |
finisherCount | count | |
note | stringOrNull | |
birthYearReliable | boolean | null | false = birth years were not collected for this race, so the site hides birth year and age (h10 birth_year_reliable); null where the site has no such flag (pohary). |
PersonCount
A person with a count (most starts, most wins of an event).
| Pole | Typ | Popis |
|---|---|---|
person | PersonRef | |
value | count |
RankedEntry
An entry of a hall-of-fame list: the value and, where the site shows them, its seasons.
| Pole | Typ | Popis |
|---|---|---|
person | PersonRef | |
value | number | |
from | slugOrNull | |
to | slugOrNull | |
seasons | slug[] |
BestTime
| Pole | Typ | Popis |
|---|---|---|
eventCode | slug | |
courseVersion | courseVersion | |
timeMs | timeMsOrNull | |
distanceM | countOrNull | |
resultId | localIdOrNull |
MemberRow
A person of a club or city page.
| Pole | Typ | Popis |
|---|---|---|
person | PersonRef | |
starts | count | |
points | numberOrNull | |
best | BestTime[] |
GroupSummary
A club or city in a list and in its detail header.
| Pole | Typ | Popis |
|---|---|---|
slug | slug | |
name | string | |
starts | count | |
persons | count | |
points | numberOrNull |
TimedEntry
A record or fastest result on an event and course version.
| Pole | Typ | Popis |
|---|---|---|
eventCode | slug | |
courseVersion | courseVersion | |
scope | scope | |
category | stringOrNull | |
year | year | |
result | ResultRow |
TopList
| Pole | Typ | Popis |
|---|---|---|
eventCode | slug | |
courseVersion | courseVersion | |
gender | genderOrNull | |
metric | metric | |
entries | ResultRow[] |