Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Un Comtrade MCP Server

by cyanheadsversion 0.4.0i★ 4iComputer or cloudOfficial site ↗
Registry nameio.github.cyanheads/un-comtrade-mcp-server

How to install

What it does

UN Comtrade international trade statistics via MCP. Country/HS lookups, flows, balances, rankings.

  • Connects Computer or cloud
  • Account or key No key needed
  • Category Databases & datasets

Use together with

Skills that teach the AI this kind of work; they work alongside this one

timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

by google-research★ 35,6291 skills

Skill · How-to guide

Shadowbroker

Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…

by BigBodyCobain★ 11,6021 skills

Skill · How-to guide

google-maps-scraper

scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place

by gosom★ 8,2091 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity21/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering8/8The cloud endpoint answered at the last check
Usage score41/100

Quality: Passed 5/5 basic checks (shown, not used for ordering) · Momentum: 34 (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Un Comtrade MCP Server. Follow https://mcp.popnx.com/i/cyanheads-un-comtrade-mcp-server.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 5/5 checks · What you ask goes through the maker’s server (un-comtrade.caseyjhand.com) · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude · about 2 min

No key, nothing to install · Set it up once on claude.ai or the desktop app, then use it in chat · free accounts can add 1 · on Team/Enterprise an Owner adds it

  1. Open Claude’s Connectors page

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  2. Click “Add” → “Custom” → “Web” and fill in these 2 fields

    Copy each value into the field with the same name in Claude, then click Continue

    Name · NameUn Comtrade MCP Server
    Remote MCP server URL · Addresshttps://un-comtrade.caseyjhand.com/mcp

    Click Continue past the sign-in settings Claude detected · under Authentication choose what the maker says (Sign in now, Sign in when needed or No sign in), then click Add

  3. Turn it on in a chat

    +ConnectorsUn Comtrade MCP Server

  4. Try it

    Use Un Comtrade MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Un Comtrade MCP Server or shows a Un Comtrade MCP Server tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with ChatGPT, depending on your plan

Full MCP: ChatGPT Business, Enterprise or Edu on the web · Pro: connects with read/fetch permissions, so tools that change data may not work · Plus: not confirmed in OpenAI’s docs; if you see an add-custom-MCP option on the Plugins page you can try these steps · web only

  1. Open ChatGPT’s add-MCP page on the web

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. Fill in the name and address

    Enter a name, paste the address under Connection, tick the risk warning and click Create as a plugin

    Name · NameUn Comtrade MCP Server
    Connection · Addresshttps://un-comtrade.caseyjhand.com/mcp
  3. Pick Un Comtrade MCP Server in a chat

    Start a new chat and pick Un Comtrade MCP Server from your plugins before typing

  4. Try it

    Use Un Comtrade MCP Server and tell me what you can do for me, then show me one thing

    ✓ If ChatGPT says it is using Un Comtrade MCP Server or shows a Un Comtrade MCP Server tool in the answer, you are connected

Menu names checked against OpenAI’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Claude Code · about 2 min

No key, nothing to install

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  2. Paste this command and press Enter

    claude mcp add --transport http --scope user un-comtrade https://un-comtrade.caseyjhand.com/mcp
  3. Type /mcp in Claude Code

    You should see Un Comtrade MCP Server listed as connected

  4. Try it

    Use Un Comtrade MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Un Comtrade MCP Server or shows a Un Comtrade MCP Server tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor · about 2 min

No key, nothing to install

  1. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  2. Open the AI chat in Cursor in Agent mode

  3. Try it

    Use Un Comtrade MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Un Comtrade MCP Server or shows a Un Comtrade MCP Server tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code · about 2 min

No key, nothing to install

  1. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  2. Open the AI chat in VS Code in Agent mode

  3. Try it

    Use Un Comtrade MCP Server and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Un Comtrade MCP Server or shows a Un Comtrade MCP Server tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

Address for apps that connect over the web

Addresshttps://un-comtrade.caseyjhand.com/mcp

JSON settings are under “For developers” below

Stuck? Ask people who use Un Comtrade MCP Server💬 Discussion →
For developers: Terminal commands and JSON settings

Over the web

Claude Code

claude mcp add --transport http --scope user un-comtrade https://un-comtrade.caseyjhand.com/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "un-comtrade": {
      "url": "https://un-comtrade.caseyjhand.com/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "un-comtrade": {
      "type": "http",
      "url": "https://un-comtrade.caseyjhand.com/mcp"
    }
  }
}

