API statistik

API statistik: FUGA Cup

Základní adresa
https://statistiky.fugacup.cz/stats-api/v1/
Katalog souborů
index.json
apiVersion
1.4.0

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:

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.json

Krá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:

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:

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í:

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.

PoleTypPopis
schemaVersion1
apiVersionstringSemver of the stats-api package that generated the files.
generationgeneration
generatedAtstringTime of the data (the snapshot), ISO 8601 UTC; the same value the site shows in its footer.
siteobject
site.codefugacup | bezeckypohar | h10
site.namestring
site.urlstring
personKeyregPersonId | slugKey of persons/.json, fixed within a major version (plan ch. 3.5 point 2). In ‘slug’ mode no file carries regPersonId.
moduleshall-of-fame | records | relays | cities[]
endpointsobject[]
endpoints[].pathstring
endpoints[].kindlist | detail | module
endpoints[].countcount
countsobject
counts.personscount
counts.seasonscount
counts.eventscount
counts.racescount
counts.clubscount
counts.citiescount
counts.resultscount
semanticsobjectWhere the meaning of derived fields differs between sites (plan ch. 3.1); the doc explains each key.
semantics.officialTimeofficial | gun
semantics.recordsIncludeRelaysboolean
semantics.topListUnitresult | person
semantics.cancelledSeasonBreaksStreakboolean
semantics.hiddenInRankingsomitted | anonymous
semantics.hiddenCategorynull | kept
semantics.unidentifiedRowsboolean
redirectsobject[]Old person slugs that now redirect (h10 redirects.csv); [] elsewhere.
redirects[].fromSlugslug
redirects[].toSlugslug
redirects[].sincedateOrNull
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.

PoleTypPopis
generationgeneration
personsPersonListEntry[]
persons[].regPersonId (nepovinné)regPersonIdOrNull
persons[].slugslug
persons[].namestring
persons[].gendergenderOrNull
persons[].birthYearyearOrNull
persons[].clubstringOrNull
persons[].clubSlugslugOrNull
persons[].startscount
persons[].finishescount
persons[].hrefstringOrNull
PersonJson

/stats-api/v1/persons/<klíč>.json — Profil viditelné osoby, souhrny, výsledky, mezičasy a soupeři.

