Discover/trademap.org API
live

trademap.org APItrademap.org

Access ITC Trade Map data via API: bilateral trade flows, export/import indicators, HS-code time series, and data availability for 200+ countries.

Endpoints
5
Updated
3mo ago
Try it
HS product code (e.g. '8471'). Use 'TOTAL' for all products.
Trade flow direction. Accepted values: '2' for Export, '4' for Import.
Partner country code. Empty string for all partners.
Reporter country code (e.g. '842' for USA).
api.parse.bot/scraper/ce6950bd-1895-499a-828c-3af9bf6a7c80/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/ce6950bd-1895-499a-828c-3af9bf6a7c80/get_trade_indicators?hs_code=TOTAL&trade_flow=4&reporter_code=842' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 5 totalclick to expand

Retrieve trade indicators (export value, trade balance, growth, share, etc.) for a specific product and country. Returns a list of countries with their trade performance metrics.

Input
ParamTypeDescription
hs_codestringHS product code (e.g. '8471'). Use 'TOTAL' for all products.
trade_flowstringTrade flow direction. Accepted values: '2' for Export, '4' for Import.
partner_codestringPartner country code. Empty string for all partners.
reporter_codestringReporter country code (e.g. '842' for USA).
Response
{
  "type": "object",
  "fields": {
    "data": "array of objects, each containing country name (Exporters), trade values, growth rates, share percentages, and concentration metrics"
  },
  "sample": {
    "data": {
      "data": [
        {
          "Exporters": "World",
          "Share in world exports (%)": "100",
          "Concentration of importing countries": "0.04",
          "Trade balance in 2025 (USD thousand)": "-171,727,803",
          "Value exported in 2025 (USD thousand)": "25,636,648,695",
          "Annual growth in value between 2021-2025 (%)": "3",
          "Annual growth in value between 2024-2025 (%)": "8",
          "Average distance of importing countries (km)": "5,103"
        }
      ]
    },
    "status": "success"
  }
}

About the trademap.org API

The Trade Map API exposes 5 endpoints covering global trade statistics sourced from ITC Trade Map, including country-level trade indicators, yearly time series, and bilateral trade flows. The get_trade_indicators endpoint returns per-country metrics such as export value, trade balance, growth rates, world share, and concentration indices filtered by HS product code and trade flow direction. Together the endpoints span product-level breakdowns from HS-2 through HS-6 digit classification.

Trade Indicators and Time Series

The get_trade_indicators endpoint accepts an hs_code (e.g. '8471' for computers, or 'TOTAL' for all products), a trade_flow value ('2' for exports, '4' for imports), and optional reporter_code and partner_code to filter by specific countries. Each record in the response includes the country name (Exporters), trade values, year-on-year growth rates, world share percentages, and concentration metrics. The get_yearly_time_series endpoint uses the same parameter set and returns a multi-year array of export or import values per country, suitable for trend analysis.

Product and Bilateral Breakdowns

get_products_by_country lets you query a specific country's trade profile at HS-2, HS-4, or HS-6 digit granularity by setting hs_level. Each row returns the HS code, product label, and imported or exported values across recent years. get_bilateral_trade narrows to a single country-pair: supply a reporter_code (e.g. '842' for the USA) and a partner_code (e.g. '156' for China) to get a product-level breakdown including bilateral trade values, the partner's exports to the world, and the reporter's imports from the world.

Data Availability

The get_data_availability endpoint takes no inputs and returns a matrix of countries by year, where each cell is a numeric code indicating whether the data for that country-year is based on directly reported figures or mirror statistics (data reported by trading partners). This is useful for assessing confidence in specific data points before building downstream analyses.

Common use cases
  • Track year-over-year export growth for a specific HS-4 product across all reporting countries using get_yearly_time_series.
  • Identify top trading partners for a given commodity by filtering get_trade_indicators by hs_code and trade_flow.
  • Compare a country's full import product mix at HS-6 digit level using get_products_by_country with hs_level='6'.
  • Analyze bilateral trade flows between the USA and China for semiconductor products using get_bilateral_trade with codes '842' and '156'.
  • Audit data reliability before building trade dashboards by checking per-country reporting status in get_data_availability.
  • Calculate market share concentration for a product category across exporters using the concentration metrics in get_trade_indicators.
  • Build a trade balance monitor by querying both export ('2') and import ('4') flows for the same HS code and reporter.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does ITC Trade Map have an official developer API?+
ITC Trade Map does not offer a publicly documented, self-service developer API. Programmatic access to its data is generally not available without institutional arrangements. This Parse API provides structured endpoint access to the data Trade Map publishes.
What does `get_bilateral_trade` return beyond simple trade values?+
For each product in the bilateral relationship, the endpoint returns the product code and label, the bilateral import or export value, the partner country's exports to the entire world, and the reporter country's imports from the entire world. This lets you calculate the reporter's dependency on a specific partner for a given product.
What do the numeric codes in `get_data_availability` mean?+
Each code indicates the data source type for a country-year pair: whether the figures are directly reported by that country or are mirror data derived from what partner countries reported. The distinction matters when reported and mirror figures diverge significantly, which is common for countries with irregular national reporting.
Does the API expose sub-annual (monthly or quarterly) trade data?+
Not currently. The time series endpoints return annual figures only. The get_yearly_time_series and get_products_by_country endpoints both provide values at a yearly granularity. You can fork this API on Parse and revise it to add a monthly trade series endpoint if that granularity is available from the source.
Can I retrieve tariff rates or non-tariff measures alongside the trade flow data?+
Not currently. The API covers trade value flows, growth metrics, market share, and data availability status — it does not include tariff schedules or non-tariff barrier data. You can fork this API on Parse and revise it to add an endpoint targeting tariff or NTM data from Trade Map's related tools.
Page content last updated . Spec covers 5 endpoints from trademap.org.
Related APIs in Government PublicSee all →
identify.plantnet.org API
Identify and explore plant species by searching through Pl@ntNet's comprehensive botanical database to access detailed information like taxonomic families, genera, species descriptions, photos, and community observations. Track plant distributions, view contribution trends, and discover expert contributors within the platform's collaborative plant identification community.
data.lime.bike API
Access real-time availability data for Lime bikes and scooters, including station locations, vehicle status, system alerts, and geofencing zones across multiple cities. Monitor micromobility inventory and service information to find nearby vehicles or plan your trips effectively.
accessdata.fda.gov API
Search and retrieve comprehensive FDA premarket approval information for medical devices, including approval status, supplements, applicant details, and advisory committee data. Get instant access to specific PMA records with all relevant approval information in one place.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
cmegroup.com API
Get CME Group market data including FedWatch interest-rate probabilities, futures quotes and settlements, volume/open interest history, and options expirations and near-the-money option chains.
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.
mahatenders.gov.in API
Access Maharashtra government tenders from mahatenders.gov.in, browsing them by closing date or by organization with full tender details and pagination support. Find and review procurement opportunities across different government departments in one place.