Get Bilateral Trade
Example authenticated request to retrieve monthly import data for HS Chapter 84 (nuclear reactors, boilers, machinery) between China and the United States for 2023.
TradeInternational TradeImportExportStatisticsUnited NationsEconomicsCommoditiesBilateral TradeHS CodesSITC
Get Bilateral Trade is an example object payload from UN Comtrade, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
{
"title": "Get Bilateral Trade Data — China-USA Monthly HS Chapter 84 (2023)",
"description": "Example authenticated request to retrieve monthly import data for HS Chapter 84 (nuclear reactors, boilers, machinery) between China and the United States for 2023.",
"request": {
"method": "GET",
"url": "https://comtradeapi.un.org/data/v1/get/C/M/HS",
"queryParameters": {
"reporterCode": "156",
"partnerCode": "840",
"period": "202301,202302,202303",
"cmdCode": "84",
"flowCode": "M",
"maxRecords": "10",
"format": "json",
"breakdownMode": "plus",
"includeDesc": "true"
},
"headers": {
"Ocp-Apim-Subscription-Key": "{YOUR_SUBSCRIPTION_KEY}"
}
},
"response": {
"statusCode": 200,
"headers": {
"Content-Type": "application/json"
},
"body": {
"elapsedMs": 287,
"count": 3,
"validationStatus": "Ok",
"error": null,
"data": [
{
"typeCode": "C",
"freqCode": "M",
"refPeriodId": 202301,
"refYear": 2023,
"refMonth": 1,
"period": "202301",
"reporterCode": 156,
"reporterISO": "CHN",
"reporterDesc": "China",
"flowCode": "M",
"flowDesc": "Import",
"partnerCode": 840,
"partnerISO": "USA",
"partnerDesc": "United States of America",
"partner2Code": null,
"partner2ISO": null,
"partner2Desc": null,
"classificationCode": "HS",
"classificationSearchCode": "HS",
"isOriginalClassification": true,
"cmdCode": "84",
"cmdDesc": "Nuclear reactors, boilers, machinery and mechanical appliances; parts thereof",
"aggrLevel": 2,
"isLeaf": false,
"customsCode": "C00",
"customsDesc": "General Trade",
"mosCode": null,
"motCode": null,
"motDesc": null,
"qtyUnitCode": null,
"qtyUnitAbbr": null,
"qty": null,
"isQtyEstimated": false,
"altQtyUnitCode": null,
"altQtyUnitAbbr": null,
"altQty": null,
"isAltQtyEstimated": false,
"netWgt": 142530000,
"isNetWgtEstimated": false,
"grossWgt": null,
"isGrossWgtEstimated": false,
"cifvalue": 3187420000,
"fobvalue": null,
"primaryValue": 3187420000,
"legacyEstimationFlag": 0,
"isReported": true,
"isAggrAbove": false
}
]
}
}
}
Every example here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for examples
4 MCP tools reach this
find_examplesBrowse and filter every example in the catalog.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools
Call it yourself
curl for this page
This example
curl "https://apis.io/api/v1/examples/get-bilateral-trade"
All examples
curl "https://apis.io/api/v1/examples?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no email required.
A second provider on the same verified email joins the account you already have.