# Send Datafast Analytics 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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "datafast-analytics",
    "name": "Datafast Analytics",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/bennyqp/datafast-analytics",
    "canonicalUrl": "https://clawhub.ai/bennyqp/datafast-analytics",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/datafast-analytics",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=datafast-analytics",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "datafast-analytics",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-02T08:19:26.770Z",
      "expiresAt": "2026-05-09T08:19:26.770Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=datafast-analytics",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=datafast-analytics",
        "contentDisposition": "attachment; filename=\"datafast-analytics-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "datafast-analytics"
      },
      "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/datafast-analytics"
    },
    "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/datafast-analytics",
    "downloadUrl": "https://openagent3.xyz/downloads/datafast-analytics",
    "agentUrl": "https://openagent3.xyz/skills/datafast-analytics/agent",
    "manifestUrl": "https://openagent3.xyz/skills/datafast-analytics/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/datafast-analytics/agent.md"
  }
}
```
## Documentation

### DataFast Analytics Skill

Use this skill to call the DataFast API and summarize results for the user.

### Quick Workflow

Confirm the request type (overview, timeseries, realtime, breakdown, visitor, goals/payments create/delete).
Gather required inputs:

Date range: startAt and endAt together or neither (overview/timeseries support ranges).
timezone, fields, interval, limit, offset, and any filter_* parameters.


Build the HTTP request with Authorization: Bearer $DATAFAST_API_KEY and Content-Type: application/json.
Execute with curl and parse JSON.
Summarize results in a table plus a short narrative (totals + key takeaways). Include pagination info if relevant.

### Setup

Get your API key from DataFast (starts with df_).
Store it:

mkdir -p ~/.config/datafast
echo "df_your_key_here" > ~/.config/datafast/api_key

### Authentication

All requests need:

DATAFAST_API_KEY=$(cat ~/.config/datafast/api_key)
curl ... \\
  -H "Authorization: Bearer $DATAFAST_API_KEY" \\
  -H "Content-Type: application/json"

If the user hasn't set up the API key, ask them to follow the setup steps above.

### Base URL

https://datafa.st/api/v1/

### Reference Docs

Use the full API reference at {baseDir}/references/datafast-api-docs.md for endpoint details, response fields, and examples.

### Overview

GET /analytics/overview
Optional: startAt, endAt, timezone, fields.

### Time Series

GET /analytics/timeseries
Typical params: fields, interval (hour/day/week/month), startAt, endAt, timezone, limit, offset.
Accepts filter_* query params for segmentation.
Note: fields is required (e.g., fields=visitors,sessions).

### Realtime

GET /analytics/realtime
GET /analytics/realtime/map

### Breakdowns

GET /analytics/devices
GET /analytics/pages
GET /analytics/campaigns
GET /analytics/goals
GET /analytics/referrers
GET /analytics/countries
GET /analytics/regions
GET /analytics/cities
GET /analytics/browsers
GET /analytics/operating-systems
GET /analytics/hostnames

### Visitor Details

GET /visitors/{datafast_visitor_id}

### Goals

Create goal: POST /goals
Delete goals: DELETE /goals (requires at least one filter or time range; confirm scope)

### Payments

Create payment: POST /payments
Delete payments: DELETE /payments (confirm scope)

### Destructive Actions

For DELETE /goals or DELETE /payments:

Always confirm exact filters and time range in plain English before executing.
If user asks for "all time" deletion, ask for explicit confirmation.
Echo the final URL that will be called (without the API key).

### Filter Syntax

Use filter_* params for segmentation (e.g., filter_referrer=is:X).

Important: Filter values must match the exact names from breakdown endpoints. For example, X/Twitter is stored as "X" (not "x.com" or "twitter.com"). When in doubt, query the breakdown first:

curl ... "/analytics/referrers?limit=20"

Then use the exact referrer value in your filter.

### GET

DATAFAST_API_KEY=$(cat ~/.config/datafast/api_key)
curl -sS "https://datafa.st/api/v1/analytics/overview?startAt=2024-01-01&endAt=2024-01-31&timezone=UTC" \\
  -H "Authorization: Bearer $DATAFAST_API_KEY" \\
  -H "Content-Type: application/json"

### POST

DATAFAST_API_KEY=$(cat ~/.config/datafast/api_key)
curl -sS "https://datafa.st/api/v1/goals" \\
  -H "Authorization: Bearer $DATAFAST_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{"datafast_visitor_id":"...","name":"newsletter_signup","metadata":{"email":"..."}}'

### DELETE

DATAFAST_API_KEY=$(cat ~/.config/datafast/api_key)
curl -sS -X DELETE "https://datafa.st/api/v1/goals?name=signup&startAt=2023-01-01T00:00:00Z&endAt=2023-01-31T23:59:59Z" \\
  -H "Authorization: Bearer $DATAFAST_API_KEY"

### Output Expectations

Provide a short summary and a flat table of results.
Include totals and conversion/revenue metrics when present.
For time series, include the top-level totals and the first/last timestamps in the selected range.
If pagination exists, report limit, offset, and total, and ask if the user wants the next page.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: bennyqp
- Version: 0.1.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-02T08:19:26.770Z
- Expires at: 2026-05-09T08:19:26.770Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/datafast-analytics)
- [Send to Agent page](https://openagent3.xyz/skills/datafast-analytics/agent)
- [JSON manifest](https://openagent3.xyz/skills/datafast-analytics/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/datafast-analytics/agent.md)
- [Download page](https://openagent3.xyz/downloads/datafast-analytics)