slyticaslytica
Kostenlos starten
slyticaslytica
Anmelden Kostenlos starten
Für Entwickler

Deine Zahlen, maschinenlesbar.

Alles, was das Dashboard zeigt, liefert auch die API — das Dashboard selbst nutzt exakt dieselben Endpoints (Dogfooding). Auth über API-Keys mit minimalen Scopes.

Stats API

Zeitreihen, Aggregate, Listen-Dimensionen, Live und ein kompakter Summary-Endpoint — mit derselben Filter-Syntax wie das Dashboard.

Scope stats:read

Zur Doku →
curl
JavaScript
curl -H "Authorization: Bearer sa_..." \
  "https://slytica.com/api/stats/<websiteId>/aggregate?from=2026-05-01&to=2026-05-31&fields=pageviews,visitors"
const res = await fetch(
  'https://slytica.com/api/stats/<websiteId>/summary?range=7d',
  { headers: { Authorization: 'Bearer sa_...' } }
);
const summary = await res.json();

Export API

Rohdaten als CSV, NDJSON oder JSON — gestreamt mit Cursor-Pagination. Grundlage für Looker Studio, Power BI und CloudQuery.

Scope export:read

Zur Doku →
curl
JavaScript
curl -H "Authorization: Bearer sa_..." \
  "https://slytica.com/api/export/<websiteId>?format=ndjson&from=2026-01-01&to=2026-06-01" \
  > datapoints.ndjson
const res = await fetch(
  'https://slytica.com/api/export/<websiteId>?format=json&from=2026-01-01&to=2026-06-01',
  { headers: { Authorization: 'Bearer sa_...' } }
);
for await (const chunk of res.body) { /* streamen */ }

Admin API

Websites, Settings und Nutzer programmatisch verwalten — Automatisierung und White-Label-Provisioning.

Scope admin:write

Zur Doku →
curl
JavaScript
curl -X PATCH -H "Authorization: Bearer sa_..." \
  -H "Content-Type: application/json" \
  -d '{"public": true}' \
  "https://slytica.com/api/admin/websites/<websiteId>"
await fetch('https://slytica.com/api/admin/websites/<websiteId>', {
  method: 'PATCH',
  headers: {
    Authorization: 'Bearer sa_...',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({ public: true })
});
Mehr

Außerdem

Server-Side Events

Conversions aus dem Backend senden — POST /api/v1/server-events mit Scope events:write.

Zur Doku →

API-Keys & Scopes

Keys mit sa_-Prefix, gehasht gespeichert, minimale Scopes, letzter Einsatz sichtbar.

Zur Doku →

OpenAPI

Die vollständige, interaktive Spezifikation liefert die API selbst unter /api/docs (Swagger UI).

Zur Doku →
Loslegen

API-Key erzeugen und losbauen.

API-Keys verwaltest du in deinem Account — kostenlos im Free-Plan enthalten.

Kostenlos starten Zur API-Doku