{"uid":"cap_aKUw6vFEqgf6PaMsF5xmu","slug":"customer-segment-observations-duplicate-key-report-grouped-numeric-1a0c3fa0","name":"Customer Segment Observations — Duplicate Key Report + Grouped Numeric Summary","description":"Customer segment observations — Duplicate key report + Grouped numeric summary: Duplicate key report + Grouped numeric summary 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-056?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_JdWY1q6NAlVHcBzZvzY7n","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":"Analyzes up to 200 customer segment observation rows to produce two reports: a duplicate key detection report and a grouped numeric summary for account_count or revenue_amount.","exampleAgentPrompt":"Check my customer segment observations for duplicate row IDs and give me a grouped summary of revenue_amount by company group — I have 4 rows: row-1 for group-a on 2026-10-01 with 10 accounts and $1 revenue, row-2 for group-b on 2026-10-02 with 20 accounts and $2 revenue, row-3 for group-a on 2026-10-03 with 15 accounts and $3 revenue, and row-4 for group-b on 2026-10-04 with 30 accounts and $4 revenue.","exampleUseCases":[{"title":"Revenue rollup by company group","prompt":"I have monthly segment data across three company groups — group-a, group-b, and group-c — with revenue_amount and account_count per row. Can you group the revenue_amount by company_group and also flag any duplicate row IDs in this dataset of 12 rows?"},{"title":"Duplicate key audit before data merge","prompt":"Before I merge these 80 customer segment observation records into our database, can you run a duplicate key check on the row_id field and also give me a grouped numeric summary of account_count by company_group?"},{"title":"QA check on segment export","prompt":"I exported 150 rows of customer segment observations from our CRM — can you check for any duplicate row IDs and summarize revenue_amount grouped by company_group so I can validate the export looks right?"}],"resultDescription":"Two independent analytical reports: (1) a duplicate key report identifying which row_id values appear more than once across the supplied rows, and (2) a grouped numeric summary aggregating the selected numeric field (account_count or revenue_amount) by company_group, including statistics like count, sum, mean, min, and max per group.","failureModes":["Exceeding 200 rows returns a validation error","Missing required fields (row_id, company_group, date, account_count, revenue_amount) causes rejection","Invalid date format (not YYYY-MM-DD) fails schema validation","Numeric values outside ±1,000,000,000,000 are rejected","Empty rows array (minItems: 1 not met) causes error","Invalid field enum value (not account_count or revenue_amount) returns error"],"whenToPreferThis":"Choose this endpoint when you need both duplicate key detection and grouped numeric aggregation on customer segment data in a single call, especially when working with up to 200 rows of company-group-level observations. It is ideal for data quality checks before database merges or ETL pipelines and for quick segment-level rollups without standing up your own analytics infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:44:41.137Z","isFirstParty":false,"canonicalSlug":"customer-segment-observations-duplicate-key-report-grouped-numeric-1a0c3fa0"}