✓ Verified
💻 Development
✓ Enhanced Data
Umami Stats
Query Umami Cloud (v2) analytics data via API using an environment-provided API key.
- Rating
- 4.1 (327 reviews)
- Downloads
- 34,124 downloads
- Version
- 1.0.0
Overview
Query Umami Cloud (v2) analytics data via API using an environment-provided API key.
Complete Documentation
View Source →
Umami Stats (Read-only API skill)
Use this skill as a data-access layer: fetch Umami analytics data, then let the agent decide analysis/strategy.
Required environment variables
UMAMI_API_KEY(required)UMAMI_BASE_URL(optional, default:https://api.umami.is)UMAMI_WEBSITE_ID(optional default site)UMAMI_DEPLOYMENT(optional:cloudorself-hosted, default:cloud)
API path conventions (explicit)
- Umami Cloud:
https://api.umami.is/v1/... - Self-hosted Umami:
https:///api/...
--deployment cloud→ uses cloud behavior (/v1+x-umami-api-key)--deployment self-hosted→ uses self-hosted behavior (/api+Authorization: Bearer ...)
Read-only workflow
- Pick endpoint from docs or
references/read-endpoints.md. - Run
scripts/umami_query.pywith endpoint + params. - Use presets (
today,last7d, etc.) or customstartAt/endAt. - Analyze returned JSON for the user task.
Quick commands
bash
# 1) List websites
python3 scripts/umami_query.py --endpoint /v1/websites
# 2) Website stats for last 7 days (default website from env)
python3 scripts/umami_query.py \
--endpoint /v1/websites/{websiteId}/stats \
--preset last7d
# 3) Top pages with explicit website id
python3 scripts/umami_query.py \
--endpoint /v1/websites/{websiteId}/pageviews \
--website-id "$UMAMI_WEBSITE_ID" \
--preset last30d
# 4) Events series with custom window
python3 scripts/umami_query.py \
--endpoint /v1/websites/{websiteId}/events/series \
--param startAt=1738368000000 \
--param endAt=1738972799000
# 5) Legacy path auto-mapping in cloud mode (/api/... -> /v1/...)
python3 scripts/umami_query.py --endpoint /api/websites/{websiteId}/stats --preset last7d
# 6) Self-hosted example (/v1/... auto-maps to /api/...)
python3 scripts/umami_query.py \
--deployment self-hosted \
--base-url "https://umami.example.com" \
--endpoint /v1/websites/{websiteId}/stats \
--preset last7d
Natural trigger examples
- “How was traffic this week?”
- “Top pages in the last 30 days”
- “Show event trends for signup clicks”
- “Compare current week vs previous week”
- “Give me raw Umami data to build a marketing experiment plan”
Notes
- Keep requests read-only (
GET). - Prefer explicit time windows for reproducibility.
- For unknown endpoints, consult
https://v2.umami.is/docs/apiand then query with the script. - Prefer
/v1/...endpoints in cloud mode,/api/...in self-hosted mode. - Auth headers are mode-specific: cloud uses
x-umami-api-key; self-hosted usesAuthorization: Bearer .... metricsendpoints require atypequery param. The script now auto-defaults totype=urlif omitted.- For
/v1/reports/*endpoints, the script auto-addswebsiteIdfrom--website-id/UMAMI_WEBSITE_IDwhen available. - On Umami Cloud,
/v1/users/*endpoints can return 403 for normal user API keys (expected in many accounts).
Resources
- Endpoint map:
references/read-endpoints.md - Query helper:
scripts/umami_query.py
Installation
Terminal bash
openclaw install umami-stats
Copied!
💻Code Examples
example.sh
# 1) List websites
python3 scripts/umami_query.py --endpoint /v1/websites
# 2) Website stats for last 7 days (default website from env)
python3 scripts/umami_query.py \
--endpoint /v1/websites/{websiteId}/stats \
--preset last7d
# 3) Top pages with explicit website id
python3 scripts/umami_query.py \
--endpoint /v1/websites/{websiteId}/pageviews \
--website-id "$UMAMI_WEBSITE_ID" \
--preset last30d
# 4) Events series with custom window
python3 scripts/umami_query.py \
--endpoint /v1/websites/{websiteId}/events/series \
--param startAt=1738368000000 \
--param endAt=1738972799000
# 5) Legacy path auto-mapping in cloud mode (/api/... -> /v1/...)
python3 scripts/umami_query.py --endpoint /api/websites/{websiteId}/stats --preset last7d
# 6) Self-hosted example (/v1/... auto-maps to /api/...)
python3 scripts/umami_query.py \
--deployment self-hosted \
--base-url "https://umami.example.com" \
--endpoint /v1/websites/{websiteId}/stats \
--preset last7dTags
#web_and-frontend-development
#api
#data
Quick Info
Category Development
Model Claude 3.5
Complexity One-Click
Author hfichter
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install umami-stats
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
⚡ GPT-Optimized
)}
★ 3.8 (274)
↓ 17,648
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0