Installed on your computer

Claude Code

claude mcp add --scope user un-comtrade -- npx -y @cyanheads/un-comtrade-mcp-server

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "un-comtrade": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/un-comtrade-mcp-server"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "un-comtrade": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/un-comtrade-mcp-server"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "un-comtrade": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/un-comtrade-mcp-server"
      ]
    }
  }
}

Values you fill in

  • COMTRADE_SUBSCRIPTION_KEY secret env
    Azure API Management key from comtradedeveloper.un.org. Optional — without it, tools fall back to the public preview endpoint (500-record cap).
  • MCP_LOG_LEVEL env
    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
637/wk
Licencei
Apache-2.0
Connection
Computer or cloud
Transport
stdio, streamable-http
Latest versioni
0.4.0
Published to registryi
Nov 13, 2026
Code last changedi
Nov 13, 2026
Last checked
Nov 18, 2026
Maker
cyanheads
Packages
npm: @cyanheads/un-comtrade-mcp-server
npm: @cyanheads/un-comtrade-mcp-server
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Connect over the internet in

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Tool names and descriptions exactly as the server reported them on Nov 18, 2026. The maker wrote them, not us; we show them as plain text.

  • comtrade_lookup_countries

    Resolve country and area names to Comtrade M49 numeric codes used in all data queries. Accepts a partial or full name, an official name (e.g. "Republic of Korea"), a common name (e.g. "UK", "Turkey"), or an ISO alpha-2/alpha-3 code (e.g. "USA", "US"), ignoring case and accents; e

  • comtrade_search_commodities

    Find HS or SITC commodity codes by keyword, description, or code prefix. A code written with dots, spaces, or hyphens ("0901.11") matches 090111. Exact codes, code prefixes and contiguous description matches rank first, followed by descriptions containing every query term in any

  • comtrade_list_service_categories

    List service trade categories from the combined EB catalog, including numeric EBOPS and SDMX codes. Returns category codes, descriptions, parent codes, and the EBOPS scheme catalogs that list each code: EB10 (EBOPS 2010), EB10S (EBOPS 2010 SDMX codes), EB02 (EBOPS 2002). Filter b

  • comtrade_get_trade_flows

    Fetch bilateral trade flow records — the primary data retrieval tool. Returns trade value in USD (primaryValue — FOB for exports, CIF for imports), quantity, net weight, and period/commodity/partner metadata for each row. Accepts multiple periods and commodity codes per call; pas

  • comtrade_get_trade_balance

    Compute the trade balance for a country over one or more periods — total exports minus total imports — with an optional HS or SITC commodity filter whose codes must not overlap. Keyless preview makes two requests per served period, at least 4 seconds apart; authenticated calls ba

  • comtrade_get_top_partners

    Rank trading partners for a reporter by trade value for a given commodity and flow direction. Returns the top N partners sorted by descending value — answers "who does country X mainly export product Y to?" or "where does country X mainly import product Z from?" for a single peri

  • comtrade_get_top_reporters

    Rank retrieved reporting areas by reported import or export value for one goods code and period. Partner 0 (World) ranks reporters by their trade with all partners. Use a bilateral partner to rank reporters by their trade with that area. Shares use the retrieved reporting areas b

  • comtrade_get_top_commodities

    Rank HS chapters (2-digit) or headings (4-digit) by trade value for one reporter, flow, and annual or monthly period. Set parent_code and a deeper aggr_level to rank headings or subheadings within one chapter or heading. The tool uses matching TOTAL to identify the HS edition and

  • comtrade_get_data_availability

    Check which reporter/period/classification combinations have published data before constructing expensive trade queries. Returns dataset records with period, classification, record count, and first/latest release dates. Call this before querying recent periods — annual data is ty

  • comtrade_get_services_trade

    Fetch annual international trade-in-services data. Classification EB (default) serves each reporter-period as reported, in its own scheme (EB10, EB10S or EB02 codes); EB10 or EB02 selects UN Comtrade's conversion of other schemes into that one. Each row names its classification a

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account cyanheads, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 6 days ago

  • ✓ Pass

    Has a licence

    Uses Apache-2.0

  • ✓ Pass

    Endpoint responds

    Responded in 614 ms (HTTP 200)

  • – Not applicable

    Sign-in with OAuth

    No sign-in needed

  • ✓ Pass

    No hidden instructions in tool descriptions

    Read 10 tool descriptions and found no hidden instructions to the AI

