{"uid":"cap_gRYKoQGUJh0zkzmk4DVTa","slug":"trade-observations-deduplication-and-keyed-dataset-comparison-57db7e6b","name":"Trade Observations Deduplication and Keyed Dataset Comparison","description":"Trade observations — Exact row deduplication + Keyed dataset comparison: Exact row deduplication + Keyed dataset comparison for supplied trade observations records (export_amount, import_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-economics-06-053?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","region","date","export_amount","import_amount"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"region":{"type":"string","default":"","maxLength":80},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"export_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"import_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","region":"group-a","row_id":"row-1","export_amount":10,"import_amount":1},{"date":"2026-10-02","region":"group-b","row_id":"row-2","export_amount":20,"import_amount":2},{"date":"2026-10-03","region":"group-a","row_id":"row-3","export_amount":15,"import_amount":3},{"date":"2026-10-04","region":"group-b","row_id":"row-4","export_amount":30,"import_amount":4}],"maxItems":200,"minItems":1},"other":{"type":"array","items":{"type":"object","required":["row_id","region","date","export_amount","import_amount"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"region":{"type":"string","default":"","maxLength":80},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"export_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"import_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","region":"group-a","row_id":"row-1","export_amount":10,"import_amount":1},{"date":"2026-10-02","region":"group-b","row_id":"row-2","export_amount":21,"import_amount":2},{"date":"2026-10-03","region":"group-a","row_id":"row-3","export_amount":17,"import_amount":3},{"date":"2026-10-04","region":"group-b","row_id":"row-4","export_amount":33,"import_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_ZwZnDj1a-FPa59MmYUdfU","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":"Performs exact row deduplication and keyed dataset comparison on two sets of trade observation records containing export and import amounts.","exampleAgentPrompt":"I have two sets of trade observation records — my main dataset and a revised version — each with region, date, export_amount, and import_amount fields. Can you deduplicate the main set for exact duplicate rows and then compare both datasets row by row to find which records changed, were added, or removed?","exampleUseCases":[{"title":"Trade data revision audit","prompt":"I exported trade data last week and then received a corrected version from our data team. Both have up to 150 rows with row_id, region, date, export_amount, and import_amount. Can you deduplicate the original and compare it against the revised file to show me exactly which rows changed?"},{"title":"Duplicate trade record cleanup","prompt":"We collected trade observations from multiple regional offices and some rows got duplicated in the merge. Can you run an exact row deduplication on our export and import amount records — about 80 rows total — so I know which rows are duplicates before I clean the database?"},{"title":"Cross-region export import discrepancy check","prompt":"I have two regional trade datasets for Q4 — one from our internal system and one from a partner report — each with region, date, export_amount, and import_amount. Can you compare them row by row using the row_id as the key and tell me where the values differ?"}],"resultDescription":"Returns two reports: (1) an exact row deduplication report identifying which rows in the primary dataset are identical duplicates, and (2) a keyed dataset comparison report showing differences between the primary and secondary datasets matched on row_id, including changed, added, and removed rows based on export_amount and import_amount values.","failureModes":["Input array exceeds 200 rows — request rejected","Missing required fields (row_id, region, date, export_amount, import_amount) cause validation error","Invalid date format (not YYYY-MM-DD) causes schema rejection","Duplicate row_id values within the same dataset may affect keyed comparison accuracy","Null values in export_amount or import_amount are accepted but may affect comparison logic","Empty rows array rejected due to minItems:1 constraint"],"whenToPreferThis":"Choose this endpoint when you need to clean or audit trade observation data (with export and import amounts) by detecting exact duplicate rows or comparing two versions of a dataset at the row level. It is purpose-built for trade economics data with up to 200 rows, runs locally without external lookups, and produces two structured reports in a single cheap call. Prefer this over general-purpose data tools when your records conform to the region/date/export_amount/import_amount schema.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:47:42.275Z","isFirstParty":false,"canonicalSlug":"trade-observations-deduplication-and-keyed-dataset-comparison-57db7e6b"}