{"uid":"cap_ScnzweScE7c1VzM5JF_wZ","slug":"customer-segment-observations-category-frequencies-equal-width-acb8d8d4","name":"Customer Segment Observations — Category Frequencies + Equal-Width Histogram","description":"Customer segment observations — Category frequencies + Equal-width histogram: Category frequencies + Equal-width histogram 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-106?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","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_59mhZBHq2BKE95HAJUtNB","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":"Generates two local analytical reports — category frequency counts and an equal-width histogram — for customer segment observation data (account_count, revenue_amount) across up to 200 rows.","exampleAgentPrompt":"Analyze my customer segment data — I have 150 rows with account_count and revenue_amount fields across groups like 'enterprise' and 'SMB'. Give me category frequencies for company_group and an equal-width histogram of revenue_amount using 10 bins.","exampleUseCases":[{"title":"Revenue distribution across customer segments","prompt":"I have 120 rows of customer segment observations with revenue_amount and company_group fields. Can you compute a 10-bin equal-width histogram of revenue_amount so I can see how revenue is distributed across segments?"},{"title":"Account count frequency breakdown by group","prompt":"I've got my quarterly customer segment data — about 80 rows each with a company_group and account_count. Can you give me category frequencies for company_group and a histogram of account_count using 5 bins?"},{"title":"Segment data quality sanity check via distribution","prompt":"Before I present this to leadership, can you run a frequency and histogram analysis on my 200-row customer segment dataset using account_count as the target field and 8 bins? I want to see if the distribution looks reasonable."}],"resultDescription":"Returns two analytical reports: (1) category frequency counts showing how often each company_group appears in the dataset, and (2) an equal-width histogram for the chosen numeric field (account_count or revenue_amount) with the specified number of bins, including bin boundaries and record counts per bin. All computation is performed locally with no external lookups.","failureModes":["Rows array is empty or missing — validation error returned","More than 200 rows supplied — request rejected with max-items error","Invalid date format (not YYYY-MM-DD) in any row — schema validation failure","bins value outside 1–30 range — rejected with min/max constraint error","field value not one of 'account_count' or 'revenue_amount' — enum validation error","Null values in numeric fields may affect histogram boundaries or bin counts","Payment of 0.01 USDC not included or rejected — x402 payment required error"],"whenToPreferThis":"Choose this endpoint when you need two complementary statistical views — frequency counts by category and a numeric histogram — on a single batch of customer segment records without any external data enrichment or prediction. Ideal for quick distributional sanity checks, segment reporting, or exploratory data analysis on datasets up to 200 rows. Prefer this over more complex endpoints when you only need local computation and have both categorical (company_group) and numeric (account_count or revenue_amount) fields to analyze simultaneously.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:44:59.428Z","isFirstParty":false,"canonicalSlug":"customer-segment-observations-category-frequencies-equal-width-acb8d8d4"}