{"uid":"cap__ukPLvEeVQ76RCcNif4ds","slug":"agentrxi-us-trade-data-bf75d96a","name":"AgentRXI US Trade Data","description":"US imports and exports from official Census trade data: by product (HS code) the top partner countries with value, share and year-to-date; by country the trade balance and top products; or US totals, for the latest month or any month.","url":"https://agentrxi.com/v1/trade?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"hs":{"type":"string","description":"2, 4 or 6-digit HS code, e.g. 8703 cars"},"flow":{"type":"string","description":"imports (default) or exports"},"limit":{"type":"integer"},"month":{"type":"string","description":"YYYY-MM, default latest"},"country":{"type":"string","description":"Partner country name"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_s--A808erT6Yd7PsLWL7Y","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns US import/export statistics from official Census data — by HS product code (top partner countries, value, share, YTD) or by country (trade balance, top products), for the latest or any historical month.","exampleAgentPrompt":"What are the top countries the US imported cars from last month? Use HS code 8703 and show me the top 10 by value.","exampleUseCases":[{"title":"Supply chain sourcing intelligence","prompt":"Which countries does the US import the most semiconductors from? Use HS code 8542 and show me the top 5 partners with their share of total imports for the latest available month."},{"title":"Trade balance analysis by country","prompt":"What is the US trade balance with Germany right now — how much do we import versus export to them, and what are the top products involved?"},{"title":"Monitoring export competitiveness","prompt":"Show me US exports of soybeans — HS code 1201 — for September 2024, including which countries are buying the most and what the year-to-date total looks like."}],"resultDescription":"A JSON object containing trade statistics sourced from US Census data: for HS-code queries, the top partner countries with trade value, percentage share, and year-to-date totals; for country queries, the bilateral trade balance and leading traded products; for US totals, aggregate import/export figures — all for the specified month or the latest available period.","failureModes":["Invalid or unsupported HS code returns an error or empty result","Country name not recognized — use standard English country names","Month out of range or data not yet published returns no data","Missing required query parameters (no hs and no country) may return aggregate US totals or an error","Rate limiting or payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need authoritative, official US trade statistics from Census Bureau data — particularly for HS-code-level product analysis, bilateral trade balances, or historical monthly breakdowns. Prefer this over web-scraped or estimated trade data when accuracy and official sourcing matter. It is well-suited for supply chain research, economic analysis, policy work, or competitive intelligence about import/export flows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:16.912Z","isFirstParty":false,"canonicalSlug":"agentrxi-us-trade-data-bf75d96a"}