Base URL
All Cloud API requests are sent to the following base URL:When self-hosting Betterumami, replace the Cloud base URL with your own instance’s origin:
https://<your-instance>/api.Region variants
By default, the API routes your request to the region tied to the account that owns the API key. You can pin a specific region by adding it as the first path segment:Authentication
Every request to the API (exceptPOST /api/send and POST /api/batch) must include an Authorization header using the Bearer scheme:
Rate limits
Each API key is limited to 50 requests per 15-second window. If you exceed this limit, the API returns a429 Too Many Requests response. Build in a short back-off and retry loop in your client to handle bursts gracefully.
Common endpoints
The table below lists the endpoints most integrations rely on. Every path is relative to your base URL. Click through to the full reference page for parameter details, filters, and example responses.Most stat endpoints require a
websiteId. Use GET /websites to list your sites and find the ID for the one you want to query.Restricted routes
The following API routes are not available when using an API key on Betterumami Cloud:Quick start
Here’s the minimum needed to pull summary statistics for one of your websites usingcurl:
Explore the API
Authentication
Learn how to generate API keys, pass Bearer tokens, and use the username/password login flow on self-hosted instances.
Sending Stats
Send pageview and custom events directly via the API — no tracker script required.
Website Endpoints
Query stats, pageviews, metrics, and active visitors for any website in your account.
API Keys
Step-by-step guide to creating, rotating, and revoking API keys from the Betterumami dashboard.