PoleTypPopis
generationgeneration
personPersonHeader
person.regPersonId (nepovinné)regPersonIdOrNull
person.slugslug
person.namestring
person.isHiddenfalse
person.hrefstring
person.gendergenderOrNull
person.birthYearyearOrNull
person.clubstringOrNull
person.clubSlugslugOrNull
person.categoryobject | nullCurrent category and the season it is from.
person.category.codestring
person.category.seasonCodeslug
summaryPersonSummary
summary.startscount
summary.finishescount
summary.winscount
summary.podiumscount
summary.cupTitlesobject[]
summary.cupTitles[].seasonCodeslug
summary.cupTitles[].scopescope
summary.cupTitles[].categorystringOrNull
summary.seasonsslug[]Season codes with at least one start, ascending.
summary.firstStartstartRef
summary.lastStartstartRef
summary.clubsobject[]
summary.clubs[].clubstring
summary.clubs[].fromyear
summary.clubs[].toyear
summary.longestStreakcount
summary.currentStreakcount
summary.badgesobject[]Badges as codes and parameters only; the site keeps its own labels.
summary.badges[].codeslug
summary.badges[].paramsobject
summary.badges[].params.countcountOrNull
summary.badges[].params.yearyearOrNull
seasonsobject[]
seasons[].codeslug
seasons[].standingsobject[]The person’s official standing lines of the season, each with its own points grid (the scopes score differently).
seasons[].standings[].scopescope
seasons[].standings[].categorystringOrNull
seasons[].standings[].rankinteger
seasons[].standings[].pointsnumber
seasons[].standings[].racePointsRacePoints[]
seasons[].resultslocalId[]
percentileBySeasonobject[]
percentileBySeason[].seasonCodeslug
percentileBySeason[].mediannumber | null
percentileBySeason[].ncount
eventsobject[]
events[].eventCodeslug
events[].startscount
events[].finishescount
events[].bestPersonEventBest | nullThe 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.resultIdlocalId
events[].best.timeMstimeMsOrNull
events[].best.distanceMcountOrNull
events[].best.courseVersioncourseVersion
events[].best.countcount
events[].best.worstResultIdlocalIdOrNull
events[].best.worstTimeMstimeMsOrNull
events[].best.avgMsderivedMsOrNull
events[].resultsPersonEventResult[]
events[].results[].resultIdlocalId
events[].results[].raceIdlocalId
events[].results[].seasonCodeslug
events[].results[].datedateOrNull
events[].results[].courseVersioncourseVersion
events[].results[].statusstatus
events[].results[].positioncountOrNull
events[].results[].genderPositioncountOrNull
events[].results[].categoryPositioncountOrNull
events[].results[].categorystringOrNull
events[].results[].clubstringOrNull
events[].results[].clubSlugslugOrNull
events[].results[].citystringOrNull
events[].results[].citySlugslugOrNull
events[].results[].startNumberstringOrNull
events[].results[].timeMstimeMsOrNull
events[].results[].chipTimeMstimeMsOrNull
events[].results[].distanceMcountOrNull
events[].results[].percentilenumber | null
events[].results[].flagsobjectImprovement 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.pbtimeMsOrNull
events[].results[].flags.trtimeMsOrNull
events[].results[].flags.crtimeMsOrNull
events[].results[].splitsSplitRow[]Splits of the result as the profile shows them (h10: 5 km split).
splitsVsFieldobjectKey resultId: the result’s splits against the field of its race.
rivalsobject[]
rivals[].personPersonRef
rivals[].meetingscount
rivals[].winscount
rivals[].lossescount
rivals[].headToHeadobject[]
rivals[].headToHead[].raceIdlocalId
rivals[].headToHead[].ownResultIdlocalId
rivals[].headToHead[].otherResultIdlocalId
rivals[].headToHead[].diffMsdiffMsOrNull
pbsobject[]Personal best per event and course version (h10); [] where the site does not show it.
pbs[].eventCodeslug
pbs[].courseVersioncourseVersion
pbs[].timeMstimeMs
pbs[].raceIdlocalId
startRef
PoleTypPopis
raceIdlocalId
datedateOrNull
SeasonsJson

/stats-api/v1/seasons.json — Seznam sezón nebo ročníků, účast a vítězové.

PoleTypPopis
generationgeneration
seasonsSeasonListEntry[]
seasons[].codeslug
seasons[].yearyear
seasons[].namestring
seasons[].cancelledCancelled
seasons[].runningboolean
seasons[].racescount
seasons[].startscount
seasons[].finishescount
seasons[].winnersobject[]Top places of the season standings (cup sites); [] without a cup.
seasons[].winners[].scopescope
seasons[].winners[].categorystringOrNull
seasons[].winners[].rankinteger
seasons[].winners[].pointsnumber
seasons[].winners[].personPersonRef
SeasonJson

/stats-api/v1/seasons/<seasonCode>.json — Závody jedné sezóny, pořadí poháru, vývoj pořadí a klubové body.

