You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Škoda as a data source: the public MyŠkoda API with the owner's token #372
Runsten reads Volvo, Polestar, Tesla, BMW and MINI, Hyundai, Kia and Genesis. Škoda now gives the owner an official, free API to their car's data (ADR 0043 §6, which compares the ten largest groups): since MyŠkoda 8.16 (end of August 2026), the owner creates in the app up to 5 tokens per VIN, and a token with its VIN opens a documented public REST API (public.api.connect.skoda-auto.cz/docs), with no developer or company account. evcc reads it since the end of August 2026.
Approach (ADR 0043 §6; a source ADR of its own to come, as ADR 0045 and ADR 0049):
The owner creates a token in MyŠkoda and gives it with the VIN, as an account's own key (ADR 0029). Runsten never asks for the account's password.
A REST API, polled: state of charge, range, charging state and power, charge limit, odometer, parking position, climate. Read only: Runsten commands nothing.
About 20 requests per hour per token (reported by a connector, to check): one read every 3 minutes, enough for charges, tight for trips.
The other brands of the group (VW, Audi, Cupra, SEAT) have no such API; their Data Act portal is another issue.
No test car yet: a beta tester with an Enyaq or an Elroq is needed to check the source on a real car.
Scope
Research note from the API's documentation: endpoints, token lifetime, limits, units, what a trip and a charge can be derived from.
Source ADR: access, cadence within the quota, normalisation.
Simulator: Škoda's endpoints and a brand: skoda scenario.
internal/skoda (client, typed errors, normaliser) and its collector Source.
Collector and schema: the provider, the sealed token, the brand.
API and Connection page: give the VIN and the token, checked before they are saved.
Škoda variants (Enyaq, Elroq) in the model catalogue.
Documentation: documentation/guide/skoda.md (beta), how to create the token.
Plan drawn from the public documentation and OpenAPI contract (1.1.0, read 2026-11-11). What it changes in the scope:
The API has no endpoint listing a key's vehicles: the owner gives the key and the VIN of each car it covers.
One read endpoint, GET /api/v1/vehicles/{vin}, returns every part at once; the limit (20 per hour) is per VIN, read from the RateLimit-* headers, and counts 5xx responses.
Keys expire (X-API-Key-Expires-At on every response): the Connection page shows the date and warns in the last 14 days; an e-mail reminder is a separate issue.
No ignition or speed: a drive is told by parkingPosition.state = IN_MOTION and the odometer. Charging power is given, unlike Pleos.
Škoda's terms say personal use only: a self-hosted instance read by its owner fits; the flag source.skoda lets an instance serving others turn it off.
Read only: the API's charging and climate commands stay unused.
Work in progress on the branch skoda-source (not committed yet). What the implementation decided beyond the plan:
A vehicle's own wait in the collector. Škoda counts per VIN, while the collector's rate-limit pause is the connection's. Two small generic additions: collector.Limiter (a Source may hold a vehicle back until a time: it is skipped, without a call nor a failure) and KindVehicleLimited (a 429 of one vehicle, told to no one, the connection's other vehicles still read). The source holds a VIN once RateLimit-Remaining is down to 2, until RateLimit-Reset, and on a 429 for its Retry-After.
No new failure kind key_expired in the collector: an expired key is refused as any other (credential_refused), and the Connection page tells it expired from its expiry. PUT /connection/skoda does answer 400 key_expired, and 409 vin_not_covered naming the VIN.
The expiry is a generic column, connections.credential_expires_at (migration 0042), written when it changes, never moved back, over the key set at the same time only.
The sealed credential is the key alone: the VINs are the connection's vehicles.
Catalogue: 32 sourced variants (Enyaq iV, Enyaq and Enyaq Coupé 2024–2027, Elroq). The API tells no battery capacity, so Škoda is exempt from the ambiguity rule, as Tesla is; the family comes from the model's name the API gives, else from the VIN (NY and its 4th character, an assumption to check).
The readings' CSV leaves out the licence plate, the address the API formats and the picture's link; the picture is not shown (its link may be a signed one).
Pull request #384 opened, branch skoda-source at 43cc00c (4 commits: the collector's per-vehicle hold, the source, the Connection page, the docs). Remaining: the research note and the source's ADR in the private notes.
#384: review addressed in 5db1e15 (catalogue: the 2027 Enyaq Coupé, the 2024 Enyaq 60) and ee2f202 (VINs deduplicated, the VIN masked in transport errors, the hold in the next reading, a parked reading without coordinates, the form's VIN list and Cancel).
Activity
vcanuel commentedon Nov 11, 2026
Plan drawn from the public documentation and OpenAPI contract (1.1.0, read 2026-11-11). What it changes in the scope:
GET /api/v1/vehicles/{vin}, returns every part at once; the limit (20 per hour) is per VIN, read from theRateLimit-*headers, and counts 5xx responses.X-API-Key-Expires-Aton every response): the Connection page shows the date and warns in the last 14 days; an e-mail reminder is a separate issue.parkingPosition.state = IN_MOTIONand the odometer. Charging power is given, unlike Pleos.source.skodalets an instance serving others turn it off.vcanuel commentedon Nov 12, 2026
Work in progress on the branch
skoda-source(not committed yet). What the implementation decided beyond the plan:collector.Limiter(a Source may hold a vehicle back until a time: it is skipped, without a call nor a failure) andKindVehicleLimited(a 429 of one vehicle, told to no one, the connection's other vehicles still read). The source holds a VIN onceRateLimit-Remainingis down to 2, untilRateLimit-Reset, and on a 429 for itsRetry-After.key_expiredin the collector: an expired key is refused as any other (credential_refused), and the Connection page tells it expired from its expiry.PUT /connection/skodadoes answer400 key_expired, and409 vin_not_coverednaming the VIN.connections.credential_expires_at(migration0042), written when it changes, never moved back, over the key set at the same time only.NYand its 4th character, an assumption to check).Remaining here: the research note and the source's ADR (in the private notes), and a probe script for #383.
vcanuel commentedon Nov 12, 2026
Pull request #384 opened, branch
skoda-sourceat 43cc00c (4 commits: the collector's per-vehicle hold, the source, the Connection page, the docs). Remaining: the research note and the source's ADR in the private notes.vcanuel commentedon Nov 12, 2026
#384: review addressed in 5db1e15 (catalogue: the 2027 Enyaq Coupé, the 2024 Enyaq 60) and ee2f202 (VINs deduplicated, the VIN masked in transport errors, the hold in the next reading, a parked reading without coordinates, the form's VIN list and Cancel).
vcanuel commentedon Nov 12, 2026
Done in runsten 042f5d3 (#384), released in v0.31.0 (https://github.com/runsten-app/runsten/releases/tag/v0.31.0): the Škoda source in beta, behind
source.skoda. Follow-ups: #382 (e-mail reminder before the key expires), #383 (check on a real car). Not done here: the research note and the source's ADR, in the private notes.