FreeAPIHub
HomeAPIsAI ModelsAI ToolsBlog
Favorites
FreeAPIHub

The central hub for discovering, testing, and integrating the world's best AI models and APIs.

Platform

  • Categories
  • AI Models
  • APIs

Company

  • About Us
  • Contact
  • FAQ

Help

  • Terms of Service
  • Privacy Policy
  • Cookies

© 2026 FreeAPIHub. All rights reserved.

GitHubTwitterLinkedIn
  1. Home
  2. Categories
  3. Analytics
  4. Umami Analytics API
published

Umami Analytics API

Umami Analytics API offers developers a free solution for cookie-free website analytics, providing key metrics while ensuring user privacy and GDPR compliance.

Developed by Umami

Live API
99.90%Uptime
150msLatency
8.4kStars
API KeyAuth
NoCredit Card
RESTStyle
v1Version

Reference

API Endpoints

Endpoints

Available routes, request structures, and code examples.

Retrieves pageview statistics for a website

Endpoint URL
https://api.umami.is/api/websites/{id}/pageviews
Code Example
curl -X GET 'https://api.umami.is/api/websites/{id}/pageviews' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Request Payload
{
  "unit": "day",
  "end_at": "2023-07-18",
  "start_at": "2023-07-01"
}
Expected Response
{
  "data": [
    {
      "date": "2023-07-01",
      "pageviews": 5678
    },
    {
      "date": "2023-07-02",
      "pageviews": 6123
    }
  ],
  "pageviews": 123456
}
Version:v1
Limit:120 requests/minute

Integration

Quick Start

cURL ExampleREST
curl -X GET "https://api.umami.is/v1/api/v1/analytics/12345"

Docs

Technical Documentation

What this API does

The Umami Analytics API is an open-source, privacy-focused tool designed to provide detailed website analytics without compromising user data. It offers developers easy access to key metrics such as visitor counts, page views, referrer data, and custom event tracking through simple RESTful endpoints. The API ensures GDPR compliance by being cookie-free and secure, making it ideal for privacy-conscious applications.

How it works

Developers can integrate the API by using a lightweight 2KB tracking script on their websites. The API supports HTTP GET requests to retrieve analytics data, which is returned in JSON format. This makes it easy to integrate with various development environments. Metrics are collected in real-time, allowing for efficient monitoring and reporting.

Authentication

Access to the Umami Analytics API requires an API key, which should be included in the headers of the requests to ensure secure access. This authentication method helps maintain the integrity of the data and limits unauthorized access to the API endpoints.

Example usage

  • /api/v1/visitors - Retrieves the total visitor count for the specified site.
  • /api/v1/events - Fetches custom event tracking data.
  • /api/v1/pages - Provides page views statistics.
  • /api/v1/referrers - Lists referrer data for the site.

Limits

The API documentation does not specify any rate limits, allowing developers to make requests as needed. However, best practices for API usage should be observed to ensure efficient performance.

Ideal use cases

  • Building real-time dashboards to monitor website performance.
  • Creating custom reporting tools for web analytics.
  • Integrating analytics capabilities into privacy-focused web applications.
  • Providing detailed visitor insights for e-commerce platforms.

Examples

Real-World Applications

  • Integrating website analytics in real-time dashboards
  • Creating custom reporting tools for visitor statistics
  • Tracking user interactions without invasive methods
  • Building privacy-first analytics solutions for client websites
  • Monitoring referral sources and campaign effectiveness

Evaluation

Advantages & Limitations

Advantages
  • ✓ Open-source and free to self-host
  • ✓ Cookie-free and GDPR-compliant
  • ✓ Lightweight 2KB tracking script minimizes page load impact
  • ✓ Simple RESTful API with JSON responses
  • ✓ Supports custom event tracking
Limitations
  • ✗ No official SDKs currently available
  • ✗ Limited to JSON response format
  • ✗ Lacks built-in advanced analytics features like funnels or cohorts
  • ✗ No native support for OAuth2 authentication
  • ✗ Rate limits not strictly documented, may require manual management

Support

Frequently Asked Questions

Important Notice

Verify Before You Decide

Last verified · Apr 30, 2026

The details on this page — including pricing, features, and availability — are based on our last review and may not reflect the provider's current offering. Providers update their products frequently, sometimes without prior notice.

What may have changed

Pricing Plans
Features & Limits
Availability
Terms & Policies

Always visit the official provider website to confirm the latest pricing, terms, and feature availability before subscribing or integrating.

Check official site

External Resources

Documentation Official Website Pricing Details Postman Collection

API Specifications

v1
Pricing Model
Freemium with cloud-hosted plans and self-hosting option
Credit Card
Not Required
Response Formats
JSON
Supported Languages
6 Languages
SDK Support
REST Only
Rate Limit

1000 requests per minute

Time to Hello World

Less than 1 hour

Free Tier

Free tier includes up to 3 sites and 10,000 events per month via Umami Cloud

Best For

Developers seeking privacy-centric, lightweight website analytics solutions

Not Ideal For

Large enterprises needing extensive advanced analytics features and official SDKs

Tags

#google-analytics-alternative#cookieless#gdpr#umami#self-hosted#privacy#analytics#open-source

You Might Also Like

More APIs Similar to Umami Analytics API

Plausible Analytics API

The Plausible Analytics API provides developers with a privacy-first analytics solution, offering access to vital metrics for building custom dashboards or applications.

PublicREST

Ollama API

The Ollama API offers developers a way to run over 100 large language models locally with no dependencies on cloud services, ensuring complete data privacy.

Public AIREST

MinIO S3 API

MinIO S3 API provides developers a free, self-hosted, S3-compatible object storage solution that can be deployed on various infrastructures, ensuring control and flexibility.

PublicREST