Darstellung
Verbrauch
Verbrauch und Fair Use.
| Endpunkt | Anfrage |
|---|---|
| Verbrauch im Monat | GET /v1/usage |
Verbrauch im Monat (Stopps, Tracking-Aufrufe, aktive Fahrer, Geokodierungen, Optimierungen) GET
http
GET /v1/usageAnmeldung: API-Schlüssel oder Sitzung eines Admins (mehr)
Parameter
| Name | Ort | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
period | Query | string | – | Monat (YYYY-MM); Standard laufender Monat. Muster ^\d{4}-(0[1-9]|1[0-2])$. |
Beispiel
bash
curl -sS --fail-with-body "https://api.tourblick.de/v1/usage?period=2026-11" \
-H "Authorization: Bearer $TOURBLICK_API_KEY"js
const res = await fetch('https://api.tourblick.de/v1/usage?period=2026-11', {
headers: {
Authorization: `Bearer ${process.env.TOURBLICK_API_KEY}`,
},
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
const usage = await res.json();
console.log(usage);Antwort
200 Erfolgreich · Schema Usage
json
{
"period": "2026-11",
"metrics": {
"stops": {
"value": 1234,
"limit": 5000
},
"tracking_views": {
"value": 4321,
"limit": null
},
"active_drivers": {
"value": 6,
"limit": null
},
"geocodes": {
"value": 1301,
"limit": null
},
"optimizations": {
"value": 48,
"limit": null
}
},
"over_limit": false
}Fehler
| Status | Code | Bedeutung |
|---|---|---|
| 401 | unauthorized | Nicht angemeldet |
| 403 | forbidden | Keine Berechtigung |
| 422 | validation_failed | Eingabe ungültig |
| 429 | rate_limited | Zu viele Anfragen |
| sonst | internal | Fehler (Format siehe Error) |
Format und Codes: Fehler.