published

Umami Analytics API

The Umami Analytics API offers free access to comprehensive website visitor data and analytics, emphasizing user privacy and open-source principles.

Developed by Umami

99.95%Uptime
120msLatency
35.8kStars
API KeyAuth
NoCredit Card
RESTStyle
v1Version
API Endpoints

Reference for available routes, request structures, and live examples.

Retrieves pageview statistics for a website

Full Endpoint URL
http://localhost:3000/api/websites/{id}/pageviews
Implementation Example
curl -X GET 'http://localhost:3000/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

Real-World Applications
  • Building real-time dashboards for website analyticsOptimized Capability
  • Integrating analytics data into internal reporting toolsOptimized Capability
  • Automating usage reporting via scheduled tasksOptimized Capability
  • Creating custom CLI tools for viewing analytics metricsOptimized Capability
  • Embedding privacy-focused analytics into client applicationsOptimized Capability
Advantages
  • Open-source and free to use
  • Privacy-friendly without tracking personal data
  • Simple RESTful interface with JSON responses
  • No strict rate limits for flexible usage
  • Easy integration with popular development stacks
Limitations
  • Requires manual API key management
  • Less feature-rich compared to some commercial analytics APIs
  • No official SDKs currently available
  • Limited advanced filtering options
  • Hosted solution may require custom setup for large scale usage

FAQs

API Specifications

v1
Pricing Model
Free and open-source, self-hosted or managed paid options available
Credit Card
Not Required
Response Formats
JSON
Supported Languages
6 Languages
SDK Support
REST Only
Time to Hello World

Minutes for hosted; hours for self-hosted installation

Rate Limit

No fixed rate limits, usage-based throttling may apply

Free Tier Usage

Full API access with no rate limits and unlimited websites tracked

Use Case: Best For

Developers seeking privacy-compliant website analytics API

Not Recommended For

Users needing detailed user tracking or advanced segmentation features

#privacy#analytics

Explore Related APIs

Discover similar APIs to Umami Analytics API

View All APIs
PUBLIC

Plausible Analytics API

The Plausible Analytics API offers developers free access to privacy-focused website analytics, ensuring user data protection while retrieving essential metrics.

AnalyticsView Details
PUBLIC

DuckDuckGo Instant Answer API

The DuckDuckGo Instant Answer API offers developers free access to structured, instant answers for queries, suitable for various integrations without compromising user privacy.