{"uid":"cap_xHfXvxNkhZXzcXCdObcJg","slug":"cdn-withzero-xyz-cdn-site-daily-traffic-stats-c407238b","name":"CDN Site Daily Traffic Stats","description":"Daily requests and page views for a public site you host, including visits served from the CDN cache. ?days=1–90 (default 7).","url":"https://cdn.withzero.xyz/api/v1/sites/{slug}/stats?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["slug"],"properties":{"slug":{"type":"string"}}},"responseSchema":{"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},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"proven_free","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"1.00","reviews":0,"stars":null,"state":"rated"},"availabilityStatus":"healthy","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"metered","summary":"metered — billed by usage","primary":{"kind":"metered","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"metered","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_9_USVYvfbbb4mP8791gQx","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":"cdn.sites.stats:1"}],"brandName":"cdn.withzero.xyz","brandSlug":"cdn-withzero-xyz-mpp","brandBaseUrl":"https://cdn.withzero.xyz","brandDocsUrl":null,"whatItDoes":"Returns daily request and page view counts for a hosted static site over a configurable window of 1–90 days, including CDN-cached traffic.","exampleAgentPrompt":"Can you pull the daily traffic stats for my withzero-hosted site 'my-portfolio' for the last 30 days — I want to see both total requests and page views per day?","exampleUseCases":[{"title":"Weekly traffic review for a launched site","prompt":"Show me day-by-day requests and page views for my site 'launch-page' on withzero for the past 7 days so I can see how the launch went."},{"title":"Monthly growth tracking for a blog","prompt":"Can you get me 90 days of daily traffic data for my withzero site 'devblog' — I want to track whether page views have been growing month over month."},{"title":"Diagnosing a traffic drop","prompt":"Something seems off — can you pull the last 14 days of daily request and page view stats for my site 'store-front' on withzero so I can see if there was a sudden drop?"}],"resultDescription":"Returns a JSON object with the site slug, an array of daily records (UTC date, request count, page view count — oldest first, days with zero traffic omitted), and an 'estimated' boolean flag indicating whether counts were scaled up from a sample due to sampling.","failureModes":["Unknown slug returns 404 if the site does not exist or is not owned by the caller","days parameter out of range (< 1 or > 90) may return a 400 validation error","No data returned for days with zero traffic — gaps in the array are expected, not errors","Counts may trail real time by a few minutes","estimated=true means counts are approximations scaled from sampled data"],"whenToPreferThis":"Use this endpoint when you need time-series traffic data (requests and page views) for a static site hosted on cdn.withzero.xyz. It is the only endpoint in this ecosystem that provides per-day CDN traffic analytics including cache hits. Prefer it over general web analytics tools when the site is already hosted on withzero and you want a lightweight, no-setup traffic report scoped to 1–90 days.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":11,"lastUsedAt":"2026-10-05T16:14:19.058Z","lastSuccessfullyRanAt":"2026-10-05T16:14:19.058Z","lastHealthCheckAt":"2026-10-13T00:30:03.448Z","isFirstParty":true,"canonicalSlug":"cdn-withzero-xyz-cdn-site-daily-traffic-stats-c407238b"}