# CDN Site Daily Traffic Stats

> CDN Site Daily Traffic Stats is a paid API for AI agents from agents.withzero.xyz, paid per call via MPP, price unknown, status unknown (last checked 2026-11-17).

Returns daily request and page view counts for a hosted public site, including CDN-cached traffic, for up to 90 days.

## Facts

- Endpoint: GET https://agents.withzero.xyz/api/v1/cdn/sites/{slug}/stats?utm_source=zero.xyz
- Price: price unknown
- Payment: MPP
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Provider: agents.withzero.xyz
- Website: https://agents.withzero.xyz
- Canonical page: https://www.zero.xyz/c/agents-withzero-xyz-cdn-site-daily-traffic-stats-6baefc45
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1V5is8FVlBVaEK_vIb6dr

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agents-withzero-xyz-cdn-site-daily-traffic-stats-6baefc45
```

Example prompt: Show me the daily requests and page views for my hosted site 'my-portfolio' over the last 30 days, including CDN-cached hits.

## When to prefer this

Use this endpoint when you need historical daily traffic data (requests and page views) for a specific site hosted on WithZero/agents.withzero.xyz, especially when you want CDN cache hits included in the count. Prefer this over generic analytics tools when the site is deployed via this platform and you want per-day granularity up to 90 days without setting up external analytics.

## Known failure modes

- Invalid or unknown site slug returns an error or empty response
- Requesting more than 90 days is out of range and may return an error
- Site has no traffic data yet — returns an empty days array
- Authentication/payment issues result in 401 or 402 responses
- Counts may be estimated (sampled) for very high-traffic sites, flagged by estimated:true

## How this service works

Daily requests and page views for a public site you host, including visits served from the CDN cache. ?days=1–90 (default 7).

## Output

A JSON object containing the site slug, a boolean 'estimated' flag indicating whether counts are sampled/scaled, and an array of daily records (oldest first) each with a UTC date string, total request count, and page view count. Days with zero traffic are omitted. Counts may trail real time by a few minutes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "slug"
 ],
 "properties": {
  "slug": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "slug",
  "days",
  "estimated"
 ],
 "properties": {
  "days": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "day",
     "requests",
     "pageViews"
    ],
    "properties": {
     "day": {
      "type": "string",
      "description": "UTC date, YYYY-MM-DD. Days with no traffic are omitted."
     },
     "requests": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991,
      "description": "Successful requests for any file of the site, including cached ones."
     },
     "pageViews": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991,
      "description": "Of those, requests for pages (directories, .html, extensionless paths)."
     }
    },
    "additionalProperties": false
   },
   "description": "Oldest first. Counts trail real time by a few minutes."
  },
  "slug": {
   "type": "string"
  },
  "estimated": {
   "type": "boolean",
   "description": "True when request logging is sampled, so counts are scaled up from a sample."
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agents-withzero-xyz-cdn-site-daily-traffic-stats-6baefc45/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.withzero.xyz](https://www.zero.xyz/host/agents.withzero.xyz/llms.txt)
