Discover/Gov API
live

Gov APItradestat.commerce.gov.in

Access India's Export Import Data Bank via 5 endpoints. Query commodity-wise, country-wise, and monthly trade stats by HS code, year, and currency.

Endpoint health
verified 5d ago
get_commodity_wise_report
search_hs_code
get_available_years
get_country_wise_report
get_meidb_report
5/5 passing latest checkself-healing
Endpoints
5
Updated
21d ago

What is the Gov API?

This API provides structured access to India's Export Import Data Bank (EIDB and MEIDB) through 5 endpoints covering commodity-wise reports, country-wise summaries, HS code lookup, and monthly trade statistics. The get_commodity_wise_report endpoint alone returns HS codes at 2-, 4-, 6-, or 8-digit granularity alongside trade values, percentage share, and year-over-year growth for financial years 2018 through 2024.

Try it
Financial year starting year (e.g., '2024' for 2024-2025). Available values: 2018 through 2025.
Currency or unit for values.
Type of trade.
HS code digit level.
api.parse.bot/scraper/6bc89ab4-56b1-4990-a960-086912f43fa2/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/6bc89ab4-56b1-4990-a960-086912f43fa2/get_commodity_wise_report?year=2024&values_in=US+%24+Million&trade_type=exports&commodity_level=2' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace tradestat-commerce-gov-in-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.india_trade_statistics_api import IndiaTradeStats, TradeType, ValuesIn, CommodityLevel, YearType

client = IndiaTradeStats()

# List available financial years
for year in client.availableyears.list():
    print(year.value, year.text)

# Search HS codes for rice commodities
for hs in client.hscodes.search(description="rice"):
    print(hs.code, hs.description, hs.unit)

# Get commodity-wise export report at HS-2 digit level
exports = client.trade(TradeType.EXPORTS)
for commodity in exports.commodity_report(year="2024", values_in=ValuesIn.US_DOLLAR_MILLION, commodity_level=CommodityLevel.DIGIT_2):
    print(commodity.hs_code, commodity.commodity, commodity.share_percent, commodity.growth_percent)

# Get country-wise export data
for country in exports.country_report(year="2024", values_in=ValuesIn.US_DOLLAR_MILLION):
    print(country.country_region, country.share_percent, country.growth_percent)

# Get monthly import data
imports = client.trade(TradeType.IMPORTS)
for row in imports.monthly_report(year="2024", month="1", values_in=ValuesIn.RUPEE_CRORE, year_type=YearType.FINANCIAL_YEAR, commodity_level=CommodityLevel.DIGIT_4):
    print(row.hs_code, row.commodity, row.growth_percent)
All endpoints · 5 totalmissing one? ·

Fetch commodity-wise trade data for a given financial year. Returns a table of commodities with HS codes, trade values for two consecutive years, percentage share, and growth rate. Paginates as a single page containing all matching rows at the requested HS-code digit level.

Input
ParamTypeDescription
yearstringFinancial year starting year (e.g., '2024' for 2024-2025). Available values: 2018 through 2025.
values_instringCurrency or unit for values.
trade_typestringType of trade.
commodity_levelstringHS code digit level.
Response
{
  "type": "object",
  "fields": {
    "data": "array of commodity objects with keys S.No., HSCode, Commodity, prior year value, %Share, current year value, %Growth"
  },
  "sample": {
    "data": {
      "data": [
        {
          "S.No.": "1",
          "%Share": "0.0045",
          "HSCode": "01",
          "%Growth": "59.17",
          "Commodity": "LIVE ANIMALS.",
          "2023 - 2024": "12.37",
          "2024 - 2025": "19.70"
        }
      ]
    },
    "status": "success"
  }
}

About the Gov API

Commodity and Country Trade Reports

The get_commodity_wise_report endpoint returns a ranked table of commodities identified by HS code and description, with trade values for two consecutive financial years, percentage share of total trade, and growth rate. You can filter by trade_type (exports or imports), commodity_level (HS digits: 2, 4, 6, or 8), and express values in US dollars (millions), Indian rupees (crore), or raw quantity. The get_country_wise_report endpoint mirrors this structure at the country level, adding a total_trade option for trade_type and returning Country/Region, prior and current year values, %Share, and %Growth per row.

Monthly Data and HS Code Search

The get_meidb_report endpoint targets the Monthly EIDB, letting you pin a specific month (1–12) and year and choose between Financial Year or Calendar Year framing. Response rows carry the same HS code and commodity columns as the annual report, plus monthly values for the prior and current year, a % Growth column, and cumulative-to-date figures. The search_hs_code endpoint accepts a partial numeric code (e.g., 10) or a plain-text keyword (e.g., rice) and returns matching HSCODE, DESCRiption, and UNIT fields — useful for resolving codes before passing them to the report endpoints.

