Pull global scrap metal trade flow statistics (imports/exports by HS code and country) from the UN Comtrade API
domain: UN Comtrade API (comtradeplus.un.org, github.com/uncomtrade/comtradeapicall) · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Register a free UN Comtrade account and generate an API subscription key from the Comtrade Plus portal
Identify the relevant HS codes for the scrap material — ferrous scrap generally falls under HS heading 7204, with copper/aluminum/nickel/lead/zinc scrap under their respective chapters' "waste and scrap" headings
Query the trade-flow endpoint with typeCode, freqCode, clCode=HS, period, reporterCode, cmdCode, and flowCode parameters directly, or via the comtradeapicall Python/R helper library, to pull import/export value, net weight, and gross weight
Page through results within the free-tier limits (roughly 500 API calls/day, up to 100K records per call), or upgrade for higher-volume/bulk historical downloads
Reconcile reporter-country vs. partner-country figures for the same flow using Comtrade's reference tables, since mirror statistics frequently disagree
Known gotchas
Country statistical authorities report on no fixed schedule, so recent periods can be missing entirely or later revised without notice
Reporter-reported and partner-reported (mirror) statistics for the same trade flow commonly disagree in both value and quantity
Free-tier daily call and per-call record limits are easy to exhaust when looping over many reporter/commodity/year combinations without caching results
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?