fetch_commodity_trade_data
tradestat.commerce.gov.inFetches commodity-wise export or import data by financial year and HS-code digit level from https://tradestat.commerce.gov.in, including consecutive-year values, percentage shares, and growth. It can return all rows or one exact HS-code match.
Playground
Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.
What is fetch_commodity_trade_data?
Fetches commodity-wise export or import data by financial year and HS-code digit level from https://tradestat.commerce.gov.in, including consecutive-year values, percentage shares, and growth. It can return all rows or one exact HS-code match. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass financial_year, trade_type, hs_code_digit_level, hs_code, value_unit and get the result back without maintaining a scraper.
Response
{
"count": 0,
"trade_type": "<string>",
"value_unit": "<string>",
"commodities": [
{}
],
"financial_year": "<string>",
"hs_code_digit_level": 0,
"comparison_financial_year": "<string>"
}Call it
curl --location 'https://us-prod.notte.cc/functions/9c9c4dff-b961-4783-bea6-8ae2fb592ff8/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "9c9c4dff-b961-4783-bea6-8ae2fb592ff8",
"variables": {
"financial_year": "2024-2025",
"trade_type": "export",
"hs_code_digit_level": 2,
"hs_code": "",
"value_unit": "usd_million"
}
}'Ask an agent
Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.
Use the Anything API MCP server (https://anything.notte.cc/mcp). Call run(function_id="9c9c4dff-b961-4783-bea6-8ae2fb592ff8") — the "fetch_commodity_trade_data" function, which fetches commodity-wise export or import data by financial year and HS-code digit level from https://tradestat.commerce.gov.in, including consecutive-year values, percentage shares, and growth. It can return all rows or one exact HS-code match.. It takes financial_year (str), trade_type (str), hs_code_digit_level (int), hs_code (str), value_unit (str). Return the result as structured JSON.