UN Comtrade · Example Payload

Check Data Availability

Example request to check which European countries have submitted annual HS trade data for 2022 before attempting data extraction.

TradeInternational TradeImportExportStatisticsUnited NationsEconomicsCommoditiesBilateral TradeHS CodesSITC

Check Data Availability 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.

Top-level fields

titledescriptionrequestresponse

Example Payload

Raw ↑
{
  "title": "Check Annual HS Data Availability — European Reporters (2022)",
  "description": "Example request to check which European countries have submitted annual HS trade data for 2022 before attempting data extraction.",
  "request": {
    "method": "GET",
    "url": "https://comtradeapi.un.org/data/v1/getDa/C/A/HS",
    "queryParameters": {
      "reporterCode": "276,250,380,724,528",
      "period": "2022"
    },
    "headers": {
      "Ocp-Apim-Subscription-Key": "{YOUR_SUBSCRIPTION_KEY}"
    }
  },
  "response": {
    "statusCode": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "elapsedMs": 58,
      "count": 5,
      "validationStatus": "Ok",
      "error": null,
      "data": [
        {
          "typeCode": "C",
          "freqCode": "A",
          "classificationCode": "HS",
          "reporterCode": 276,
          "reporterISO": "DEU",
          "reporterDesc": "Germany",
          "period": "2022",
          "isOriginalClassification": true,
          "isPartnerDetail": true,
          "isCmdDetail": true
        },
        {
          "typeCode": "C",
          "freqCode": "A",
          "classificationCode": "HS",
          "reporterCode": 250,
          "reporterISO": "FRA",
          "reporterDesc": "France",
          "period": "2022",
          "isOriginalClassification": true,
          "isPartnerDetail": true,
          "isCmdDetail": true
        },
        {
          "typeCode": "C",
          "freqCode": "A",
          "classificationCode": "HS",
          "reporterCode": 380,
          "reporterISO": "ITA",
          "reporterDesc": "Italy",
          "period": "2022",
          "isOriginalClassification": true,
          "isPartnerDetail": true,
          "isCmdDetail": true
        },
        {
          "typeCode": "C",
          "freqCode": "A",
          "classificationCode": "HS",
          "reporterCode": 724,
          "reporterISO": "ESP",
          "reporterDesc": "Spain",
          "period": "2022",
          "isOriginalClassification": true,
          "isPartnerDetail": true,
          "isCmdDetail": true
        },
        {
          "typeCode": "C",
          "freqCode": "A",
          "classificationCode": "HS",
          "reporterCode": 528,
          "reporterISO": "NLD",
          "reporterDesc": "Netherlands",
          "period": "2022",
          "isOriginalClassification": true,
          "isPartnerDetail": true,
          "isCmdDetail": true
        }
      ]
    }
  }
}

Work with this as data

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/check-data-availability"
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.