# Send Umami Stats to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "umami-stats",
    "name": "Umami Stats",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/hfichter/umami-stats",
    "canonicalUrl": "https://clawhub.ai/hfichter/umami-stats",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/umami-stats",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=umami-stats",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/read-endpoints.md",
      "scripts/umami_query.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "umami-stats",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-10T09:20:47.003Z",
      "expiresAt": "2026-05-17T09:20:47.003Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=umami-stats",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=umami-stats",
        "contentDisposition": "attachment; filename=\"umami-stats-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "umami-stats"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/umami-stats"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/umami-stats",
    "downloadUrl": "https://openagent3.xyz/downloads/umami-stats",
    "agentUrl": "https://openagent3.xyz/skills/umami-stats/agent",
    "manifestUrl": "https://openagent3.xyz/skills/umami-stats/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/umami-stats/agent.md"
  }
}
```
## Documentation

### 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: cloud or self-hosted, default: cloud)

### API path conventions (explicit)

Umami Cloud: https://api.umami.is/v1/...
Self-hosted Umami: https://<your-host>/api/...

The script supports both:

--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.py with endpoint + params.
Use presets (today, last7d, etc.) or custom startAt/endAt.
Analyze returned JSON for the user task.

### Quick commands

# 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/api and 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 uses Authorization: Bearer ....
metrics endpoints require a type query param. The script now auto-defaults to type=url if omitted.
For /v1/reports/* endpoints, the script auto-adds websiteId from --website-id / UMAMI_WEBSITE_ID when 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
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: hfichter
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-10T09:20:47.003Z
- Expires at: 2026-05-17T09:20:47.003Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/umami-stats)
- [Send to Agent page](https://openagent3.xyz/skills/umami-stats/agent)
- [JSON manifest](https://openagent3.xyz/skills/umami-stats/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/umami-stats/agent.md)
- [Download page](https://openagent3.xyz/downloads/umami-stats)