{"uid":"cap_kyd_vSGB5c8eE3HgYCPgr","slug":"company-headcount-observations-secondary-measure-weighted-mean-date-cc137da9","name":"Company Headcount Observations — Secondary-Measure Weighted Mean + Date by Category Pivot","description":"Company headcount observations — Secondary-measure weighted mean + Date by category pivot: Secondary-measure weighted mean + Date by category pivot 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-185?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_bsAC5JBldJgaB2ZASBmBj","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 secondary-measure weighted mean and a date-by-category pivot table for supplied company headcount and open-roles data (up to 200 rows, 2 reports per call).","exampleAgentPrompt":"I have headcount observations for two company groups across several dates — can you compute the weighted mean of open_roles weighted by headcount, and also give me a pivot table of headcount by date and company group? Here are the rows: row-1, 2024-01-01, group-a, headcount 100, open_roles 5; row-2, 2024-01-01, group-b, headcount 200, open_roles 12; row-3, 2024-01-02, group-a, headcount 110, open_roles 7; row-4, 2024-01-02, group-b, headcount 190, open_roles 9.","exampleUseCases":[{"title":"Hiring rate analysis across divisions","prompt":"I have monthly headcount and open_roles data for our engineering, sales, and support groups over the last quarter — can you compute the open_roles weighted mean using headcount as the weight, and pivot the data by date and company group so I can see trends?"},{"title":"Workforce snapshot summary for investor report","prompt":"Here are 50 rows of headcount observations for our subsidiaries across different dates — run the secondary-measure weighted mean on headcount and also give me the date-by-category pivot so we can include a clean summary in the investor deck."},{"title":"Compare open roles across company groups","prompt":"I want to understand which company groups had the most open roles relative to their size — can you compute a weighted mean of open_roles weighted by headcount, and pivot the results by date and group, using these 80 observation rows I'm supplying?"}],"resultDescription":"Returns two analytical reports: (1) a secondary-measure weighted mean computed over the supplied rows using the selected field (headcount or open_roles), and (2) a pivot table cross-tabulating values by date and company_group category. Both reports are derived entirely from the supplied data with no external lookups.","failureModes":["Missing required fields (row_id, company_group, date, headcount, open_roles) causes validation error","More than 200 rows supplied exceeds limit and is rejected","Invalid date format (not YYYY-MM-DD) causes schema rejection","Null values in both headcount and open_roles may affect weighted mean computation","Invalid field enum value (not 'headcount' or 'open_roles') causes error","Empty rows array rejected (minItems: 1)"],"whenToPreferThis":"Choose this endpoint when you have pre-collected company headcount or open-roles tabular data and need both a weighted mean summary statistic and a date-by-category pivot in a single low-cost call. It is ideal for offline batch analytics on workforce snapshots without needing live data lookup or external enrichment. At $0.01 USDC for two reports on up to 200 rows, it is cost-effective for periodic reporting pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:45:07.283Z","isFirstParty":false,"canonicalSlug":"company-headcount-observations-secondary-measure-weighted-mean-date-cc137da9"}