Query official US import/export trade statistics programmatically via the USITC DataWeb API

domain: dataweb.usitc.gov · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Register for a free DataWeb account at dataweb.usitc.gov and generate an individual API key from account settings.
  2. Review the Swagger/OpenAPI reference at datawebws.usitc.gov/dataweb/swagger-ui/index.html for available query parameters (trade flow, measures, timeframe, trading partner, HTS/SITC/NAICS classification).
  3. Build a query specifying trade flow (import/export/trade balance), commodity classification, reporting period, and partner country(ies), then submit it as an authenticated request using your API key.
  4. Parse the JSON response for the requested measures (value, quantity, unit) broken out by the dimensions you selected.
  5. For recurring reports, first save the query definition in the DataWeb web UI, then replicate the same parameter set via the API for automation.
  6. Re-pull data after Census Bureau statistical revisions are incorporated into DataWeb, since a prior pull can become stale for the same historical period.

Known gotchas

Related routes

Export the full US Harmonized Tariff Schedule (HTS) dataset in JSON, CSV, or XLSX via the USITC public REST export endpoint
hts.usitc.gov · 6 steps · unrated
Classify scrap metal exports by Schedule B/HS code and pull U.S. export trade statistics using the Census Bureau's International Trade Data API
U.S. Census Bureau International Trade Data API (census.gov/data/developers, census.gov/scheduleb) · 5 steps · unrated
Integrate with a customs broker's API to automate document submission and entry status retrieval for import shipments
logistics-general · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans