{"uid":"cap_8acyai_Qjy87nePUlnW2r","slug":"web-traffic-trailing-mean-series-81eb9ff9","name":"Web Traffic Trailing Mean Series","description":"Web traffic - Trailing mean series: Trailing mean series for Web traffic. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded trailing mean series deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-analytics-web-traffic-rolling?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","channel","date","sessions","conversions"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"channel":{"type":"string","default":"","maxLength":80},"sessions":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"conversions":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","channel":"group-a","sessions":10,"conversions":1},{"date":"2026-10-02","row_id":"row-2","channel":"group-b","sessions":20,"conversions":2},{"date":"2026-10-03","row_id":"row-3","channel":"group-a","sessions":15,"conversions":3},{"date":"2026-10-04","row_id":"row-4","channel":"group-b","sessions":30,"conversions":4}],"maxItems":200,"minItems":1},"field":{"enum":["sessions","conversions"],"type":"string","default":"sessions"},"window":{"type":"integer","default":2,"maximum":200,"minimum":2}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nPwwqWH7qZw2m_XNLoUu5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a trailing (rolling) mean time series for web traffic sessions or conversions across up to 200 typed records, grouped by channel and date, with a configurable window size.","exampleAgentPrompt":"Calculate the trailing mean series for my web traffic sessions data — I have 4 rows across two channels (group-a and group-b) from 2026-10-01 to 2026-10-04, and I want a rolling window of 3.","exampleUseCases":[{"title":"Smoothing daily session spikes by channel","prompt":"I have two weeks of daily session counts for my paid and organic channels — can you compute a 7-day trailing mean series for sessions so I can see the smoothed trend without the day-to-day noise?"},{"title":"Rolling conversion rate trend for campaign review","prompt":"I've got 30 rows of daily conversion data across three marketing channels. Can you run a trailing mean series with a window of 5 on the conversions field so I can present a smoothed trend line at our campaign review?"},{"title":"Detecting traffic anomalies against rolling baseline","prompt":"I want to flag days where my actual sessions are far from the rolling average — can you first compute the trailing mean series with a window of 14 for my 90 rows of session data, so I can compare it against the raw numbers?"}],"resultDescription":"Returns a trailing (rolling) mean series: for each input row, the endpoint computes the average of the target field (sessions or conversions) over the preceding N rows (window), grouped appropriately by sequence. Output includes per-row smoothed values, preserving row_id and channel context, with data-quality indicators for rows where the window is not yet fully populated.","failureModes":["Fewer than 1 row supplied returns a validation error","Window size larger than number of rows produces partial/null results for early rows","Invalid date format (not YYYY-MM-DD) causes schema rejection","Sessions or conversions values outside ±1,000,000,000,000 rejected","More than 200 rows supplied exceeds maxItems and is rejected","Missing required fields (row_id, channel, date) cause validation failure","Non-numeric sessions/conversions values (unless null) cause type errors"],"whenToPreferThis":"Choose this endpoint when you need a local, privacy-safe, no-external-dependency computation of a rolling mean over web traffic time series data (sessions or conversions). It is ideal for smoothing noisy daily web analytics data across multiple channels without sending data to a third-party analytics platform. Prefer it over full analytics suites when you already have structured tabular traffic data and just need the trailing mean calculation applied at low cost ($0.01 USDC per call) for up to 200 records.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:29.227Z","isFirstParty":false,"canonicalSlug":"web-traffic-trailing-mean-series-81eb9ff9"}