跳到正文
TakoAPI
返回技能列表

umami-stats

由 hfichter 提供

Web & Frontend Development
872下载量由 clawskills.sh 提供
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Query Umami Cloud (v2) analytics data via API using an environment-provided API key.

描述

该技能的功能

Provides read-only access to Umami analytics data via the Umami Cloud v2 API or a self-hosted Umami instance. A Python script handles endpoint selection, authentication, and time-range presets so agents can fetch traffic, page, event, session, and report data without manual API setup.

The included query script abstracts auth differences between cloud and self-hosted Umami and handles path mapping automatically, so agents can fetch data with a single command instead of constructing raw API calls.

何时使用

  • Checking weekly website traffic trends
  • Finding top-performing pages over the last 30 days
  • Monitoring signup click events over a custom date range
  • Pulling raw analytics data to plan a marketing experiment
  • Comparing current week vs previous week session counts

示例工作流

输入

User asks: What were my top pages in the last 30 days?

智能体
  1. 1

    Identify the website ID from UMAMI_WEBSITE_ID env var or by calling /v1/websites

  2. 2

    Run umami_query.py with --endpoint /v1/websites/{websiteId}/pageviews and --preset last30d

  3. 3

    Receive JSON response containing page URLs and view counts

  4. 4

    Sort and extract the top entries from the returned data

输出

A ranked list of pages with their view counts for the past 30 days

前置要求

  • UMAMI_API_KEY environment variable
  • Umami Cloud account or self-hosted Umami instance
  • UMAMI_WEBSITE_ID environment variable (if not passing --website-id at runtime)

安装

clawhub install hfichter/umami-stats

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接