{"uid":"cap_XnQWlt5YmBRqgdRWAtT-M","slug":"un-comtrade-bilateral-trade-flows-api-a48de59b","name":"UN Comtrade Bilateral Trade Flows API","description":"Live web and public-record data: marketplaces, real estate, social media, job listings, company registries and government tenders. Pay per call in USDC over x402 with no account, subscribe on the Apify Store, or buy a finished, sourced report.","url":"https://api.ssh.autos/v1/comtrade/trade?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"period":{"type":"integer","title":"Period","maximum":2100,"minimum":2010},"cmdCode":{"type":"string","title":"Cmdcode","default":"8517","pattern":"^\\d{2,8}$"},"partner":{"type":"string","title":"Partner","default":"world","maxLength":60},"reporter":{"type":"string","title":"Reporter","maxLength":60,"minLength":2},"maxResults":{"type":"integer","title":"Maxresults","default":5,"maximum":10,"minimum":1}}},"responseSchema":{"type":"json","example":{"records":[],"summary":{"status":"succeeded_empty","records":0}}},"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_2FUBIQV9Dh7yf2EK8kyIR","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":"Fetches bilateral international trade flow data from UN Comtrade by reporter country, partner country, HS commodity code, and year","exampleAgentPrompt":"Pull UN Comtrade bilateral trade data for the US reporting on exports to China for HS code 8517 (mobile phones) in 2022, give me up to 5 records.","exampleUseCases":[{"title":"Electronics trade flow analysis","prompt":"Show me bilateral trade flows where Germany is the reporter and China is the partner for HS code 8542 (semiconductors) in 2021 — give me up to 10 records."},{"title":"Agricultural commodity research","prompt":"What does Brazil export to the world in soybeans (HS code 1201) for 2022? Pull the top 5 records from UN Comtrade."},{"title":"Trade policy due diligence","prompt":"I need to check US–Mexico bilateral trade for automotive parts under HS code 8708 in 2020, return up to 10 records so I can compare pre- and post-USMCA flows."}],"resultDescription":"Returns a JSON object with a records array containing matched bilateral trade flow entries (reporter, partner, HS code, year, trade values/quantities) and a summary object indicating query status and record count.","failureModes":["Empty result set when the reporter/partner/HS code/year combination has no data in Comtrade (status: succeeded_empty)","Invalid HS code format rejected if it doesn't match 2-8 digit numeric pattern","Reporter or partner country name not recognized by Comtrade lookup","Period out of supported range (below 2010 or above 2100)","Rate limit or payment failure at $0.01 USDC per call via x402 protocol"],"whenToPreferThis":"Use this endpoint when you need official UN Comtrade bilateral trade statistics for a specific country-pair and HS commodity code combination. Prefer this over general web search when you need structured, authoritative trade flow data queryable by reporter, partner, product code, and year. Best suited for trade policy research, economic analysis, supply chain due diligence, and competitive market intelligence tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-14T18:36:39.351Z","isFirstParty":false,"canonicalSlug":"un-comtrade-bilateral-trade-flows-api-a48de59b"}