PoleTypPopis
generationgeneration
seasonSeasonInfo
season.codeslug
season.yearyear
season.namestring
season.cancelledCancelled
season.rulesSeasonRules | nullCup rules as fields; the site writes its own rules text from them. null without a cup.
season.rules.racePointnumberOrNull
season.rules.minRacescountOrNull
season.rules.maxRacescountOrNull
season.rules.pointsTablestringOrNull
season.rules.rankBycategory | gender | overall | null
season.rules.tieBreakfinal | none | null
season.rules.ageLimitcountOrNull
season.rules.categorySchemestringOrNull
season.rules.notestringOrNull
season.runningbooleanThe season is still running (provisional standings).
season.notestringOrNull
racesSeasonRace[]
races[].raceIdlocalId
races[].eventCodeslug
races[].datedateOrNull
races[].coefficientnumberOrNull
races[].isFinalboolean
races[].starterscountOrNull
races[].finisherscount
races[].womencountOrNull
races[].mencountOrNull
races[].notestringOrNull
races[].winnersWinners
standingsStandingGroup[]
standings[].scopescope
standings[].categorystringOrNull
standings[].rowsobject[]
standings[].rows[].personPersonRef
standings[].rows[].rankinteger
standings[].rows[].pointsnumber
standings[].rows[].raceCountcount
standings[].rows[].racePointsRacePoints[]
standings[].unrankedobject[]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[].personPersonRef
standings[].unranked[].raceCountcount
standings[].unranked[].pointsnumber
standings[].unranked[].racePointsRacePoints[]
rankProgressionobject[]Rank of each person after each race, per standing group.
rankProgression[].scopescope
rankProgression[].categorystringOrNull
rankProgression[].stepsobject[]
rankProgression[].steps[].raceIdlocalId
rankProgression[].steps[].ranksobject[]
rankProgression[].steps[].ranks[].personPersonRef
rankProgression[].steps[].ranks[].rankinteger
clubPointsobject[]
clubPoints[].clubSlugslug
clubPoints[].clubstring
clubPoints[].pointsnumber
clubPoints[].rankinteger
EventsJson

/stats-api/v1/events.json — Seznam závodních akcí nebo disciplín a jejich ročníků.

PoleTypPopis
generationgeneration
eventsEventListEntry[]
events[].codeslug
events[].namestring
events[].disciplinestringOrNull
events[].kindraceKind
events[].editionscount
events[].firstSeasonCodeslugOrNull
events[].lastSeasonCodeslugOrNull
EventJson

/stats-api/v1/events/<eventCode>.json — Jedna akce: ročníky, tratě, rekordy, nejlepší výsledky a účast.

PoleTypPopis
generationgeneration
eventEventInfo
event.codeslug
event.namestring
event.disciplinestringOrNull
event.kindraceKind
event.descriptionstringOrNull
editionsobject[]Every season of the series: raceId null = the event did not take place that season (note says why).
editions[].seasonCodeslug
editions[].raceIdlocalIdOrNull
editions[].notestringOrNull
editions[].winnersWinners | null
coursesCourse[]
recordsTimedEntry[]
recordProgressionobject[]
recordProgression[].courseVersioncourseVersion
recordProgression[].seasonCodeslug
recordProgression[].raceIdlocalId
recordProgression[].winnerMstimeMs
recordProgression[].recordMstimeMs
topTopList[]
mostStartsPersonCount[]
mostWinsPersonCount[]
participationobject[]
participation[].seasonCodeslug
participation[].raceIdlocalId
participation[].starterscountOrNull
participation[].finisherscount
RacesJson

/stats-api/v1/races.json — Seznam jednotlivých závodů a jejich základních údajů.

PoleTypPopis
generationgeneration
racesRaceInfo[]
RaceJson

/stats-api/v1/races/<raceId>.json — Úplné výsledky jednoho závodu včetně mezičasů.

PoleTypPopis
generationgeneration
raceRaceInfo
courseCourse | null
resultsResultRow[]
splitColumnsobject[]Split columns the results table shows, in order.
splitColumns[].labelstring
splitColumns[].kindsplitKind | null
ClubsJson

/stats-api/v1/clubs.json — Seznam klubů; noClub shrnuje starty bez klubu.

PoleTypPopis
generationgeneration
clubsGroupSummary[]
noClubobject | null
noClub.startscount
noClub.personscount
ClubJson

