API for overlays and editing
Your data. Your overlay.
With a read key you fetch your sessions, their metrics and your driving data, from any computer. Live every 100 ms for an overlay in OBS, as CSV or JSON for editing in Resolve. We do not build ready-made overlays, the data for them is here.
- REST
- https://drivts.com/api/v1
- Live
- wss://live.drivts.com/v1/stream
Every field and every code: reference · OpenAPI 3.1 as JSON
Keys
One per program.
You create a key in the portal under Settings, API. Give it a name that says where it lives, for example "OBS on the laptop". It is shown exactly once. We store only a hash and cannot show it to you again. At most 10 keys at a time.
Every request carries the key in the header Authorization: Bearer drivts_ro_…. The server never reads it from an address, not as ?key= either. Every answer is JSON with v: 1, times come as ISO text and as ms since 1970 (startedAt, startedAtMs), the unit is in the name.
curl -H "Authorization: Bearer drivts_ro_…" https://drivts.com/api/v1/meIn an HTML file, a script or an OBS scene, anyone who gets the file or sees your screen while you set it up can read it. It can only read: your sessions, driving data and the live state. Use one key per program and revoke it in the portal as soon as it ends up somewhere it does not belong. Open live streams then end within a minute.
Level, streak, the state of the steps and the metrics of a session need Analysis access, as in the portal. Without it these fields are null and the answer carries notice: { code: "entitlement_required", fields: [...] }. Driving data, export and the live stream always work.
Sandbox
Test without driving.
A sandbox key starts with drivts_sb_ and is created like any key under Settings, API. It never reads your data. Every address answers with fixed sample data in the same shape, with sandbox: true in every JSON answer and every message of the stream.
The same request with a sandbox key:
curl -H "Authorization: Bearer drivts_sb_…" https://drivts.com/api/v1/meThe sample data comes from a real session on 10 October 2026 on the skidpad in the BMW M3 E30, tied to no account. The live stream plays it in a loop, at 20 Hz in packets every 100 ms, with a state like a real drive. After each run a new session starts with a new number, so you see the change too.
The same limits apply as for real keys, and sandbox keys count toward the 10 keys. Brake, clutch and handbrake read 0 in the demo stream and are empty in the export, the rpm is computed from speed, gear and throttle. Level and metrics are always present here, even without analysis access, and notice is null.
Live stream
A packet every 100 ms.
The stream delivers what the live page of the portal shows, plus the driving values at 20 Hz in packets of two. It runs through our server, your gaming PC opens nothing to the outside.
Get a ticket
With the key via
POST /api/v1/live/ticket. The answer{ ticket, url, expiresAt }is valid for 60 seconds and exactly once. The key itself never goes to the live channel.curl -X POST -H "Authorization: Bearer drivts_ro_…" https://drivts.com/api/v1/live/ticketOpen the stream
A WebSocket connection to
url?ticket=…. The stream is read only: send anything and it closes.Read the messages
agent_statusandstateas on the live page,eventfor drifts and tasks, andeventof kindtelemetrywith the driving values. All lists of a packet have the same length,atis the time of the first value.
{
"v": 1, "type": "event", "kind": "telemetry", "at": 1793208183150, "deviceId": "…",
"data": {
"hz": 20,
"speedKmh": [52.4, 52.1], "angleDeg": [34.2, 35.0],
"throttlePct": [100, 100], "brakePct": [0, 0], "clutchPct": [0, 0],
"steerPct": [-41.5, -43.0], "handbrake": [0, 0],
"gear": [2, 2], "rpm": [6820, 6870]
}
}Fields of telemetry
- speedKmhSpeed in km/h
- angleDegDrift angle in degrees, slip of the rear axle, left positive
- throttlePct, brakePctThrottle and brake, 0 to 100
- clutchPctClutch pedal, 0 to 100, 100 means fully pressed
- steerPctSteering, −100 to 100, right positive, measured against the calibrated lock
- handbrakeHandbrake, 0 or 1, only with the Drivts app for Assetto Corsa, else 0
- gearGear: −1 reverse, 0 neutral, 1 to 9
- rpmRevolutions per minute
When the stream closes
- 4004
After 12 hours it ends. Get a new ticket right away and reconnect.
- 4005
The key was revoked or the account suspended. Do not retry.
- 1013
4 streams already open for this account. Close one and try later.
- 1008
The receiver sent something. The stream is read only.
With an older Drivts for PC on the gaming PC you get the state and events, but no driving values. Without an open stream Drivts for PC sends no driving values at all.
Export for editing
Every session, 20 times a second.
The list of your sessions, newest first, and for each session the driving data as CSV or JSON. One continuous time axis from start to end, across laps. Guest sessions on your PC are included, with driver: "guest".
curl -H "Authorization: Bearer drivts_ro_…" "https://drivts.com/api/v1/sessions?limit=5"{
"v": 1,
"sessions": [{
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d", "number": 41,
"startedAt": "2026-10-28T17:12:04.000Z", "startedAtMs": 1793207524000,
"endedAt": "2026-10-28T17:31:40.000Z", "endedAtMs": 1793208700000,
"track": "Skidpad", "car": "BMW M3 E30", "driver": "owner",
"kind": "training", "coached": true, "drifts": 63, "longestDriftS": 7.4
}],
"next": "MjAyNi0xMC0yN1QxOTo0MDoxMS4wMDBafGIyYzNkNGU1LWY2YTctNGI4Yy05ZDBlLTFmMmEzYjRjNWQ2ZQ",
"notice": null
}Continue with ?before= and the value from next until next is null. limit runs from 1 to 100, default 50. One session with metrics, drifts and goals is at /api/v1/sessions/{id}.
curl -H "Authorization: Bearer drivts_ro_…" -OJ https://drivts.com/api/v1/sessions/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/telemetry.csvThe same columns come as JSON at telemetry.json: { v, session, hz, columns, rows }, an empty cell is null there. The CSV is UTF-8 with BOM, comma as separator, point as decimal mark.
Columns
- t_ssTime since the start of the session. The axis for editing.
- time_msmsClock of the gaming PC, ms since 1970 (UTC)
- lapLap
- speed_kmhkm/hSpeed
- angle_deg°Drift angle, left positive
- throttle_pct%Throttle
- brake_pct%Brake
- clutch_pct%Clutch pedal, 100 fully pressed
- handbrake0/1Handbrake, only with the Drivts app for Assetto Corsa, else empty (`null` in JSON)
- steer_pct%Steering, −100 to 100, right positive
- gearGear, −1 reverse, 0 neutral
- rpm1/minEngine speed
- x_m, y_m, z_mmPosition on the track as Assetto Corsa reports it
- lap_progress0 to 1Share of the lap
OBS
An overlay in 30 lines.
Save this as overlay.html, put in your key and add a "Browser" source with "Local file" in OBS. The background stays transparent. The page gets a ticket, opens the stream and shows speed and angle. When the stream ends after 12 hours, it gets a new one.
<!doctype html>
<meta charset="utf-8">
<style>
body { margin: 0; font: 800 64px system-ui, sans-serif; color: #fff; }
#hud { position: absolute; left: 48px; bottom: 48px; }
</style>
<div id="hud"><span id="kmh">0</span> km/h · <span id="deg">0</span>°</div>
<script>
const kmh = document.getElementById('kmh'), deg = document.getElementById('deg');
const KEY = 'drivts_ro_…'; // read key, see the warning above
async function connect() {
let res;
try {
res = await fetch('https://drivts.com/api/v1/live/ticket', {
method: 'POST', headers: { Authorization: 'Bearer ' + KEY },
});
} catch {
return setTimeout(connect, 10000);
}
if (!res.ok) return setTimeout(connect, 10000);
const { url, ticket } = await res.json();
const ws = new WebSocket(url + '?ticket=' + encodeURIComponent(ticket));
ws.onmessage = (e) => {
const m = JSON.parse(e.data);
if (m.type !== 'event' || m.kind !== 'telemetry') return;
kmh.textContent = Math.round(m.data.speedKmh.at(-1));
deg.textContent = Math.round(Math.abs(m.data.angleDeg.at(-1)));
};
ws.onclose = (e) => {
if (e.code === 4005) return; // revoked: stop
setTimeout(connect, e.code === 4004 ? 0 : 5000);
};
}
connect();
</script>The API allows requests from any origin, a local file included, and never sends cookies. On a computer where others see your scenes, the warning about the key above matters most.
DaVinci Resolve
Angle onto the timeline.
Download the CSV of the session, add a Transform node on the Fusion page and run the script from Workspace, Scripts (as a .lua file in the Scripts/Comp folder of Fusion). It sets one keyframe per video frame from angle_deg, the time comes from t_s.
-- Drivts: angle_deg from the CSV as keyframes on Transform1.Angle
local path = [[/home/lena/drivts-telemetry-2026-10-28-a1b2c3d4.csv]]
local start_s = 0 -- where t_s = 0 sits in the clip, in seconds
local comp = fu:GetCurrentComp()
local fps = comp:GetPrefs("Comp.FrameFormat.Rate")
local tool = comp:FindTool("Transform1")
local file = assert(io.open(path, "r"))
local header = file:read("*l"):gsub("^\239\187\191", "")
local col, i = {}, 0
for name in header:gmatch("[^,]+") do i = i + 1; col[name] = i end
comp:Lock()
tool.Angle = comp:BezierSpline()
local last = nil
for line in file:lines() do
local cells = {}
for cell in (line .. ","):gmatch("([^,]*),") do cells[#cells + 1] = cell end
local t, angle = tonumber(cells[col.t_s]), tonumber(cells[col.angle_deg])
local frame = t and math.floor((t + start_s) * fps + 0.5)
if t and angle and frame ~= last then tool.Angle[frame] = angle; last = frame end
end
comp:Unlock()
file:close()Set start_s so that t_s = 0 sits on the frame where the session starts in your recording. For a number on screen, give a Text+ node the expression Text(string.format("%.0f°", Transform1.Angle)). speed_kmh or throttle_pct work the same way.
Limits
Enough for any overlay.
- 60
requests per minute and key
- 10
exports per hour and key, on top of the 60
- 4
open live streams per account
- 12 h
at most per stream, then a new ticket
- 30
tickets per minute and account, each valid for 60 seconds
- 10
keys per account
Above that you get 429 with Retry-After in seconds. A very long session that is too large for one export gets 413, like the export in the portal.
More than 20 requests in one minute with a missing or wrong key, and the address gets 429 for up to a minute, even with a correct key. When many computers share one address, behind a router or on a mobile network, that counts for all of them.
Errors
When something goes wrong.
Every error has the same shape. The code stays stable, the message is for developers. With an internal, write to us with the correlationId.
{ "error": { "code": "rate_limited", "message": "60 requests per minute and key", "correlationId": "7f3c9a2e1b" } }- CodeStatusMeaning
- unauthorized401Key missing, wrong or revoked
- account_suspended403The account is suspended
- terms_required403Accept the current terms of use in the portal. The export works without.
- not_found404Your account has no such session
- invalid_input400A parameter does not fit, for example
limit=500 - payload_too_large413Session too large for one export
- rate_limited429Too many requests, wait as long as
Retry-Aftersays - internal500Error on our side