{"uid":"cap_ejy9wmddmqqhh-CZihhHQ","slug":"company-headcount-observations-equal-width-histogram-secondary-b33472b6","name":"Company Headcount Observations — Equal-Width Histogram + Secondary-Measure Weighted Mean","description":"Company headcount observations — Equal-width histogram + Secondary-measure weighted mean: Equal-width histogram + 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-172?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"bins":{"type":"integer","default":5,"maximum":30,"minimum":1},"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_ZLTdzeLHm9SOQmGYvXFMf","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 an equal-width histogram over headcount (or open_roles) values and a weighted mean of a secondary measure for up to 200 company headcount observation records.","exampleAgentPrompt":"I have 150 company headcount observation records with headcount and open_roles fields — can you run an equal-width histogram on headcount using 10 bins and also compute the weighted mean of open_roles weighted by headcount?","exampleUseCases":[{"title":"Workforce distribution analysis across company groups","prompt":"I have headcount data for about 80 companies across three groups — can you generate a histogram with 8 bins showing how headcount is distributed, and compute the weighted mean of open_roles across those records?"},{"title":"Recruiting pressure signal from headcount data","prompt":"Here are 120 rows of company observations with headcount and open_roles — use 5 bins for the headcount histogram and give me the weighted mean of open_roles so I can see where hiring pressure is concentrated."},{"title":"Quarterly staffing snapshot statistical summary","prompt":"I've collected 200 company headcount snapshots for Q3 — can you bucket the headcount values into 15 equal-width bins and calculate the weighted average of open_roles weighted by headcount for me?"}],"resultDescription":"Returns two analytical reports: (1) an equal-width histogram over the selected primary field (headcount or open_roles) divided into the specified number of bins, including bin boundaries and record counts per bin; (2) a weighted mean of the secondary measure (open_roles or headcount) using the primary field values as weights. Both reports are computed locally on the supplied rows with no external data lookups.","failureModes":["Exceeding 200 rows returns an error or truncation","Rows missing required fields (row_id, date, headcount, open_roles, company_group) cause validation failure","Bin count outside 1–30 range is rejected","Null values in the primary field may affect histogram bin placement","Dates not matching YYYY-MM-DD pattern cause schema validation failure","Empty rows array is rejected"],"whenToPreferThis":"Use this endpoint when you have up to 200 company headcount observation records and need both a frequency distribution (histogram) and a weighted mean statistic in a single low-cost call ($0.01 USDC for both reports). Prefer it over general analytics tools when you want a turnkey local computation with no external data dependencies. If you only need one of the two reports or need more than 200 rows, consider a different endpoint.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:45:35.122Z","isFirstParty":false,"canonicalSlug":"company-headcount-observations-equal-width-histogram-secondary-b33472b6"}