/stats-api/v1/clubs/<clubSlug>.json — Členové klubu, nejlepší výsledky a pořadí v sezónách.

PoleTypPopis
generationgeneration
clubGroupSummary
membersMemberRow[]
bestResultsResultRow[]
seasonsobject[]
seasons[].codeslug
seasons[].pointsnumber
seasons[].rankinteger
seasons[].ofClubsinteger
StatsJson

/stats-api/v1/stats.json — Souhrnné statistiky bez jmen a slugů; zahrnují i skryté osoby.

PoleTypPopis
generationgeneration
totalsStatsTotals
totals.firstYearyearOrNull
totals.lastYearyearOrNull
totals.seasonscount
totals.cancelledSeasonsslug[]
totals.racescount
totals.startscount
totals.finishescount
totals.teamStartscountOrNull
totals.teamFinishescountOrNull
totals.personscount
totals.clubscountOrNull
totals.citiescountOrNull
totals.timeMstimeMsOrNull
totals.timedRacescountOrNull
totals.kmnumber | null
totals.kmMissingcountOrNull
participationobject[]
participation[].seasonCodeslug
participation[].raceIdlocalIdOrNull
participation[].starterscount
participation[].finisherscount
participation[].womenShareshare
gendersobject[]
genders[].seasonCodeslug
genders[].personscount
genders[].womencount
genders[].mencount
newcomersobject[]
newcomers[].seasonCodeslug
newcomers[].newcomerscount
newcomers[].returningcount
ageBandsobject[]Starters by age band; minAge/maxAge null = open end, both null = birth year unknown. raceId null = whole season.
ageBands[].seasonCodeslug
ageBands[].raceIdlocalIdOrNull
ageBands[].bandsobject[]
ageBands[].bands[].minAgecountOrNull
ageBands[].bands[].maxAgecountOrNull
ageBands[].bands[].countcount
categoriesobject[]Distinct persons per season and category; category null = without a category.
categories[].seasonCodeslug
categories[].personscount
categories[].countsobject[]
categories[].counts[].categorystringOrNull
categories[].counts[].countcount
coverageobject
coverage.timescoverageItem
coverage.medalscoverageItem
nationalitiesobject[]
nationalities[].codestring
nationalities[].countcount
histogramsobject[]
histograms[].seasonCodeslug
histograms[].raceIdlocalId
histograms[].binSinteger
histograms[].startScount
histograms[].countscount[]
mediansobject[]
medians[].seasonCodeslug
medians[].raceIdlocalId
medians[].gendergender
medians[].timeMsderivedMs
splitsobject[]Second half against the first half (h10 5 km split) per season.
splits[].seasonCodeslug
splits[].ncount
splits[].medianSecondHalfDiffMsderivedMsOrNull
splits[].negativeShareshare
coverageItem
PoleTypPopis
coveredcount
totalcount
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.

PoleTypPopis
generationgeneration
tolerancecountAge tolerance in years the site uses when comparing.
eventsobject[]
events[].eventCodeslug
events[].courseVersioncourseVersion
events[].FagePoint[]
events[].MagePoint[]
agePoint
DefiniceTypPopis
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.

PoleTypPopis
generationgeneration
entriesSearchEntry[]
entries[].kindperson | club | city | event
entries[].slugslug
entries[].namestring
entries[].birthYearyearOrNull
entries[].gendergenderOrNull
entries[].clubstringOrNull
HallOfFameJson

/stats-api/v1/hall-of-fame.json — Modul síně slávy: vítězové, medaile, účast a série startů.

