{"uid":"cap_2o3YFlO9vh_vZfCaAopXh","slug":"customer-segment-observations-date-category-pivot-keyed-dataset-551768bd","name":"Customer Segment Observations — Date×Category Pivot + Keyed Dataset Comparison","description":"Customer segment observations — Date by category pivot + Keyed dataset comparison: Date by category pivot + Keyed dataset comparison 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-188?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"},"other":{"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":21,"company_group":"group-b","revenue_amount":2},{"date":"2026-10-03","row_id":"row-3","account_count":17,"company_group":"group-a","revenue_amount":3},{"date":"2026-10-04","row_id":"row-4","account_count":33,"company_group":"group-b","revenue_amount":4}],"maxItems":200,"minItems":0}}},"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_c_Fbv2NeTOsktIO0ITKfW","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":"Runs two local analytical reports on customer segment data: a date-by-category pivot table and a keyed dataset comparison, for up to 200 rows of account_count or revenue_amount observations.","exampleAgentPrompt":"I have two sets of customer segment records — each with company group, date, account count, and revenue amount — can you pivot the first dataset by date and company group on account_count AND compare it against the second dataset by key, all in one call?","exampleUseCases":[{"title":"Monthly revenue pivot by company group","prompt":"I have 150 rows of customer segment data with dates, company groups, and revenue amounts. Can you pivot them by date and company group on revenue_amount, and also run a keyed comparison against last month's data to see what changed?"},{"title":"Account count trend comparison across periods","prompt":"I've got two snapshots of account_count data across company groups and dates — one from Q1 and one from Q2. Can you pivot the Q2 data by date and category, and compare both datasets by key to highlight the differences?"},{"title":"Segment anomaly detection between datasets","prompt":"We have two versions of our customer segment observations — baseline and current — each up to 100 rows with company_group, date, account_count, and revenue_amount. Run the date-by-category pivot on the current data for account_count, and do a keyed comparison between the two so I can spot any anomalies."}],"resultDescription":"Returns two analytical reports: (1) a date-by-category pivot table showing the selected metric (account_count or revenue_amount) broken down by date and company_group across the primary dataset, and (2) a keyed dataset comparison report highlighting differences between the primary and secondary datasets matched by row_id. Both reports are computed locally with no external lookups.","failureModes":["Input array exceeds 200 rows — request will be rejected","Missing required fields (row_id, company_group, date, account_count, revenue_amount) on any row causes validation error","Malformed date string not matching YYYY-MM-DD pattern causes schema rejection","Numeric values outside ±1,000,000,000,000 range are rejected","Empty rows array (minItems:1 not satisfied) causes error","Payment not included or insufficient (requires 0.01 USDC via x402) results in 402 response"],"whenToPreferThis":"Choose this endpoint when you need both a date×category pivot table AND a keyed dataset comparison in a single paid call for customer segment data (account_count or revenue_amount). It is cost-effective at $0.01 for two reports on up to 200 rows. Prefer it over single-report endpoints when you need both analytical views simultaneously without making two separate API calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:48:53.738Z","isFirstParty":false,"canonicalSlug":"customer-segment-observations-date-category-pivot-keyed-dataset-551768bd"}