{
  "opencollection": "1.0.0",
  "info": {
    "name": "UN Comtrade Data Bulk Download Data Availability API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Data Availability",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Data Availability",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://comtradeapi.un.org/data/v1/getDa/:typeCode/:freqCode/:clCode",
            "params": [
              {
                "name": "typeCode",
                "value": "C",
                "type": "path",
                "description": "Trade type: C for Goods (Commodities), S for Services"
              },
              {
                "name": "freqCode",
                "value": "A",
                "type": "path",
                "description": "Reporting frequency: A for Annual, M for Monthly"
              },
              {
                "name": "clCode",
                "value": "HS",
                "type": "path",
                "description": "Commodity classification code: HS (latest), H5–H0 (HS revisions), S4–S0 (SITC revisions), B4/B3 (BEC), EB02 (Extended BEC)"
              },
              {
                "name": "reporterCode",
                "value": "840",
                "type": "query",
                "description": "UN M49 numeric country code for the reporting country. Comma-separated for multiple. E.g. 156 for China, 840 for USA."
              },
              {
                "name": "period",
                "value": "2023",
                "type": "query",
                "description": "Year (YYYY for annual) or year-month (YYYYMM for monthly). Multiple values comma-separated, max 12 values."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Ocp-Apim-Subscription-Key",
              "value": "{{Ocp-Apim-Subscription-Key}}",
              "placement": "header"
            }
          },
          "docs": "Retrieve information about which reporting countries have submitted trade data for given periods and classifications. Useful for determining what data is available before making data extraction calls.\n"
        },
        {
          "info": {
            "name": "Get Data Availability for Tariffline",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://comtradeapi.un.org/data/v1/getDaTariffline/:typeCode/:freqCode/:clCode",
            "params": [
              {
                "name": "typeCode",
                "value": "C",
                "type": "path",
                "description": "Trade type: C for Goods (Commodities), S for Services"
              },
              {
                "name": "freqCode",
                "value": "A",
                "type": "path",
                "description": "Reporting frequency: A for Annual, M for Monthly"
              },
              {
                "name": "clCode",
                "value": "HS",
                "type": "path",
                "description": "Commodity classification code: HS (latest), H5–H0 (HS revisions), S4–S0 (SITC revisions), B4/B3 (BEC), EB02 (Extended BEC)"
              },
              {
                "name": "reporterCode",
                "value": "840",
                "type": "query",
                "description": "UN M49 numeric country code for the reporting country. Comma-separated for multiple. E.g. 156 for China, 840 for USA."
              },
              {
                "name": "period",
                "value": "2023",
                "type": "query",
                "description": "Year (YYYY for annual) or year-month (YYYYMM for monthly). Multiple values comma-separated, max 12 values."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Ocp-Apim-Subscription-Key",
              "value": "{{Ocp-Apim-Subscription-Key}}",
              "placement": "header"
            }
          },
          "docs": "Retrieve data availability information specific to tariffline datasets, indicating which reporters have submitted tariffline-level data for given periods and classifications.\n"
        }
      ]
    }
  ],
  "bundled": true
}