PoleTypPopis
generationgeneration
cupWinnersobject[]
cupWinners[].seasonCodeslug
cupWinners[].scopescope
cupWinners[].categorystringOrNull
cupWinners[].personPersonRef
medalsobject[]
medals[].personPersonRef
medals[].gendergender
medals[].goldcount
medals[].silvercount
medals[].bronzecount
mostStartsRankedEntry[]
mostWinsRankedEntry[]
mostPodiumsRankedEntry[]
longestStreaksRankedEntry[]
allEditionsobject[]Persons with a start in every season (h10).
allEditions[].personPersonRef
improvementsobject[]
improvements[].personPersonRef
improvements[].eventCodeslug
improvements[].courseVersioncourseVersion
improvements[].fromMstimeMs
improvements[].toMstimeMs
improvements[].fromSeasonCodeslug
improvements[].toSeasonCodeslug
improvements[].fromRaceIdlocalId
improvements[].toRaceIdlocalId
closeFinishesobject[]
closeFinishes[].raceIdlocalId
closeFinishes[].aResultRow
closeFinishes[].bResultRow
closeFinishes[].diffMstimeMs
fastSplitsobject[]
fastSplits[].kindsplitKind
fastSplits[].entriesobject[]
fastSplits[].entries[].personPersonRef
fastSplits[].entries[].resultIdlocalId
fastSplits[].entries[].raceIdlocalId
fastSplits[].entries[].eventCodeslug
fastSplits[].entries[].courseVersioncourseVersion
fastSplits[].entries[].timeMstimeMs
fastSplits[].entries[].partsinteger
RecordsJson

/stats-api/v1/records.json — Modul rekordů: rekordy tratí a kategorií, vítězové a nejlepší výkony.

PoleTypPopis
generationgeneration
courseRecordsTimedEntry[]
winnersobject[]
winners[].seasonCodeslug
winners[].eventCodeslug
winners[].kindF | M | team
winners[].resultResultRow
topTopList[]
categoryRecordsTimedEntry[]
RelaysJson

/stats-api/v1/relays.json — Modul štafet: týmové výsledky a nejrychlejší týmy podle akce a trati.

PoleTypPopis
generationgeneration
resultsResultRow[]
fastestTimedEntry[]
CitiesJson

/stats-api/v1/cities.json — Modul měst: přehled měst podle počtu startů.

PoleTypPopis
generationgeneration
citiesGroupSummary[]
CityJson

/stats-api/v1/cities/<citySlug>.json — Detail města: viditelní závodníci a jejich nejlepší časy. Vyžaduje modul cities.

PoleTypPopis
generationgeneration
cityGroupSummary
membersMemberRow[]

Společné typy polí

DefiniceTypPopis
generationstringId 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.
regPersonIdintegerPerson key across sites (registry). Negative = LOCAL person, positive = SYSREG. Never 0, at most 8 digits.
regPersonIdOrNullregPersonId | nullregPersonId, or null for a person without an id yet.
slugstringLocal URL key of the site ([a-z0-9-]): person slug, club, city, event or season code.
slugOrNullslug | null
localIdstringLocal id (resultId, raceId, teamId), a string valid only within one generation (plan ch. 3.5 point 4).
localIdOrNulllocalId | null
courseVersionstringCourse version key of the site as a string (pohary ‘1’, ‘2’; h10 ‘stadion’, ‘soucasna’).
countinteger
countOrNullinteger | null
timeMsintegerTime in milliseconds.
timeMsOrNullinteger | null
diffMsinteger
diffMsOrNullinteger | null
derivedMsnumberMilliseconds derived from measured times (median, mean, difference to a median); may be fractional, e.g. the median of an even field.
derivedMsOrNullnumber | null
yearinteger
yearOrNullinteger | null
stringOrNullstring | null
numberOrNullnumber | null
sharenumber | null
datestring
dateOrNulldate | null
genderM | FM or F. A relay team row (h10 gender ‘X’) has gender null and person null; the team is in teamId/teamName.
genderOrNullgender | null
statusF | DNF | DNS | DSQF = finished, DNF, DNS, DSQ. The h10 source status FIN maps to F.
scopeoverall | gender | category
metrictime | distanceWhat ranks the race: finish time, or distance covered in a fixed time.
raceKindindividual | relay
splitKindswim | t1 | bike | t2 | run | lap | other
PersonRefVisiblePersonRef | HiddenPersonRefA 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.
PersonRefOrNullPersonRef | null
ResultRowOrNullResultRow | null
Cancelled

