{"uid":"cap_Y2sk5kErZQpspYBmgCaan","slug":"company-headcount-observations-trailing-mean-series-secondary-measure-d337f847","name":"Company Headcount Observations — Trailing Mean Series + Secondary-Measure Weighted Mean","description":"Company headcount observations — Trailing mean series + Secondary-measure weighted mean: Trailing mean series + Secondary-measure weighted mean 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-151?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__Nd4EKi-pvpeTUrE7gL_5","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 mean time series and a secondary-measure weighted mean for company headcount and open-roles data, returning two analytical reports for up to 200 supplied rows.","exampleAgentPrompt":"Compute a trailing mean series with a window of 3 and a secondary-measure weighted mean for our company headcount data — I have 4 rows: group-a had 10 headcount and 1 open role on 2026-10-01, group-b had 20 headcount and 2 open roles on 2026-10-02, group-a had 15 headcount and 3 open roles on 2026-10-03, and group-b had 30 headcount and 4 open roles on 2026-10-04.","exampleUseCases":[{"title":"Rolling headcount trend across departments","prompt":"I have monthly headcount observations for three company groups over the past year — can you run a trailing mean series with a window of 4 and a secondary-measure weighted mean using open_roles as the weight, so I can see smoothed workforce trends per group?"},{"title":"Detecting hiring momentum from open roles","prompt":"Run both a trailing mean series (window of 5) and a secondary-measure weighted mean on my headcount data — I want to understand whether open roles are correlated with headcount growth across our subsidiaries."},{"title":"Quarterly staffing summary for board report","prompt":"I've got 120 rows of weekly headcount and open-roles data across our business units — can you compute a trailing mean with window 3 and a weighted mean of headcount weighted by open_roles, so I can build a clean summary for the board?"}],"resultDescription":"Returns two analytical reports: (1) a trailing mean time series over the specified rolling window for the chosen primary field (headcount or open_roles), grouped by company group and date; and (2) a secondary-measure weighted mean of the primary field using the other measure as weights. Both reports are derived entirely from the supplied rows — no external data or predictions are included.","failureModes":["Missing required fields (row_id, company_group, date, headcount, open_roles) cause validation errors","Date strings not matching YYYY-MM-DD pattern are rejected","More than 200 rows submitted — request exceeds the maximum and is rejected","Window value less than 2 or greater than 200 is invalid","Insufficient rows within a group to fill the trailing window — partial or empty series returned for that group","Null values in headcount or open_roles may produce incomplete weighted mean calculations","Payment of 0.01 USDC not received — request rejected with 402"],"whenToPreferThis":"Choose this endpoint when you already have your company headcount and open-roles data on hand and need two specific statistical summaries — a rolling trailing mean time series and a secondary-measure weighted mean — computed locally against your supplied rows. It is ideal for batch analytical jobs on up to 200 records where you want consistent, reproducible computation without any external lookups or predictions. Prefer it over general-purpose analytics tools when cost predictability ($0.01 per call) and bundled dual-report output matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:46:02.881Z","isFirstParty":false,"canonicalSlug":"company-headcount-observations-trailing-mean-series-secondary-measure-d337f847"}