UN Comtrade International Trade Data Scraper avatar

UN Comtrade International Trade Data Scraper

Pricing

from $10.20 / 1,000 results

Go to Apify Store
UN Comtrade International Trade Data Scraper

UN Comtrade International Trade Data Scraper

Scrape international trade statistics: import and export values between countries by commodity (HS code), annual or monthly. Clean labelled rows with country names, ISO codes, commodity descriptions, trade value in USD, net weight and quantity. Export to JSON, CSV or Excel.

Pricing

from $10.20 / 1,000 results

Rating

0.0

(0)

Developer

Scrapers Lat

Scrapers Lat

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

UN Comtrade International Trade Data Scraper (Imports & Exports by Country & HS Code)

Pull official international merchandise trade statistics as clean, labelled rows: import and export values between any two countries, broken down by commodity (HS code), annual or monthly. Every record comes with real country names, ISO codes and commodity descriptions, trade value in USD, net weight and quantity, ready for analysis, dashboards and market research.

📥 Input · 📤 Output · 💰 Pricing · ▶️ Examples

Apify Trade data Output

Imports & exports
value in USD by country
By commodity
full HS code breakdown
JSON / CSV / Excel
output formats

What you get

Each record is a single flat, labelled trade row with:

  • Reporter country name, ISO3 and code, and partner country name, ISO3 and code
  • Trade flow in plain words (Export, Import, Re-export, Re-import) plus the flow code
  • Period (year, or year and month), year and month fields, and the frequency
  • Commodity: the HS code and its full text description, plus the aggregation level
  • Trade value in USD, and FOB / CIF value where reported
  • Net weight (kg), gross weight and quantity with its unit, plus flags for estimated figures
  • Customs and mode-of-transport codes, a reported/aggregate flag, the source and an observed timestamp

The upstream feed returns bare numeric codes with the country and commodity names left blank. This Actor joins the official reference tables for you, so you get readable names and descriptions in every row without any extra lookups.

Who is it for

Use caseWho benefits
Market entry & sizingAnalysts measuring how much of a product flows between markets
Supply chain & sourcingTeams mapping where goods are imported from and exported to
Economics & researchResearchers building trade balances and time series
Dashboards & data appsBuilders feeding country-by-commodity trade into their own tools

How to use it

  1. Enter one or more reporter countries (name or ISO code) and partner countries (or World for totals).
  2. Pick a trade flow (exports, imports or both), a frequency (annual or monthly) and the periods.
  3. Add commodity HS codes (TOTAL for all goods, or codes like 27, 85 to break trade down by product).
  4. Set Max Records and run. Export as JSON, CSV or Excel, or pull it through the Apify API.

Frequently Asked Questions

Do I need an account or key? No. It runs out of the box on the free public data. If you have your own free access key, paste it into the optional field to unlock full historical data and higher volume.

How do I get a country's total trade instead of one partner? Set the partner to World. That returns each reporter's total trade for the chosen flow, period and commodity.

Can I break trade down by product? Yes. List HS commodity codes (for example 27 for mineral fuels or 85 for electrical machinery), or use a more detailed code for a specific product. Use TOTAL for all goods combined.

What do the values mean? tradeValueUsd is the trade value in current US dollars. For imports you may also get CIF value, and for exports FOB value, where the reporting country provides them.

Will I be charged if a run finds nothing? No. You are only charged per real trade record returned. A run that matches no data produces no billable results.

Export, API and AI agents (x402 + MCP)

Export the scraped data to JSON, CSV or Excel, pull it as a dataset through the Apify API, or wire it into your app with no code. This web scraper and data extractor also works for bulk data extraction and scheduled runs.

For AI agents: this Actor is available on x402, Apify's agentic payment standard built with Coinbase. An AI agent can discover, pay for and run it on its own with a funded wallet and a single HTTP request: no account, no subscription, no API key and no human in the loop. It also runs as an MCP tool inside Claude, Cursor and other AI clients out of the box. Learn more about x402 agentic payments on Apify.

More scrapers at scrapers.lat

This actor is built and maintained by scrapers.lat, where we publish scrapers for public platforms: finance, news, real estate, jobs, e-commerce and government data. Browse the full catalog or ask us for a custom scraper at scrapers.lat.


This actor is an independent tool and has no affiliation with the United Nations or UN Comtrade. It only accesses publicly available trade statistics. Use the results in accordance with the source's terms.