A season that did not take place (h10 2020); null otherwise.

PoleTypPopis
reasonstringOrNull
VisiblePersonRef
PoleTypPopis
regPersonId (nepovinné)regPersonIdOrNull
slugslugOrNull
namestring
isHiddenfalse
hrefstringOrNull
HiddenPersonRef
PoleTypPopis
regPersonId (nepovinné)null
slugnull
namestring
isHiddentrue
hrefnull
Points

Cup points of a result; null for a site or race without a cup.

PoleTypPopis
cupnumberOrNull
gendernumberOrNull
categorynumberOrNull
SplitRow
PoleTypPopis
seqinteger
kindsplitKind | null
labelstring
timeMstimeMs
rankcountOrNull
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).

PoleTypPopis
resultIdlocalId
raceIdlocalId
personPersonRefOrNull
teamIdlocalIdOrNull
teamNamestringOrNull
membersstringOrNull
statusstatus
positioncountOrNull
genderPositioncountOrNull
categoryPositioncountOrNull
categorystringOrNull
gendergenderOrNull
birthYearyearOrNull
clubstringOrNull
clubSlugslugOrNull
citystringOrNull
citySlugslugOrNull
nationalitystring | null
timeMstimeMsOrNull
chipTimeMstimeMsOrNull
gapMstimeMsOrNull
distanceMcountOrNull
pointsPoints | null
startNumberstringOrNull
splitsSplitRow[]
Winners

Winners of a race: women, men, relay team; null where the race has none.

PoleTypPopis
FResultRowOrNull
MResultRowOrNull
teamResultRowOrNull
RacePoints
PoleTypPopis
raceIdlocalId
pointsnumberOrNull
countedboolean
Course
PoleTypPopis
courseVersioncourseVersion
swimMcountOrNull
bikeKmnumber | null
runKmnumber | null
distanceMcountOrNull
elevationMcountOrNull
validFromyearOrNull
validToyearOrNull
RaceInfo
PoleTypPopis
raceIdlocalId
eventCodeslug
seasonCodeslug
datedateOrNull
courseVersioncourseVersion
metricmetric
kindraceKind
hasTimesboolean
hasSplitsboolean
starterscountOrNull
finisherCountcount
notestringOrNull
birthYearReliableboolean | nullfalse = 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).

PoleTypPopis
personPersonRef
valuecount
RankedEntry

An entry of a hall-of-fame list: the value and, where the site shows them, its seasons.

PoleTypPopis
personPersonRef
valuenumber
fromslugOrNull
toslugOrNull
seasonsslug[]
BestTime
PoleTypPopis
eventCodeslug
courseVersioncourseVersion
timeMstimeMsOrNull
distanceMcountOrNull
resultIdlocalIdOrNull
MemberRow

A person of a club or city page.

PoleTypPopis
personPersonRef
startscount
pointsnumberOrNull
bestBestTime[]
GroupSummary

A club or city in a list and in its detail header.

PoleTypPopis
slugslug
namestring
startscount
personscount
pointsnumberOrNull
TimedEntry

A record or fastest result on an event and course version.

PoleTypPopis
eventCodeslug
courseVersioncourseVersion
scopescope
categorystringOrNull
yearyear
resultResultRow
TopList
PoleTypPopis
eventCodeslug
courseVersioncourseVersion
gendergenderOrNull
metricmetric
entriesResultRow[]

Požadavky na API měříme souhrnně podle cesty, stavu odpovědi a třídy klienta (prohlížeč, skript, robot, neznámý). Neukládáme IP adresy, cookies ani celý User-Agent. Parametry za otazníkem se do měření neposílají. Veřejné adresy a formát dat zůstávají stejné.