Year Coverage and Metadata

The get_available_years endpoint returns the full list of supported financial years as value (e.g., '2024') and text (e.g., '2024-2025') pairs, so you can programmatically stay in sync with whatever years the EIDB currently publishes rather than hard-coding a range. All report endpoints accept the starting year of the financial year window as their year parameter.

Reliability & maintenanceVerified

The Gov API is a managed, monitored endpoint for tradestat.commerce.gov.in — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when tradestat.commerce.gov.in changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official tradestat.commerce.gov.in API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
5d ago
Latest check
5/5 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Track year-over-year export growth for a specific HS-8 commodity between India and all trading partners
  • Compare India's import share by country for a given financial year using get_country_wise_report
  • Resolve ambiguous commodity descriptions to exact HS codes before querying trade reports via search_hs_code
  • Build a monthly trade dashboard showing cumulative export values across financial year months with get_meidb_report
  • Identify the top commodities by percentage share of total exports at the HS-2 chapter level
  • Convert trade values between USD millions and INR crore for domestic vs. international reporting pipelines
  • Enumerate all available reporting years dynamically using get_available_years to keep queries current
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 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 tradestat.commerce.gov.in have an official developer API?+
The site does not publish a documented public developer API or SDK. Data is made available through its web interface at https://tradestat.commerce.gov.in.
What does get_meidb_report return that the annual commodity report does not?+
get_meidb_report returns monthly trade values for a specific month in two consecutive years, plus a cumulative column (labeled 'cum') that aggregates from the start of the selected year type to that month. The annual get_commodity_wise_report only provides full-year totals without monthly breakdown.
Does the API support filtering commodity or country reports by a specific HS code rather than returning the full table?+
get_commodity_wise_report and get_meidb_report do not currently accept an HS code as a filter — they return the full ranked table for the selected year and commodity level. get_country_wise_report accepts a country code parameter. You can use search_hs_code to identify codes, but row-level filtering by HS code is not built into the report endpoints. You can fork the API on Parse and revise it to add that filter capability.
How current is the trade data, and does it include provisional or revised figures?+
The data reflects what tradestat.commerce.gov.in publishes, which is sourced from India's Directorate General of Commercial Intelligence and Statistics (DGCI&S). The API does not expose a freshness timestamp or flag distinguishing provisional from revised figures in response fields. The available financial years currently run from 2018 to 2024.
Does the API expose bilateral trade data broken down by both commodity and country simultaneously?+
Not currently. The commodity report aggregates across all countries and the country report aggregates across all commodities — there is no single endpoint that cross-tabulates HS codes against specific trading partners. You can fork the API on Parse and revise it to add an endpoint combining both dimensions.
Page content last updated . Spec covers 5 endpoints from tradestat.commerce.gov.in.
Related APIs in Government PublicSee all →
beta.trademap.org API
Analyze international trade patterns by accessing comprehensive goods and services trade statistics, time series data, and trade indicators across countries and product classifications. Track trade flows using standardized HS and EBOPS product codes to compare performance metrics and coverage across different markets and time periods.
trademap.org API
Access comprehensive global trade statistics including bilateral trade flows, product exports by country, and historical trade indicators to analyze international commerce trends. Monitor trade data availability and retrieve time series information to track how specific products and countries perform in the global market.
wcotradetools.org API
Quickly look up official HS 2022 product classifications, browse the complete hierarchy of sections, chapters, headings, and subheadings, and search for specific commodity codes used in international trade. Organize product data with standardized, normalized classification information perfect for inventory systems and customs documentation.
trademo.com API
Access comprehensive global trade data to search companies, find manufacturers by country, and review detailed trade profiles, sanctions lists, and politically exposed persons (PEP) lists. Monitor global trade indices and build a complete directory of international trading partners and compliance information.
tradeindia.com API
Search and discover products, suppliers, and their contact information on TradeIndia's B2B marketplace. Browse product categories, find supplier profiles, and explore upcoming tradeshows and industry events — including locations, dates, venues, and organizer details.
wits.worldbank.org API
Access comprehensive trade statistics, tariffs, and development indicators for countries worldwide through the World Bank's WITS platform. Look up country trade profiles, compare bilateral trade relationships between partners, and analyze key metrics including export/import volumes, tariff rates, GDP, and FDI. Ideal for researching international commerce, trade policy, and economic indicators across any country or region.
customs.gov.mv API
Check import/export duties, tariff classifications, and exchange rates for Maldives customs compliance, plus track vessel movements, company registrations, and declaration statuses. Get real-time data directly from the official customs portal to streamline your trade and logistics operations.
ibef.org API
Access comprehensive reports on Indian industries and states, browse the latest economic news, and get quick facts about India's economy all in one place. Search across thousands of resources to find detailed insights on specific sectors, regions, and economic trends.