The cloud address answered 4 of the last 4 checks · latest 614 ms · checked Nov 18, 2026

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for @cyanheads/un-comtrade-mcp-server@0.4.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/cyanheads-un-comtrade-mcp-server.svg)](https://mcp.popnx.com/en/servers/cyanheads-un-comtrade-mcp-server)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Databases & datasetsi

  • More stars than 88% of the other 1233 servers in this category
  • Published to the registry more recently than 89% of the other 1233 servers in this category
  • Basic checks equal to or better than 99% of the other 1233 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Un Comtrade MCP Server safe?

It passed 5 of 5 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

Either way works: install it on your computer or connect to the cloud version.

Is it still maintained?

The GitHub repo last changed 6 days ago, and the latest version (0.4.0) reached the registry 6 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. It connects by URL, so apps that accept remote MCP servers work too, such as ChatGPT on the web (full MCP on Business and above; Pro read-only).

What can I use instead?

In the same category: QueryWeaver, Supabase, Neon, DBCode, Keboola MCP

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

QueryWeaver

An MCP server for Text2SQL: transforms natural language into SQL using graph schema understanding.

by FalkorDBGrowing★ 1.1KUpdated 14 months ago

Runs on your computer✓ falkordb.com

Supabase

Supabase’s official server lets AI create tables, query data and review project settings in your Supabase database.

by supabaseWidely used↓ 245.5K/wk★ 3K Stars for the whole repoUpdated yesterday

Computer or cloud✓ service owner · supabase.com

Neon

Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.

by neondatabaseGrowing★ 666Updated 13 days ago

Runs in the cloud✓ service owner · neon.com

DBCode

Query and explore 100+ databases through your DBCode connections.

by dbcodeioEarly↓ 118/wk★ 367 Stars for the whole repoUpdated 2 months ago

Runs on your computer✓ service owner · dbcode.io

Keboola MCP

Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...

by keboolaGrowing↓ 1.4K/wk★ 84Updated 3 days ago

Computer or cloud✓ service owner · keboola.com
Compared with similar ones
This one
Un Comtrade MCP Server
QueryWeaverSupabaseNeonDBCodeKeboola MCP
Runs whereCloud or install on your computerInstalls on your computerCloud or install on your computerRuns in the cloud, nothing to installInstalls on your computerCloud or install on your computer
Needs a keyNoNoYesNoNoNo
Add with + in ClaudeNoNoYesYesNoNo
Basic checks5/53/35/55/52/35/5
LicenseApache-2.0AGPL-3.0Apache-2.0MITNOASSERTIONMIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

@cyanheads/un-comtrade-mcp-server Access UN Comtrade international merchandise and services trade statistics — country lookups, HS commodity search, bilateral trade flows, balances, rankings, and data availability — via MCP. STDIO or Streamable HTTP. 10 Tools • 3 Resources

Public Hosted Server: https://un-comtrade.caseyjhand.com/mcp


Overview

International merchandise and services trade statistics from UN Comtrade. Resolve country and HS commodity codes, fetch bilateral trade flows and services trade, and compute balances, partner/commodity/reporter rankings, and data availability.

Tools
ToolDescription
comtrade_lookup_countriesResolve country and area names to Comtrade M49 numeric codes.
comtrade_search_commoditiesFind HS or SITC commodity codes in a selected edition by keyword, description, or code prefix.
comtrade_list_service_categoriesFind service trade categories in Comtrade's combined EB catalog, tagged with their EBOPS schemes, by keyword or parent code.
comtrade_get_trade_flowsFetch bilateral trade flow records — value, quantity, and weight per period/commodity/partner.
comtrade_get_trade_balanceCompute a country's trade balance (exports minus imports) across one or more periods.
comtrade_get_top_partnersRank trading partners by trade value for a reporter, commodity, and flow direction.
comtrade_get_top_reportersRank retrieved reporting areas by goods trade value for a commodity and flow direction.
comtrade_get_top_commoditiesRank commodity categories by trade value for a reporter and flow direction.
comtrade_get_data_availabilityCheck which reporter/period/classification combinations have published data.
comtrade_get_services_tradeFetch international trade-in-services data — EB as reported (EB10, EB10S, or EB02 codes), or UN Comtrade's converted EB10/EB02 series.
Resources
ResourceDescription
comtrade://countriesComplete country/area code list with M49 codes, ISO identifiers, and reporter validity.
comtrade://hs-classification/{level}Top-level HS commodity hierarchy at chapter, heading, or subheading level.
skill://un-comtrade-guide/SKILL.mdWorkflow guide for historical classifications, coverage, bilateral/mirror analysis, and unit values.

Country and HS reference data are also reachable through comtrade_lookup_countries and comtrade_search_commodities. The workflow guide ships with npm, Docker, MCPB, and plugins, and is available over MCP as a skill resource.

Capability reference

comtrade_lookup_countries tool
  • Accepts a partial or full country name, an official name ("Republic of Korea"), a common name ("UK", "Turkey"; 17 aliases), or an ISO alpha-2/alpha-3 code, ignoring case, accents, and surrounding spaces. Curly apostrophes and whole-word "St"/"St." also match their catalog spellings; literal ISO codes such as ST retain their meaning. A blank query is rejected, and one of only combining marks matches nothing. role filters to "reporter", "partner" (only entries in UN's partner-area list, so no reporter-only groupings such as the European Union, 97), or "any" (default)
  • validAsReporter flag on each match — most regional groupings (e.g. World) are partner-only, but some report (e.g. the European Union, 97)
  • include_groups (default true) toggles regional/economic groupings in the results; a grouping that is the code a match's goods trade is published under (490 for 158) is kept. When false leaves only groupings out, the notice says so and to retry with true
  • note on a match carries the catalog's long-form name or coverage note (e.g. "France, Monaco" for 251); a match can come from it. Absent when it repeats the name
  • Each match also pulls in entries sharing its ISO-3 identity, and the code UN Comtrade publishes a match's goods trade under: Taiwan's 158 is partner-only, with goods trade published under reporter 490 (Other Asia, nes), so a lookup that matches 158 also returns 490. Use 490 as goods reporter_code or partner_code; use 158 as the services partner_code. Exact matches (alias, ISO code, name, or note equal to the query) list before partial ones, and a pulled-in entry ranks with its match; within a rank: reporter-valid, current before expired, name, then code. Reporter and partner-only area codes remain distinct
  • entryEffectiveDate and entryExpiredDate (YYYY-MM-DD) give each entity's validity, so historical entities (e.g. Fed. Rep. of Germany, ...1990) sort after current ones within a rank
  • Country references load from UN static files at startup — no subscription key required. Rows that fail validation are dropped and logged; startup fails on an empty catalog or when fewer than half a file's rows are valid

comtrade_search_commodities tool
  • Free-text keyword, partial description, or code-prefix search; a code written with dots, spaces, or hyphens (0901.11) matches 090111. Exact code, code prefix, whole-word description, and other contiguous matches rank before descriptions containing every query term in any order; ties retain catalog order. A blank query, or one with no letter or digit, is rejected. classification (case-insensitive, default HS) selects the combined HS discovery reference, an HS edition H0–H6, or SITC SS/S1–S4
  • aggr_level uses the selected catalog's native levels: HS chapters/headings/subheadings use 2/4/6; SITC has levels 1–5. Omit for all levels. The HS all-commodities TOTAL is level 0, which no aggr_level filter returns
  • limit (default 50) is the page size; totalMatches, shown, and truncated describe the page, and offset with the returned nextOffset continues it
  • recommendedQueryCode is the code to pass as cmd_code in a trade query. Use the classification appropriate to the trade series and your access tier
  • Default HS results include editions, the H0–H6 catalogs listing the code, and parentDescription for codes absent from H6 when the immediate parent exists in the discovery catalog. Membership does not establish the same meaning across editions. Identify the series from trade rows or availability, then search its explicit edition; keyless trade queries still use HS. If an edition catalog is unavailable, matches and pagination remain usable without edition-derived fields, with a separate referenceNotice

comtrade_list_service_categories tool
  • Lists the combined EB service categories, optionally filtered by keyword or parent_code; numeric and alphabetic codes are distinct entries. A query ranks exact code, code prefix, whole-word description, then other description matches (ties and unfiltered listings in catalog order); codes compare case-insensitively and keep their dots, and a blank query lists every category. parent_code: "200" lists the EB10 and EB02 top levels
  • schemes on each category names the EBOPS scheme catalogs that list its code (EB10, EB10S, EB02); it is empty when none does and absent, with a notice, when the scheme catalogs could not be loaded. ebParent carries the parent the combined EB catalog gives a code when it differs from parent (TOTAL for EB10's top-level codes, whose parent is 200)
  • limit (default 100) is the page size; totalMatches, shown, and truncated describe the page, and offset with the returned nextOffset continues it
  • Returned id is the service_code for comtrade_get_services_trade

comtrade_get_trade_flows tool
  • Accepts a scalar reporter_code or an array; omission requires an explicit partner_code. Reporter arrays serve the first 20 distinct codes and disclose the remainder in unservedReporters. Served codes of an array that return no rows are listed in reportersWithoutRecords (referenceStatus, optional suggestedReporterCode; omitted when the response is truncated). A scalar partner-only reporter code, or a partner_code with a reporter-valid counterpart, gets a notice naming the code to query instead when no rows come back (reporter 250 → 251, 158 → 490; partner 840 → 842, 158 → 490)
  • Requires flow_code (M import / X export / RX re-export / RM re-import) and period values, all YYYY or all YYYYMM. freq is optional: it is inferred from the period length, mixed lengths are rejected, and an explicit value must match. Up to 120 periods are accepted; keyless calls serve the first 8 distinct periods (12 with a subscription key). Periods past the cap, or whose request is rate limited, hits a UN Comtrade server error or network failure after retries, or runs out of time, are listed in unservedPeriods with a notice naming each failure (the HTTP status for a server error); if every period fails the call returns rate_limited, upstream_unavailable, or deadline_exceeded
  • partner_code: 0 returns the World total; omitting it can return World alongside the partner breakdown. A notice identifies this overlap: exclude World when summing partner rows, and check for other aggregates. classification (case-insensitive, default HS) supports HS, H0–H6, and SITC S1–S4/SS. Explicit HS editions require authenticated data access; keyless HS returns as-reported editions, identified by each row's classificationCode
  • cmd_code[] accepts up to 200 codes and serves the first 20 distinct codes, listing the rest in unservedCmdCodes; omit it or pass ["TOTAL"] for cross-commodity totals. truncated: true plus truncationHint means the response hit the 500-record cap; isReported separates directly reported rows from UN-estimated ones
  • cmdCodesWithoutRecords lists explicitly served selecto

Only the beginning is shown; read the rest in the repo