REST API

Updated

The REST API gives you the same data as the MCP server, as JSON over HTTPS, for scripts, dashboards and your own tools. It's read only.

Authentication

Create an API key under Settings → API & MCP (see Create an API key) and send it in the Authorization header of every request:

curl -H "Authorization: Bearer YOUR_API_KEY" https://app.strabber.com/api/v1/sites

All addresses start with https://app.strabber.com/api/v1.

Responses and errors

A successful response has status 200 and the result under data:

{
  "data": { ... }
}

When something goes wrong, the response has an error status and an error with a code and a message:

{
  "error": {
    "code": "invalid_arguments",
    "message": "Some arguments are not valid",
    "fields": { "date_from": ["The date from field is required."] }
  }
}
Status Code Meaning
401 unauthenticated The key is missing, wrong or deleted.
404 site_not_found, recording_not_found, issue_not_found, funnel_not_found, not_found It doesn't exist, or the key can't read it.
422 invalid_arguments and others A parameter is missing or not valid. fields says which.
429 too_many_requests Over the rate limit. Wait the number of seconds in the Retry-After header.
500 server_error Something went wrong on our side. Try again later.

Dates and limits

  • Most endpoints need a period: date_from and date_to, both YYYY-MM-DD, with date_to included. A period can be at most 366 days.
  • Dates are in UTC. Add timezone, such as Europe/Berlin, to use another timezone.
  • Each key can make up to 60 requests a minute and 10,000 a day, shared with the MCP server.
  • IDs of sites, recordings, events, funnels and trends are strings such as pvn7LjJaqk. Issues use their ID, such as IS-2026-001.
  • Recordings and issues include a url that opens them in Strabber.

Endpoints

List sites

GET /sites

The sites the key can read, with their id, name, domain and project.

Statistics

GET /sites/{site}/statistics?date_from=&date_to=

The totals of the period (visits, page views, recordings, bounce rate, script errors, rage clicks, dead clicks, U-turns, events and averages), the same totals for the period of the same length before it, visits per day, and the top pages, countries, devices, browsers and the pages with the most errors and frustration.

Recordings

GET /sites/{site}/recordings?date_from=&date_to=

Recordings of the period, newest first, with the total that match. Optional parameters:

  • search: text found in the URLs, browser, country or AI summary title
  • filters: conditions that must all match, as a JSON array such as [{"name":"device","condition":"equal","input":"smartphone"}]
    • name: aiOutcome (completed, abandoned or unclear), aiTitle, duration (seconds), pagesCount, rageClicks, deadClicks, uTurns, scriptErrors, consoleErrors, frustrationScore, activityScore (0 to 10), device (desktop, tablet or smartphone), browserName, osName, country (ISO code), landingPageURL, exitPageURL, pageURL, sourceURL, utmSource, utmCampaign, utmMedium or event (an event ID)
    • condition: equal, notEqual, contains, notContains, startsWith, endsWith, greaterThan, lessThan, empty or notEmpty
  • sort: sorts from the highest by id, duration, pagesCount, rageClicks, deadClicks, uTurns, scriptErrors, frustrationScore or activityScore
  • limit: 1 to 20, 10 by default
  • page: the page of results, from 1

GET /sites/{site}/recordings/{recording}/summary

The recording and its AI summary in report, or null when it doesn't have one yet.

Events

GET /sites/{site}/events

Your events with their id, name, nature and how many times each was called.

GET /sites/{site}/trends

Your saved trends.

POST /sites/{site}/trends/run

Counts events or page views over time without saving anything. Send a JSON body:

{
  "date_from": "2026-11-01",
  "date_to": "2026-11-30",
  "series": [
    { "type": "event", "event": "EoPy3zNLlw" },
    { "type": "page", "url_condition": "contains", "url": "/pricing" }
  ],
  "metric": "total",
  "interval": "week"
}
  • series: 1 to 5. An event series takes the event's ID and optional properties conditions; a page series takes url_condition (equal, notEqual, contains, notContains, startsWith, notStartsWith, endsWith or notEndsWith) and url.
  • metric: total (calls or views), visitors or sessions
  • interval: day, week or month
  • breakdown: a property of the event to split a single event series by

Funnels

GET /sites/{site}/funnels

Your saved funnels with their steps.

POST /sites/{site}/funnels/run

Runs a funnel without saving it. Send funnel_id to run a saved funnel, or 2 to 10 steps:

{
  "date_from": "2026-11-01",
  "date_to": "2026-11-30",
  "steps": [
    { "type": "page", "url_condition": "contains", "url": "/product" },
    { "type": "event", "event_id": "EoPy3zNLlw" },
    { "type": "page", "url_condition": "contains", "url": "/checkout" }
  ],
  "count_by": "sessions",
  "device": "all"
}
  • count_by: sessions or visitors
  • device: all, desktop, tablet or smartphone

The result has how many sessions or visitors reached each step and stopped there, with a few of their recordings.

Issues

GET /sites/{site}/issues?date_from=&date_to=

Issues that happened in the period, with how often and to how many visitors, their priority and AI triage. Optional parameters:

  • status: open (default), resolved or ignored
  • sort: count (default), last_seen, priority or visitors
  • search: text in the message or script, or an issue ID
  • limit: 1 to 25, 10 by default
  • page: the page of results, from 1

GET /sites/{site}/issues/{issue}?date_from=&date_to=

One issue in detail: its counts in the period, occurrences per day, the pages, browsers, devices and countries where it happens most, its latest occurrences, and its AI analysis in ai_explanation if it has one.