Introduction
The Umami API provides programmatic access to your web analytics data. You can use the API to:- Manage websites and tracking configurations
- Create and manage teams
- Access analytics data and reports
- Send custom events
- Retrieve real-time visitor data
Base URL
All API requests should be made to:Authentication
Most API endpoints require authentication using a Bearer token. See the Authentication page for details on how to obtain and use access tokens.Rate Limiting
API requests may be rate-limited depending on your Umami instance configuration. Check response headers for rate limit information.Response Format
All API responses are returned in JSON format. Successful responses include the requested data, while error responses include an error message.Success Response
Error Response
HTTP Status Codes
| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource does not exist |
| 500 | Server Error - Internal server error |
Pagination
Endpoints that return lists support pagination using query parameters:page- Page number (starts at 1)pageSize- Number of items per page