{"uid":"cap_w35uT65ORnuSWFwVt6PGQ","slug":"customer-segment-observations-equal-width-histogram-date-by-category-35d6edda","name":"Customer Segment Observations — Equal-Width Histogram + Date by Category Pivot","description":"Customer segment observations — Equal-width histogram + Date by category pivot: Equal-width histogram + Date by category pivot 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-173?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_GO9oxKe6P7lsrPvioUEhw","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 — an equal-width histogram and a date-by-category pivot table — for customer segment observation data (account_count, revenue_amount) supplied in the request.","exampleAgentPrompt":"Run an equal-width histogram with 10 bins and a date-by-category pivot on my customer segment data — I have account_count and revenue_amount per company_group and date — analyze account_count across up to 200 rows and give me both reports.","exampleUseCases":[{"title":"Revenue distribution analysis by segment","prompt":"I have quarterly customer segment observations with revenue_amount and account_count per company group and date. Can you generate an equal-width histogram with 8 bins for revenue_amount and also pivot the data by date and company group, using these rows: [{\"row_id\":\"r1\",\"company_group\":\"enterprise\",\"date\":\"2024-01-01\",\"account_count\":50,\"revenue_amount\":12000},{\"row_id\":\"r2\",\"company_group\":\"smb\",\"date\":\"2024-01-01\",\"account_count\":200,\"revenue_amount\":4500}]?"},{"title":"Account count frequency breakdown","prompt":"For my customer segment data with account_count values across different groups and dates, give me an equal-width histogram with 5 bins for account_count and a date-by-category pivot so I can see how accounts are distributed — here are my 20 segment observation rows."},{"title":"Monthly segment trend pivot","prompt":"I want to understand how my customer segments behave month by month. Can you build a date-by-category pivot and an equal-width histogram (10 bins) on the revenue_amount field for these customer segment observation records across group-a, group-b, and group-c over the past three months?"}],"resultDescription":"Two analytical reports: (1) an equal-width histogram dividing the chosen field (account_count or revenue_amount) into the specified number of bins with frequency counts per bin; and (2) a date-by-category pivot table aggregating the data by date and company_group. Both reports are computed locally from the supplied rows, with no external data fetching.","failureModes":["More than 200 rows submitted — request exceeds maxItems limit","Invalid date format (not YYYY-MM-DD) causes validation error","Missing required fields (row_id, company_group, date, account_count, or revenue_amount) causes rejection","bins value outside 1–30 range causes validation error","Empty rows array not accepted (minItems: 1)","Numeric values outside ±1,000,000,000,000 range rejected","Payment failure or insufficient USDC balance prevents processing"],"whenToPreferThis":"Choose this endpoint when you need both an equal-width histogram and a date-by-category pivot for customer segment data (account_count or revenue_amount) in a single low-cost call. Ideal when data is already in hand (up to 200 rows) and you need quick local analytical summaries without live lookups or external integrations. Best when you specifically need the combination of bin-frequency distribution and category-date crosstab in one request.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:44:55.811Z","isFirstParty":false,"canonicalSlug":"customer-segment-observations-equal-width-histogram-date-by-category-35d6edda"}