Race API
Yarış Radarı scans ten sources every day and gathers road and trail running, cycling, swimming, triathlon and HYROX races in Türkiye into a single calendar. This read-only JSON API opens the same dataset to applications: dates, cities and coordinates, sports, courses (distance, elevation gain, ITRA points, fee), registration windows and deadlines, official site and results links. An optional per-race highlights object adds the course GPX and map image, checkpoints, results archive and participant counts to the same response.
Built for apps, training platforms and publications that need an up-to-date race calendar. Base URL: https://yarisradari.com/api/v1
Authentication
Send your key with either header on every request. Keys are meant for server-to-server use.
Authorization: Bearer yr_live_xxxxxxxx X-API-Key: yr_live_xxxxxxxx
GET/races
A filterable race list. All parameters are optional; csv types accept several comma-separated values. When distance_min/max is given, the returned distances array is filtered down to the matching courses.
| Parameter | Type | Description |
|---|---|---|
| scope | csv | local, national, international |
| sport | csv | road_run, trail_run, cycling, swimming, triathlon, hyrox, duathlon, orienteering, obstacle_run |
| status | csv | scheduled, tbc, postponed, cancelled, completed |
| city | text | Exact city match; case, Turkish letters and accents are ignored (Istanbul, istanbul and ISTANBUL all match the city stored with Turkish letters) |
| q | text | Partial search in the race name; case, Turkish letters and accents are ignored |
| from | YYYY-MM-DD | Start date on or after this date |
| to | YYYY-MM-DD | Start date on or before this date |
| updated_since | ISO date/time | Only records updated after this moment; for incremental sync |
| distance_min | number (km) | Races with a course at least this long |
| distance_max | number (km) | Races with a course at most this long |
| sort | text | start_date (default), -start_date, updated_at, -updated_at |
| limit | integer | 1-100, default 25 |
| offset | integer | 0-10000, pagination |
curl "https://yarisradari.com/api/v1/races?sport=trail_run&from=2026-09-01&limit=5" \ -H "Authorization: Bearer yr_live_xxxxxxxx"
Response:
{
"data": [
{
"id": "uuid",
"slug": "istanbul-maratonu-2026",
"url": "https://yarisradari.com/yaris/istanbul-maratonu-2026",
"url_en": "https://yarisradari.com/en/yaris/istanbul-maratonu-2026",
"name": "İstanbul Maratonu",
"sport": "road_run",
"scope": "national",
"status": "scheduled",
"city": "İstanbul",
"venue": null,
"country_code": "TR",
"start_date": "2026-11-01",
"end_date": null,
"latitude": 41.0,
"longitude": 28.9,
"website_url": "https://...",
"results_url": null,
"photos_url": null,
"price_excludes_federation_fee": false,
"description_tr": "...",
"description_en": null,
"distances": [
{
"label": "Maraton",
"course_key": "maraton",
"has_route": false,
"route_updated_at": null,
"distance_km": 42.195,
"start_date": "2026-11-01",
"start_time": "09:00:00",
"elevation_gain_m": null,
"itra_points": null,
"price": 1500,
"currency": "TRY",
"swim_km": null,
"bike_km": null,
"run_km": null,
"gpx_url": null
}
],
"registration": [
{
"kind": "standard",
"opens_at": null,
"closes_at": "2026-10-20T23:59:00+03:00",
"price": null,
"currency": "TRY",
"is_lottery": false,
"registration_url": "https://..."
}
],
"highlights": {
"route": {
"courses_with_gpx": 2,
"gpx_url": "https://...",
"map_image_url": "https://yarisradari.com/yaris/istanbul-maratonu-2026/parkur/maraton-parkur-profili.svg"
},
"briefing": true,
"checkpoints": { "count": 8, "with_cutoff": 6, "courses": 2 },
"results": { "editions": 4, "last_edition_year": 2025, "courses": 3 },
"participants": { "last_edition_year": 2025, "starters": 2972, "finishers": 2954 }
},
"created_at": "...",
"updated_at": "..."
}
],
"meta": { "total": 90, "count": 25, "limit": 25, "offset": 0, "request_id": "uuid" }
}url is the race page on yarisradari.com (https://yarisradari.com/yaris/{slug}) and url_en is the English version of the same page (https://yarisradari.com/en/yaris/{slug}). On a race screen, linking to this address meets the link requirement of the licence; in an English interface, use url_en.
highlights: extra race facts
Every race object may carry an optional highlights object. The rule: a key is sent only when that race really has the data, never as an empty key, null or false, so the presence of a key means the data exists. Values are structural, not ready-made sentences; the consumer builds its own wording. New keys may be added and existing keys are never renamed, so you can ignore a key you do not know. Weather stays out of this object because forecasts go stale fast.
| Key | Fields | When it appears |
|---|---|---|
route | courses_with_gpx, gpx_url, map_image_url | When at least one course has a GPX file. gpx_url is the organiser file, map_image_url is our own route and elevation profile image (SVG); it returns 404 if the source file cannot be read. |
briefing | true | When at least one course has a technical meeting built from its GPX elevation data. Only true is sent; without an analysis the key is absent. The full text lives on the race page at url. |
checkpoints | count, with_cutoff, courses | When the race checkpoints are known. with_cutoff counts the ones with a cut-off time. |
results | editions, last_edition_year, courses | When past seasons are in the aggregate results archive. No runner names or placings are stored. |
participants | last_edition_year, starters, finishers | When the starter and finisher counts of the last season are known. The numbers are the sum of every course that season; a number that is unknown is left out. |
GET/races/{slug}
A single race, with the same field structure as the list: { "data": { ... }, "meta": { "request_id": "uuid" } }. Returns 404 if not found.
The single-race response carries two extra arrays: result_sources (one result source per edition year: provider, page and data address, status, course mapping, bib lookup address) and results_summary (per-course starters, finishers, DNF and finish time percentiles from the results archive). Neither contains athlete rows; both are empty arrays when there is no data.
"result_sources": [
{
"edition_year": 2026,
"provider": "g-live",
"format": "clax",
"status": "final",
"final_at": "2026-07-20T06:10:00Z",
"last_checked_at": "2026-10-15T04:00:00Z",
"event_date": "2026-07-18",
"page_url": "https://...",
"data_url": "https://.../uput2026.clax",
"provider_ids": {},
"course_map": { "UPUT70K": "70K" },
"lookup_url": "https://yarisradari.com/api/v1/races/uludag-ultra-trail/results?year=2026&bib="
}
],
"results_summary": [
{
"edition_year": 2026, "provider": "g-live", "course_label": "UPUT70K", "label": "70K", "distance_km": 70.83,
"registered": 197, "starters": 181, "finishers": 152, "dnf": 29,
"fastest_seconds": 31380, "slowest_seconds": 59700,
"p10_seconds": 36000, "p25_seconds": 41000, "p50_seconds": 48780, "p75_seconds": 53000, "p90_seconds": 57060,
"page_url": "https://..."
}
]GET/races/{slug}/results
Personal result by bib number. The data is read live from the provider and cached only briefly; athlete rows are never written to the Yaris Radari database. The name is masked (Ahmet Y.); birth year and nationality are never returned. Rankings are the provider's when it publishes them, otherwise Yaris Radari computes them from net time, falling back to gross only when no net time exists (ranking_basis).
| Parameter | Type | Description |
|---|---|---|
bib | string | Bib number (required); letters, digits and hyphens, at most 12 characters |
year | integer | Edition year; defaults to the newest edition that has started |
| Key | Fields | When it appears |
|---|---|---|
start_list | Entry list only | Wait for race day; a listed bib returns result without times |
live | Results arriving | Poll every few minutes; result may fill in and ranks may change |
final | Results settled | Last state; a missing bib returns 404 bib_not_found |
blocked | Provider blocks bots | result is null; send the user to source.page_url |
When pending is true the provider list has not been read completely yet: repeat the same request after the Retry-After header. Polling until the status is final or 14 days after the race is enough; every request counts against the quota. 404 no_result_source means no source is known for that year, 503 results_unavailable means the provider did not answer. When the provider serves a bot wall to server IPs (currently PlusTiming) the response comes with status blocked and client_fetch carries the GET address to call from the device; name search returns the same field with empty candidates and 200.
curl "https://yarisradari.com/api/v1/races/uludag-ultra-trail/results?bib=123&year=2026" \
-H "Authorization: Bearer yr_live_xxxxxxxx"Response:
{
"data": {
"status": "final",
"pending": false,
"edition_year": 2026,
"final_at": "2026-07-20T06:10:00Z",
"fetched_at": "2026-10-15T09:00:12Z",
"source": { "provider": "g-live", "page_url": "https://..." },
"result": {
"bib": "123",
"name": "Ahmet Y.",
"finished": true,
"course": { "label": "70K", "distance_km": 70.8, "provider_name": "UPUT70K", "mapped": true },
"net_seconds": 31380,
"gross_seconds": 31402,
"rankings": {
"overall": { "rank": 1, "total": 152 },
"gender": { "rank": 1, "total": 118, "value": "M" },
"category": { "rank": 1, "total": 37, "value": "M40-49" }
},
"ranking_basis": "provider",
"splits": [{ "name": "Dere", "km": 10.0, "seconds": 3600 }],
"page_url": "https://..."
}
},
"meta": { "request_id": "uuid" }
}GET/races/{slug}/courses/{course_key}/route
The course route to draw on a map: Google encoded polyline (precision 5, at most 1500 points, 5 m tolerance), an elevation profile of [distance_m, elevation_m] every 100 metres, and the start and finish points. The route is built by the daily scan from the organiser GPX, TCX, KML or KMZ file; only coordinates and elevation are kept, timestamps and heart rate are dropped. A file that differs from the course distance by more than 15%, starts more than 200 km from the city centre or cannot be matched to the course is not served. distances[].has_route shows which courses have a route and distances[].route_updated_at when it last changed.
| Parameter | Type | Description |
|---|---|---|
course_key | string | distances[].course_key; stays the same when the label changes |
year | integer | Edition year; defaults to the race year, falling back to the same course of the previous edition (is_previous_edition: true) |
The response carries an ETag; ask with If-None-Match and an unchanged route returns 304 without a body. Store the route on your side and refresh it when route_updated_at changes. 404 course_not_found means no such course, 404 route_not_available means the course has no verified route.
curl "https://yarisradari.com/api/v1/races/uludag-ultra-trail/courses/21k/route" \
-H "Authorization: Bearer yr_live_xxxxxxxx" \
-H 'If-None-Match: "3f1c...-2026"'Response:
{
"data": {
"course_key": "21k",
"label": "21K",
"edition_year": 2026,
"is_previous_edition": false,
"distance_km": 21.08,
"polyline": "_p~iF~ps|U_ulLnnqC...",
"point_count": 812,
"elevation_gain_m": 240,
"elevation_loss_m": 238,
"start": { "lat": 40.1, "lng": 29.1 },
"finish": { "lat": 40.1, "lng": 29.1 },
"is_loop": true,
"profile": [[0, 1820], [100, 1826], [200, 1833]],
"source_url": "https://organizator.com/parkur-21k.gpx",
"updated_at": "2026-10-10T08:00:00Z",
"checksum": "3f1c..."
},
"meta": { "request_id": "..." }
}GET/tools/hazirlik-suresi
The open, keyless endpoint of the training lead time calculator: pass a race slug or a raw distance and it returns the number of weeks needed, the peak week and the latest day to start. Keys, quota and the per-minute limit do not apply here; responses are cached for 5 minutes.
| Parameter | Type | Description |
|---|---|---|
| yaris | string | Race slug. Without a course, the longest course of the race is used. |
| parkur | string | Course label (e.g. 63K) or the <raceId>:<label> form. |
| km | number | Distance in km when no race is given. |
| tirmanis | number | Elevation gain in metres, default 0. |
| haftalik | number | Your current weekly running distance in km, default 30. The result depends on it. |
curl "https://yarisradari.com/tools/hazirlik-suresi?yaris=alanya-ultra-trail&haftalik=30"
Response:
{
"input": {
"km": 90,
"elevation_gain_m": 4500,
"weekly_km": 30,
"run_days": 4,
"today": "2026-09-18",
"race": {
"name": "ALANYA ULTRA TRAIL",
"slug": "alanya-ultra-trail",
"course": "90K",
"start_date": "2027-03-27"
}
},
"result": {
"weeks": 23,
"months": 5.5,
"peak_weekly_km": 95,
"peak_long_run_km": 35,
"start_by": "2026-10-17",
"weeks_left": 27,
"late": false,
"volume_ready": false
},
"sentence": {
"tr": "ALANYA ULTRA TRAIL 90K parkuru için haftada 30 km koşan biri hazırlığa 23 hafta, yaklaşık 5,5 ay ayırmalı; en geç 17 Ekim 2026 Cumartesi günü başlamalı. Zirve hafta 95 km efor, en uzun antrenman koşusu 35 km.",
"en": "Someone running 30 km a week needs 23 weeks, about 5.5 months, to prepare for the 90K course of ALANYA ULTRA TRAIL; the latest start is Sat, Oct 17, 2026. The peak week reaches 95 effort km with a 35 km long run."
},
"page": "https://yarisradari.com/araclar/hazirlik-suresi?yaris=alanya-ultra-trail&parkur=90K&haftalik=30"
}The sentence field carries a ready-made sentence in both Turkish and English, so it can be handed straight to an agent. The page field points to the human-readable version of the same calculation.
A wrong or missing parameter returns 400 bad_request and no matching race or course returns 404 race_not_found; yaris only finds upcoming, not cancelled road and trail running races. The error body has the structure described under Limits and errors.
JavaScript example
const res = await fetch(
'https://yarisradari.com/api/v1/races?sport=trail_run&distance_min=40',
{ headers: { Authorization: `Bearer ${process.env.YARISRADARI_API_KEY}` } },
)
const { data, meta } = await res.json()Limits and errors
The monthly quota and the per-minute limit are per key; track what is left through the X-Quota-Remaining and X-RateLimit-Remaining response headers. Every response carries X-Request-Id for log correlation. Errors come back in this format:
{
"error": "missing_api_key",
"message": "No API key was sent. Send your key in the Authorization header as \"Bearer <key>\" or in the X-API-Key header. To get a key, use request_key_url.",
"documentation_url": "https://yarisradari.com/en/race-api#kimlik-dogrulama",
"request_key_url": "https://yarisradari.com/en/contact?konu=api",
"request_id": "uuid"
}error is the machine-readable code. message explains the problem in English; documentation_url points to the matching section of this page and request_key_url (401 errors only) to the key request form.
| HTTP | Code | Meaning |
|---|---|---|
| 400 | invalid_scope, invalid_limit, invalid_slug, … | Invalid parameter or range; message states the valid values |
| 401 | missing_api_key / invalid_api_key | Key missing or wrong |
| 404 | not_found | Race not found |
| 400 | invalid_bib / invalid_year | Bib number or year of a result lookup is invalid |
| 404 | no_result_source / bib_not_found | No result source for that year, or the bib is not in the final list |
| 400 | invalid_name | Name for candidate search is empty, longer than 100 characters or has no letters |
| 404 | name_not_found / name_lookup_unsupported | No athlete matches name or source does not support name lookup |
| 404 | course_not_found / route_not_available | No course with that key in the race, or the course has no verified route |
| 409 | too_many_matches | More than 5 candidates match; search by bib number |
| 503 | results_unavailable | The result provider did not answer; retry after Retry-After |
| 429 | quota_exceeded | Monthly quota used up, renewed at the start of the month (UTC) |
| 429 | rate_limit_exceeded | Per-minute limit exceeded |
| 503 | service_unavailable, lookup_failed, rate_limit_failed, usage_failed | Temporary server problem, see the Retry-After header |
Licence and terms of use
Version 2026-08-05. Receiving a key counts as accepting these terms.
Allowed
- Showing the data in your own app, site or bot
- Building race lists, calendars, alerts and search features
- Caching the data in your own database and keeping it in incremental sync
Required
- A "Source: yarisradari.com" note and a link to the site wherever the data is shown
- Keeping the key secret and using it server-side
Not allowed
- Redistributing the data as another API or selling it on
- Sharing the key or opening your quota to third parties
- Using the Yarış Radarı name in a way that implies endorsement or partnership
The data is compiled automatically from organiser and federation sources, carries a margin of error and comes with no warranty. Before entering a race, the organiser official page prevails.
Machine-readable definition
All endpoints, parameters and the response schema are published as OpenAPI 3.1 at /en/openapi.json (use that file to generate a client or to plug the API into an agent).
Access key
The API works with an access key. If you want to use it, write through the contact page and we will work out a plan that fits your needs.
Frequently asked questions
(4)
Is there a single data source for races in Türkiye?
Yarış Radarı compiles road and trail running, cycling, swimming, triathlon and HYROX races in Türkiye every day from federation calendars, timing platforms and organiser websites, and the major world races are in the calendar too. This API opens that same dataset as JSON.
What does the Race API return?
Dates, city and coordinates, sport, courses (distance, elevation gain, ITRA points, fee, GPX link), registration windows and deadlines, official site, entry and results links, race descriptions, and the Turkish and English page addresses of the race on yarisradari.com. Races that have the data also carry a highlights object: course GPX and map image, checkpoint counts, the seasons in the results archive and the starter and finisher counts of the last season.
How often is the data updated?
The calendar is refreshed by an automatic scan every morning; with the updated_since parameter you can pull only changed records and run an incremental sync.
Is the Race API free, and how do I get access?
Access works with a key: write through the contact page and we will agree on a plan that fits your usage.