{"uid":"cap_TA5YsEwJ2X9idPrf_BQv0","slug":"company-headcount-observations-trailing-mean-series-adjacent-row-28db4c52","name":"Company Headcount Observations — Trailing Mean Series + Adjacent Row Changes","description":"Company headcount observations — Trailing mean series + Adjacent row changes: Trailing mean series + Adjacent row changes for supplied company headcount observations records (headcount, open_roles). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-company-12-146?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","company_group","date","headcount","open_roles"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"headcount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"open_roles":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"company_group":{"type":"string","default":"","maxLength":80}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","headcount":10,"open_roles":1,"company_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","headcount":20,"open_roles":2,"company_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","headcount":15,"open_roles":3,"company_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","headcount":30,"open_roles":4,"company_group":"group-b"}],"maxItems":200,"minItems":1},"field":{"enum":["headcount","open_roles"],"type":"string","default":"headcount"},"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_d2_FSuiAburkj-HLwCObJ","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 moving average series and adjacent row-to-row delta changes for supplied company headcount or open-roles time-series data, returning two analytical reports in one call.","exampleAgentPrompt":"I have headcount and open roles data for two company groups across the last 6 months — can you run a trailing mean series and adjacent row changes analysis on the headcount field using a window of 3, for up to 200 rows?","exampleUseCases":[{"title":"Workforce trend smoothing for HR reporting","prompt":"I have monthly headcount records for our three business units over the past year. Can you compute a trailing mean with a window of 4 and also show me the row-to-row changes in headcount so I can spot where hiring surged or dropped?"},{"title":"Open roles pipeline monitoring","prompt":"We track open_roles counts daily across company groups — can you run a trailing mean series with window size 5 and adjacent row changes on the open_roles field so we can see the smoothed hiring demand trend and daily shifts?"},{"title":"Headcount delta analysis across acquisitions","prompt":"I've got headcount observations before and after our two acquisitions, organized by company group and date. Please calculate the trailing mean and adjacent row changes on headcount with a window of 3 so I can see how staffing levels shifted around each event."}],"resultDescription":"Returns two analytical reports: (1) a trailing mean series showing the rolling average of the chosen field (headcount or open_roles) over the specified window size for each company group, and (2) an adjacent row changes series showing the value delta between consecutive observations — both computed locally on the supplied data, up to 200 rows.","failureModes":["Fewer than 2 rows supplied — minimum 1 row required but trailing mean needs at least window-size rows to produce meaningful output","Window size exceeds number of rows — trailing mean series will have insufficient data for early rows","Invalid date format — dates must match YYYY-MM-DD pattern","Row count exceeds 200 — request will be rejected","Missing required fields (row_id, company_group, date, headcount, open_roles) — validation error","Payment of 0.01 USDC not attached or declined — 402 response"],"whenToPreferThis":"Choose this endpoint when you already have company headcount or open-roles observations as structured rows and need both a smoothed trailing mean trend and period-over-period delta changes computed together in a single call, without requiring any external data lookup or prediction. Ideal for HR analytics pipelines, workforce planning dashboards, or acquisition impact analysis where local computation on supplied data is sufficient and cost efficiency matters (two reports for $0.01 USDC).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:44:52.525Z","isFirstParty":false,"canonicalSlug":"company-headcount-observations-trailing-mean-series-adjacent-row-28db4c52"}