{"openapi":"3.1.0","info":{"title":"Transparent Laden Stations API","version":"1.0.0","description":"Registered-account API for circular station search, public end-customer charging prices, reported occupancy and direct app links. Statistics describe observations since collection began, in UTC; unavailable history is not fabricated.","contact":{"url":"https://transparent-laden.de/kontakt"}},"servers":[{"url":"https://transparent-laden.de/api/partner/v1"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Register/sign in at https://transparent-laden.de/portal/api and create a key. Store it server-side, never in a URL."}}},"paths":{"/stations/nearby":{"get":{"operationId":"findNearbyStations","summary":"Stations within an account-key-limited radius","description":"Default 20, maximum 50 stations per page, sorted by true great-circle distance and ID. Follow next_cursor with the same search parameters. A requested radius above the key maximum returns HTTP 200 with an explicit RADIUS_CAPPED warning; the effective radius is enforced for every page. Only visible live station data; no upstream pulls or charging/payment actions.","parameters":[{"name":"latitude","in":"query","required":true,"schema":{"type":"number","minimum":-90,"maximum":90}},{"name":"longitude","in":"query","required":true,"schema":{"type":"number","minimum":-180,"maximum":180}},{"name":"radius_km","in":"query","required":true,"schema":{"type":"number","minimum":0.01,"maximum":10000000}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":512},"description":"Opaque cursor from the preceding page; null means no further page."}],"responses":{"200":{"description":"Station page. Radius capping is a warning, not a request failure. Unknown prices/statistics are null, not zero.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"UTC Unix timestamp of the fixed account-wide minute-window reset."}},"content":{"application/json":{"schema":{"type":"object","required":["meta","stations"],"properties":{"meta":{"type":"object","properties":{"generated_at":{"type":"string","format":"date-time"},"latitude":{"type":"number"},"longitude":{"type":"number"},"requested_radius_km":{"type":"number"},"effective_radius_km":{"type":"number"},"radius_limited":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","const":"RADIUS_CAPPED"},"message":{"type":"string"},"requested_radius_km":{"type":"number"},"effective_radius_km":{"type":"number"}}}},"returned_count":{"type":"integer"},"next_cursor":{"type":["string","null"]},"data_consistency":{"type":"string"}}},"stations":{"type":"array","items":{"type":"object","required":["id","name","coordinates","distance_km","charging_points_count","connectors_count","current_occupancy","connectors","occupancy_statistics","app_url"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"operator_name":{"type":["string","null"]},"address":{"type":"object","properties":{"street":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"city":{"type":["string","null"]},"country":{"type":["string","null"]}}},"coordinates":{"type":"object","properties":{"latitude":{"type":"number"},"longitude":{"type":"number"}}},"distance_km":{"type":"number"},"charging_points_count":{"type":"integer","description":"EVSE count; see current_occupancy.point_identity_complete for incomplete source identification."},"connectors_count":{"type":"integer"},"current_occupancy":{"type":"object","properties":{"total":{"type":"integer"},"available":{"type":"integer"},"occupied":{"type":"integer"},"unavailable":{"type":"integer"},"unknown":{"type":"integer"},"point_identity_complete":{"type":"boolean"}}},"status_data_as_of":{"type":["string","null"]},"startable_through_transparent_laden":{"type":"boolean"},"minimum_estimated_price_per_kwh_cent":{"type":["number","null"]},"currency":{"type":"string","const":"EUR"},"connectors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"evse_id":{"type":["string","null"]},"evse_uid":{"type":["string","null"]},"connector_type":{"type":"string"},"power_kw":{"type":["number","null"]},"status":{"type":"string"},"last_reported_at":{"type":["string","null"]},"price_data_as_of":{"type":["string","null"]},"pricing":{"type":"object","required":["status","estimated_total_per_kwh_cent"],"properties":{"status":{"type":"string","enum":["available","unavailable"]},"currency":{"type":"string","const":"EUR"},"estimated_total_per_kwh_cent":{"type":["number","null"],"description":"Gross reference-session total divided by reference energy, including one-off and reference-duration costs; not an unconditional energy rate."},"vat_included":{"type":"boolean"},"personal_discounts_included":{"type":"boolean","const":false},"reference":{"type":"object","description":"Explicit reference energy, real connector power, charging-curve assumption and computed charge estimate. No individual customer data.","additionalProperties":true},"rates":{"type":"object","description":"Charging rate components in cents, including time/blocking conditions and service costs.","additionalProperties":true},"note":{"type":"string"},"energy_price_per_kwh_cent":{"type":["number","null"],"description":"Public gross energy rate per kWh including variable service costs; one-off, time and blocking components are separate."}}},"last_reported_occupancy":{"type":"object","description":"Latest stored CPO-reported interval, not personal charging-session records or a guarantee of current occupation. All timestamps UTC.","properties":{"occupied_since":{"type":["string","null"]},"last_started_at":{"type":["string","null"]},"last_ended_at":{"type":["string","null"]}}}}}},"occupancy_statistics":{"type":"object","properties":{"status":{"type":"string","enum":["insufficient_data","observations_available"]},"method":{"type":"string","const":"periodic_point_samples"},"timezone":{"type":"string","const":"UTC"},"observed_from":{"type":["string","null"]},"observed_until":{"type":["string","null"]},"target_sampling_interval_seconds":{"type":"integer","const":900},"source_max_age_seconds":{"type":"integer","const":600},"hourly":{"type":"array","items":{"type":"object","properties":{"hour":{"type":"integer","minimum":0,"maximum":23},"iso_weekday":{"type":"integer","minimum":1,"maximum":7},"occupied_percent":{"type":["number","null"]},"samples":{"type":"integer","minimum":0},"known_point_samples":{"type":"integer","minimum":0},"unknown_point_samples":{"type":"integer","minimum":0},"coverage_percent":{"type":["number","null"]}}}},"weekdays":{"type":"array","items":{"type":"object","properties":{"hour":{"type":"integer","minimum":0,"maximum":23},"iso_weekday":{"type":"integer","minimum":1,"maximum":7},"occupied_percent":{"type":["number","null"]},"samples":{"type":"integer","minimum":0},"known_point_samples":{"type":"integer","minimum":0},"unknown_point_samples":{"type":"integer","minimum":0},"coverage_percent":{"type":["number","null"]}}}},"note":{"type":"string"}}},"app_url":{"type":"string","format":"uri","description":"Opens this station in the app or the safe website/store fallback; never starts charging."}}}}}}}}},"401":{"description":"Request rejected; no successful station result.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"retry_after_seconds":{"type":"integer"}}}}}}}},"422":{"description":"Request rejected; no successful station result.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"retry_after_seconds":{"type":"integer"}}}}}}}},"429":{"description":"Request rejected; no successful station result.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"retry_after_seconds":{"type":"integer"}}}}}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until the account limit resets; keys share this limit."}}},"503":{"description":"Request rejected; no successful station result.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"retry_after_seconds":{"type":"integer"}}}}}}}}}}}}}