Preview Goods Exports
Example request and response for previewing annual merchandise export data for the United States to all partners in 2023 using the HS classification system.
TradeInternational TradeImportExportStatisticsUnited NationsEconomicsCommoditiesBilateral TradeHS CodesSITC
Preview Goods Exports 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": "Preview Annual Goods Exports — US to World (2023)",
"description": "Example request and response for previewing annual merchandise export data for the United States to all partners in 2023 using the HS classification system.",
"request": {
"method": "GET",
"url": "https://comtradeapi.un.org/public/v1/preview/C/A/HS",
"queryParameters": {
"reporterCode": "840",
"period": "2023",
"flowCode": "X",
"partnerCode": "0",
"cmdCode": "TOTAL",
"maxRecords": "5",
"format": "json"
},
"headers": {}
},
"response": {
"statusCode": 200,
"headers": {
"Content-Type": "application/json"
},
"body": {
"elapsedMs": 142,
"count": 1,
"validationStatus": "Ok",
"error": null,
"data": [
{
"typeCode": "C",
"freqCode": "A",
"refPeriodId": 2023,
"refYear": 2023,
"refMonth": 99,
"period": "2023",
"reporterCode": 840,
"reporterISO": "USA",
"reporterDesc": "United States of America",
"flowCode": "X",
"flowDesc": "Export",
"partnerCode": 0,
"partnerISO": "W00",
"partnerDesc": "World",
"partner2Code": null,
"partner2ISO": null,
"partner2Desc": null,
"classificationCode": "HS",
"classificationSearchCode": "HS",
"isOriginalClassification": true,
"cmdCode": "TOTAL",
"cmdDesc": "All Commodities",
"aggrLevel": 0,
"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": null,
"isNetWgtEstimated": false,
"grossWgt": null,
"isGrossWgtEstimated": false,
"cifvalue": null,
"fobvalue": 2019724621000,
"primaryValue": 2019724621000,
"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/preview-goods-exports"
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 form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
A second provider on the same verified email joins the account you already have.