{"uid":"cap_xk9o4BNA-TARm5KFABqmX","slug":"customer-segment-observations-category-frequencies-secondary-measure-6912aed7","name":"Customer Segment Observations — Category Frequencies + Secondary-Measure Weighted Mean","description":"Customer segment observations — Category frequencies + Secondary-measure weighted mean: Category frequencies + Secondary-measure weighted mean for supplied customer segment observations records (account_count, revenue_amount). 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-16-109?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","company_group","date","account_count","revenue_amount"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"account_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"company_group":{"type":"string","default":"","maxLength":80},"revenue_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","account_count":10,"company_group":"group-a","revenue_amount":1},{"date":"2026-10-02","row_id":"row-2","account_count":20,"company_group":"group-b","revenue_amount":2},{"date":"2026-10-03","row_id":"row-3","account_count":15,"company_group":"group-a","revenue_amount":3},{"date":"2026-10-04","row_id":"row-4","account_count":30,"company_group":"group-b","revenue_amount":4}],"maxItems":200,"minItems":1},"field":{"enum":["account_count","revenue_amount"],"type":"string","default":"account_count"}}},"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_jwgSxNDwLwJUN2rlLEonP","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 category frequencies and a secondary-measure weighted mean (account_count or revenue_amount) for up to 200 customer segment observation rows, returning two independent analytical reports.","exampleAgentPrompt":"I have 4 customer segment observation rows — group-a on 2026-10-01 with account_count 10 and revenue_amount 1, group-b on 2026-10-02 with account_count 20 and revenue_amount 2, group-a on 2026-10-03 with account_count 15 and revenue_amount 3, and group-b on 2026-10-04 with account_count 30 and revenue_amount 4 — can you give me the category frequencies by company_group and the revenue_amount weighted mean across those rows?","exampleUseCases":[{"title":"Revenue-weighted mean by company group","prompt":"I have monthly customer segment data for two groups across 12 rows — can you compute the category frequencies for each company group and the weighted mean of revenue_amount across all records?"},{"title":"Account count distribution audit","prompt":"Here are 50 customer segment observation rows with account_count and revenue_amount fields — run category frequency counts by company_group and give me the account_count weighted mean so I can see how each segment is performing."},{"title":"Quarterly segment summary report","prompt":"I need a quick summary of my 150-row customer segment dataset: show me how often each company_group appears (frequency) and the weighted mean of revenue_amount, weighted by account_count."}],"resultDescription":"Two independent analytical reports: (1) frequency counts of each category (company_group) across all supplied rows, and (2) a weighted mean of the selected secondary measure (account_count or revenue_amount) computed locally without any external lookup or prediction.","failureModes":["Rows array empty or missing — validation error returned","More than 200 rows submitted — request rejected with max-items error","Invalid date format (not YYYY-MM-DD) — pattern validation failure","Missing required fields (row_id, company_group, date, account_count, revenue_amount) — schema error","Invalid field enum value (not account_count or revenue_amount) — enum validation error","Numeric values outside allowed range (±1,000,000,000,000) — validation failure","Payment not provided or insufficient USDC — x402 payment required response"],"whenToPreferThis":"Choose this endpoint when you have tabular customer segment data (up to 200 rows) and need both a category frequency distribution and a secondary-measure weighted mean in a single $0.01 call, without requiring live data lookup, external prediction, or professional assessment. It is ideal for lightweight, offline analytical summaries of business segment records where both account volume and revenue metrics are present.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:48:37.086Z","isFirstParty":false,"canonicalSlug":"customer-segment-observations-category-frequencies-secondary-measure-6912aed7"}