{"uid":"cap_6l_ThHF_KeaU_h9WHHpNb","slug":"company-headcount-observations-adjacent-row-changes-secondary-measure-4ea8ee7e","name":"Company Headcount Observations — Adjacent Row Changes + Secondary-Measure Weighted Mean","description":"Company headcount observations — Adjacent row changes + Secondary-measure weighted mean: Adjacent row changes + 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-159?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"}}},"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_C0bChEf1Pyob2yaNXx9X9","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 adjacent row-over-row changes and secondary-measure weighted mean for supplied company headcount observation records (headcount or open_roles), returning two analytical reports in one call.","exampleAgentPrompt":"Can you run adjacent row changes and a headcount-weighted mean on these company headcount records — I have 8 rows across two groups, group-a and group-b, with daily headcount and open_roles from 2024-01-01 to 2024-01-08, and I want to analyze the headcount field?","exampleUseCases":[{"title":"Tracking daily headcount shifts across teams","prompt":"I have two weeks of daily headcount snapshots for three company groups — engineering, sales, and ops — and I want to see how headcount changed day over day and get a weighted mean of open roles across those records. Can you run both analyses on my 30 rows?"},{"title":"Detecting hiring surge in open roles data","prompt":"Can you analyze these 50 rows of headcount observations for group-alpha and group-beta from Q1 2024? I want adjacent row changes on open_roles so I can spot any sudden hiring surges, plus the secondary-measure weighted mean."},{"title":"Monthly workforce reporting for leadership","prompt":"We have end-of-month headcount snapshots for five business units going back 12 months — 60 rows total. Run the adjacent row changes and weighted mean on the headcount field so I can put together a trend summary for leadership."}],"resultDescription":"Returns two analytical reports: (1) adjacent row-over-row change values for the chosen field (headcount or open_roles) grouped by company_group and ordered by date, and (2) a secondary-measure weighted mean across the supplied rows — all computed locally from the provided data with no external lookup.","failureModes":["Missing required fields (row_id, company_group, date, headcount, open_roles) cause validation errors","More than 200 rows submitted exceeds the row limit and will be rejected","Invalid date format (not YYYY-MM-DD) will fail schema validation","Null values in the selected primary field may produce incomplete change calculations","Payment of 0.01 USDC not provided causes x402 payment-required rejection"],"whenToPreferThis":"Choose this endpoint when you already have company headcount and open_roles data in hand and need two quick statistical analyses — adjacent row changes and a weighted mean — without any external data fetch, prediction, or enrichment. It is ideal for batch offline analysis of up to 200 rows in a single paid call, making it cost-efficient for periodic HR reporting workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:44:17.590Z","isFirstParty":false,"canonicalSlug":"company-headcount-observations-adjacent-row-changes-secondary-measure-4ea8ee7e"}