{"uid":"cap_1V5is8FVlBVaEK_vIb6dr","slug":"agents-withzero-xyz-cdn-site-daily-traffic-stats-6baefc45","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://agents.withzero.xyz/api/v1/cdn/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.000000","displayCostAsset":"USD","priceDynamic":false,"priceHint":null,"priceStatus":"unknown_unparsed","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"unknown","summary":"price unknown","primary":{"kind":"unknown","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"unknown","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_DdrSLCz2xOoCZKKpfrOvb","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.000000","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"agents.withzero.xyz","brandSlug":"agents-withzero-xyz-x402","brandBaseUrl":"https://agents.withzero.xyz","brandDocsUrl":null,"whatItDoes":"Returns daily request and page view counts for a hosted public site, including CDN-cached traffic, for up to 90 days.","exampleAgentPrompt":"Show me the daily requests and page views for my hosted site 'my-portfolio' over the last 30 days, including CDN-cached hits.","exampleUseCases":[{"title":"Weekly traffic check after launch","prompt":"How many requests and page views did my site 'launch-promo' get each day this past week, including cached CDN visits?"},{"title":"Monthly analytics review for client site","prompt":"Pull 30 days of daily traffic stats for my hosted site 'client-acme' — I need to see both total requests and page views broken down by day."},{"title":"Spot-checking traffic spike after a viral post","prompt":"Can you get me the last 14 days of daily request counts for 'my-blog' so I can see if there was a spike this week?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:30:03.782Z","isFirstParty":true,"canonicalSlug":"agents-withzero-xyz-cdn-site-daily-traffic-stats-6baefc45"}