{"uid":"cap_TL744JqleoB_iF9CmYbSZ","slug":"donation-campaign-records-trailing-mean-series-95a1150e","name":"Donation Campaign Records – Trailing Mean Series","description":"Donation campaign records - Trailing mean series: Trailing mean series for Donation campaign records. Up to 200 supplied typed records. Local descriptive analytics; no enrichment or forecast. One of 25 new profiles across 20 shared operations in this industry. 0.01 USDC includes one bounded trailing mean series report.","url":"https://market.datapackvibe.com/x402/assistant-ar-analytics-donation-records-rolling?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","campaign","date","donations","amount"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"campaign":{"type":"string","default":"","maxLength":80},"donations":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","amount":1,"row_id":"row-1","campaign":"group-a","donations":10},{"date":"2026-10-02","amount":2,"row_id":"row-2","campaign":"group-b","donations":20},{"date":"2026-10-03","amount":3,"row_id":"row-3","campaign":"group-a","donations":15},{"date":"2026-10-04","amount":4,"row_id":"row-4","campaign":"group-b","donations":30}],"maxItems":200,"minItems":1},"field":{"enum":["donations","amount"],"type":"string","default":"donations"},"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_sXc3Qgfwd2jL4cJMdGb89","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 series over donation campaign records for a specified numeric field and window size, returning local descriptive analytics without enrichment or forecasting.","exampleAgentPrompt":"Calculate a trailing mean series for these donation campaign records — use the 'amount' field with a window of 7, here are the rows: [{row_id:'r1', campaign:'spring-drive', date:'2024-03-01', donations:50, amount:500}, ...up to 200 records].","exampleUseCases":[{"title":"Smoothing weekly fundraising totals","prompt":"I have daily donation records for our 'Year-End Appeal' campaign across the last 90 days. Can you calculate a trailing mean over the 'amount' field with a window of 7 to smooth out the day-to-day noise?"},{"title":"Comparing rolling averages across campaigns","prompt":"I've got records for two campaigns — 'spring-gala' and 'annual-fund' — with daily donation counts. Run a trailing mean series on the 'donations' field using a window of 3 so I can see each campaign's smoothed trend."},{"title":"Identifying donation momentum dips","prompt":"Here are 150 donation records from our 'match-week' drive. Compute a trailing mean on the 'amount' field with a window of 5 so I can spot where momentum dropped and fundraising slowed down."}],"resultDescription":"Returns a trailing mean series report: for each input row, the endpoint computes the rolling average of the specified field ('donations' or 'amount') over the given window size, producing a smoothed numeric series alongside the original row identifiers and metadata. Up to 200 rows are supported per call.","failureModes":["Fewer than 'window' rows provided — trailing mean cannot be computed for early rows where history is insufficient","Invalid date format (not YYYY-MM-DD) causes schema validation failure","Amount or donations value outside allowed range (-1e12 to 1e12) rejected","Exceeding 200 rows returns an error","Missing required fields (row_id, campaign, date, donations, amount) cause item-level rejection","Window value less than 2 or greater than 200 is rejected"],"whenToPreferThis":"Choose this endpoint when you have up to 200 donation campaign records and need a simple rolling average (trailing mean) computed locally without any external data enrichment, forecasting, or ML inference. It is ideal for smoothing time-series donation data for descriptive reporting, trend visualization prep, or anomaly spotting. Prefer it over general-purpose analytics tools when you want a lightweight, pay-per-call ($0.01 USDC) computation that returns immediately with no setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:04:38.497Z","isFirstParty":false,"canonicalSlug":"donation-campaign-records-trailing-mean-series-95a1150e"}