> For the complete documentation index, see [llms.txt](https://docs.racemap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.racemap.com/api.md). Agents can also search and read this documentation through its [MCP server](https://docs.racemap.com/~gitbook/mcp).

# Data API for live geodata

Real-time Data API: location, distance, gap, arrival, results, geofence detections for any application eg. alerts (speed, rest time, ...), TV graphic, live ranks, results, newsletter, push notificatio

The Data API serves the live data of your event to any application.

The full reference of every endpoint is generated from the OpenAPI description at <https://racemap.com/api/v1/openapi.yaml>.

* Location data in the Data API is calculated with each query up to every 1 sec.
* The Data API simultaneously provides real-time geo data from multiple devices.
* Data is processed from different hardware: [GPS trackers](https://docs.racemap.com/gps-devices.md), our [tracking apps](https://docs.racemap.com/apps.md), uploaded activities, and locations from [predictive tracking](https://docs.racemap.com/prediction.md).
* The Data API provides the latest data from each device. That means if a GPS tracker loses connection, the information from its last update is kept.

{% hint style="info" %}
For each endpoint there is a sample of a live event and a past event. Use the samples for effortless testing of your applications.

**Live sample**: Real geodata from 50 GPS trackers on a 100 km track. The sample automatically restarts playing live.

**Past sample:** Real geodata from 20 GPS units (GPS trackers, uploaded activities, and tracking apps) on a 100 km track.
{% endhint %}

{% hint style="warning" %}
**Conditions for live data in the Data API**

1. The event's Data API module must be activated. Otherwise, after [auto-pausation](https://docs.racemap.com/api/auto-pausation.md), or for an archived event, requests to the `current`, `current-replay`, `distance`, `times` and `ranks` endpoints are rejected with HTTP 400. The [unified API](https://docs.racemap.com/api/unified.md) requires predictive tracking instead.
2. Only locations between the event's `startTime` and `endTime` count.
3. If a participant has an individual start or finish time (set manually, by import, or from RACE RESULT), only locations inside that window count.

A participant without locations that meet conditions 2 and 3 is still listed, but their `current` fields are `null`.
{% endhint %}

{% hint style="info" %}
The Data API is only available while the event's Data API module is activated. Two hours after the event's end time, the next request triggers [auto-pausation](https://docs.racemap.com/glossary.md#auto-pausation). It and the following requests are rejected until you manually re-enable access.

Each Data API call counts as a [load](https://docs.racemap.com/glossary.md#load) and is billed.

Read about [auto-pausation](https://docs.racemap.com/api/auto-pausation.md) for details and how to re-enable access.
{% endhint %}

### Live replay loop

Speed up the development progress for your own applications and dashboards with constantly available real-time data from the Data API.

Live replay loop simulates live location data that aligns with your specific use case. To accelerate your development process, we provide recorded coordinates from past events, replayed and repeated in a 24/7 live data stream. If you want to work with your own loop event, contact <support@racemap.com>.

* **Live data:** Replay recorded data from past events as a continuous live-like stream, eliminating the need to constantly source live data.
* **Continuous availability:** The loop event restarts automatically after completion, ensuring the original event data is always available in real-time.
* **Define your scenario:** Focus on specific race situations - such as drafting during overtaking, participant shortcuts, or speeding violations - and precisely replay them repeatedly to fine-tune and train your data processing and analysis.
* **Flexible configuration:** Once established, you can access the settings of your loop event in your event library and adjust key parameters, such as:
  * **Start and end times** – replay only selected timeframes (e.g., 3 min of an overtaking maneuver).
  * **Race track** – upload the shadowtrack from another event.
  * **IMEI numbers** – add and remove GPS trackers in the loop event.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.racemap.com/api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
