{
  "openapi": "3.0.1",
  "info": {
    "title": "UN Comtrade Bilateral Trade Statistics Scraper",
    "description": "Pull bilateral merchandise trade statistics from UN Comtrade's official API. Select reporters, trading partners, years, import/export flows and HS commodity detail (chapter to 6-digit); every row ships with human-readable reporter, partner and commodity names plus reported-vs-estimated flags.",
    "version": "0.1",
    "x-build-id": "X5u3TLPvw0V4cLe7a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jungle_synthesizer~un-comtrade-bilateral-trade-statistics-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jungle_synthesizer-un-comtrade-bilateral-trade-statistics-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/jungle_synthesizer~un-comtrade-bilateral-trade-statistics-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jungle_synthesizer-un-comtrade-bilateral-trade-statistics-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/jungle_synthesizer~un-comtrade-bilateral-trade-statistics-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jungle_synthesizer-un-comtrade-bilateral-trade-statistics-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "sp_intended_usage": {
            "title": "What is the intended usage of this data?",
            "minLength": 1,
            "type": "string",
            "description": "What will this data feed? E.g. lead lists, KYB checks, price tracking."
          },
          "sp_improvement_suggestions": {
            "title": "How can we improve this crawler for you?",
            "minLength": 1,
            "type": "string",
            "description": "Provide any feedback or suggestions for improvements."
          },
          "sp_contact": {
            "title": "Contact email (optional)",
            "minLength": 1,
            "type": "string",
            "description": "We'll personally help with your use case. No spam."
          },
          "resumeCursor": {
            "title": "Resume cursor (continue a previous run)",
            "type": "string",
            "description": "Leave empty for a fresh crawl. To CONTINUE a previous run where it stopped — without paying again for records you already received — paste the `resumeCursor` value from that run's Output (the run's OUTPUT key). Resume promptly: the previous run's data expires with your account's retention window (free tier: your ~10 most recent runs)."
          },
          "maxItems": {
            "title": "Max Items",
            "type": "integer",
            "description": "Maximum number of trade records to save. Leave blank or set to 0 to pull without a cap -- the run stops only at its timeout, and resumeCursor picks up where it left off on the next run.",
            "default": 100
          },
          "reporters": {
            "title": "Reporting Countries",
            "type": "array",
            "description": "Reporting countries/territories (ISO3). Leave empty to walk all 243 reporters UN Comtrade publishes.",
            "items": {
              "type": "string",
              "enum": [
                "_PM",
                "_RN",
                "_SH",
                "_TK",
                "_ZP",
                "ABW",
                "AFG",
                "AGO",
                "AIA",
                "ALB",
                "AND",
                "ANT",
                "ARE",
                "ARG",
                "ARM",
                "ATG",
                "AUS",
                "AUT",
                "AZE",
                "BDI",
                "BEL",
                "BEN",
                "BES",
                "BFA",
                "BGD",
                "BGR",
                "BHR",
                "BHS",
                "BIH",
                "BLM",
                "BLR",
                "BLZ",
                "BMU",
                "BOL",
                "BRA",
                "BRB",
                "BRN",
                "BTN",
                "BWA",
                "CAF",
                "CAN",
                "CHE",
                "CHL",
                "CHN",
                "CIV",
                "CMR",
                "COD",
                "COG",
                "COK",
                "COL",
                "COM",
                "CPV",
                "CRI",
                "CSK",
                "CUB",
                "CUW",
                "CYM",
                "CYP",
                "CZE",
                "DDR",
                "DEU",
                "DJI",
                "DMA",
                "DNK",
                "DOM",
                "DZA",
                "ECU",
                "EGY",
                "ERI",
                "ESP",
                "EST",
                "ETH",
                "EUR",
                "FIN",
                "FJI",
                "FRA",
                "FRO",
                "FSM",
                "GAB",
                "GBR",
                "GEO",
                "GHA",
                "GIB",
                "GIN",
                "GLP",
                "GMB",
                "GNB",
                "GNQ",
                "GRC",
                "GRD",
                "GRL",
                "GTM",
                "GUF",
                "GUY",
                "HKG",
                "HND",
                "HRV",
                "HTI",
                "HUN",
                "IDN",
                "IND",
                "IRL",
                "IRN",
                "IRQ",
                "ISL",
                "ISR",
                "ITA",
                "JAM",
                "JOR",
                "JPN",
                "KAZ",
                "KEN",
                "KGZ",
                "KHM",
                "KIR",
                "KNA",
                "KOR",
                "KWT",
                "LAO",
                "LBN",
                "LBR",
                "LBY",
                "LCA",
                "LKA",
                "LSO",
                "LTU",
                "LUX",
                "LVA",
                "MAC",
                "MAR",
                "MDA",
                "MDG",
                "MDV",
                "MEX",
                "MHL",
                "MKD",
                "MLI",
                "MLT",
                "MMR",
                "MNE",
                "MNG",
                "MNP",
                "MOZ",
                "MRT",
                "MSR",
                "MTQ",
                "MUS",
                "MWI",
                "MYS",
                "MYT",
                "NAM",
                "NCL",
                "NER",
                "NGA",
                "NIC",
                "NIU",
                "NLD",
                "NOR",
                "NPL",
                "NRU",
                "NZL",
                "OMN",
                "PAK",
                "PAN",
                "PCI",
                "PCZ",
                "PER",
                "PHL",
                "PLW",
                "PNG",
                "POL",
                "PRK",
                "PRT",
                "PRY",
                "PSE",
                "PYF",
                "QAT",
                "R4",
                "REU",
                "ROU",
                "RUS",
                "RWA",
                "S19",
                "SAU",
                "SCG",
                "SDN",
                "SEN",
                "SGP",
                "SHN",
                "SLB",
                "SLE",
                "SLV",
                "SMR",
                "SOM",
                "SPM",
                "SRB",
                "SSD",
                "STP",
                "SUN",
                "SUR",
                "SVK",
                "SVN",
                "SWE",
                "SWZ",
                "SXM",
                "SYC",
                "SYR",
                "TCA",
                "TCD",
                "TGO",
                "THA",
                "TJK",
                "TKL",
                "TKM",
                "TLS",
                "TON",
                "TTO",
                "TUN",
                "TUR",
                "TUV",
                "TZA",
                "UGA",
                "UKR",
                "URY",
                "USA",
                "UZB",
                "VAT",
                "VCT",
                "VDR",
                "VEN",
                "VGB",
                "VIR",
                "VNM",
                "VUT",
                "WLF",
                "WSM",
                "YEM",
                "YMD",
                "YUG",
                "ZA1",
                "ZAF",
                "ZMB",
                "ZWE"
              ],
              "enumTitles": [
                "Peninsula Malaysia (...1963)",
                "Rhodesia Nyas (...1964)",
                "Sabah (...1963)",
                "Tanganyika (...1964)",
                "Zanzibar and Pemba Isd (...1964)",
                "Aruba",
                "Afghanistan",
                "Angola",
                "Anguilla",
                "Albania",
                "Andorra",
                "Netherlands Antilles (...2010)",
                "United Arab Emirates",
                "Argentina",
                "Armenia",
                "Antigua and Barbuda",
                "Australia",
                "Austria",
                "Azerbaijan",
                "Burundi",
                "Belgium",
                "Benin",
                "Bonaire",
                "Burkina Faso",
                "Bangladesh",
                "Bulgaria",
                "Bahrain",
                "Bahamas",
                "Bosnia Herzegovina",
                "Saint Barthélemy",
                "Belarus",
                "Belize",
                "Bermuda",
                "Bolivia (Plurinational State of)",
                "Brazil",
                "Barbados",
                "Brunei Darussalam",
                "Bhutan",
                "Botswana",
                "Central African Rep.",
                "Canada",
                "Switzerland",
                "Chile",
                "China",
                "Côte d'Ivoire",
                "Cameroon",
                "Dem. Rep. of the Congo",
                "Congo",
                "Cook Isds",
                "Colombia",
                "Comoros",
                "Cabo Verde",
                "Costa Rica",
                "Czechoslovakia (...1992)",
                "Cuba",
                "Curaçao",
                "Cayman Isds",
                "Cyprus",
                "Czechia",
                "Dem. Rep. of Germany (...1990)",
                "Germany",
                "Djibouti",
                "Dominica",
                "Denmark",
                "Dominican Rep.",
                "Algeria",
                "Ecuador",
                "Egypt",
                "Eritrea",
                "Spain",
                "Estonia",
                "Ethiopia",
                "European Union",
                "Finland",
                "Fiji",
                "France",
                "Faroe Isds",
                "FS Micronesia",
                "Gabon",
                "United Kingdom",
                "Georgia",
                "Ghana",
                "Gibraltar",
                "Guinea",
                "Guadeloupe (Overseas France)",
                "Gambia",
                "Guinea-Bissau",
                "Equatorial Guinea",
                "Greece",
                "Grenada",
                "Greenland",
                "Guatemala",
                "French Guiana (Overseas France)",
                "Guyana",
                "China, Hong Kong SAR",
                "Honduras",
                "Croatia",
                "Haiti",
                "Hungary",
                "Indonesia",
                "India",
                "Ireland",
                "Iran",
                "Iraq",
                "Iceland",
                "Israel",
                "Italy",
                "Jamaica",
                "Jordan",
                "Japan",
                "Kazakhstan",
                "Kenya",
                "Kyrgyzstan",
                "Cambodia",
                "Kiribati",
                "Saint Kitts and Nevis",
                "Rep. of Korea",
                "Kuwait",
                "Lao People's Dem. Rep.",
                "Lebanon",
                "Liberia",
                "Libya",
                "Saint Lucia",
                "Sri Lanka",
                "Lesotho",
                "Lithuania",
                "Luxembourg",
                "Latvia",
                "China, Macao SAR",
                "Morocco",
                "Rep. of Moldova",
                "Madagascar",
                "Maldives",
                "Mexico",
                "Marshall Isds",
                "North Macedonia",
                "Mali",
                "Malta",
                "Myanmar",
                "Montenegro",
                "Mongolia",
                "N. Mariana Isds",
                "Mozambique",
                "Mauritania",
                "Montserrat",
                "Martinique (Overseas France)",
                "Mauritius",
                "Malawi",
                "Malaysia",
                "Mayotte (Overseas France)",
                "Namibia",
                "New Caledonia",
                "Niger",
                "Nigeria",
                "Nicaragua",
                "Niue",
                "Netherlands",
                "Norway",
                "Nepal",
                "Naoero",
                "New Zealand",
                "Oman",
                "Pakistan",
                "Panama",
                "Pacific Isds (...1991)",
                "Panama-Canal-Zone (...1977)",
                "Peru",
                "Philippines",
                "Palau",
                "Papua New Guinea",
                "Poland",
                "Dem. People's Rep. of Korea",
                "Portugal",
                "Paraguay",
                "State of Palestine",
                "French Polynesia",
                "Qatar",
                "ASEAN",
                "Réunion (Overseas France)",
                "Romania",
                "Russian Federation",
                "Rwanda",
                "Other Asia, nes",
                "Saudi Arabia",
                "Serbia and Montenegro (...2005)",
                "Sudan",
                "Senegal",
                "Singapore",
                "Saint Helena",
                "Solomon Isds",
                "Sierra Leone",
                "El Salvador",
                "San Marino",
                "Somalia",
                "Saint Pierre and Miquelon",
                "Serbia",
                "South Sudan",
                "Sao Tome and Principe",
                "USSR (...1990)",
                "Suriname",
                "Slovakia",
                "Slovenia",
                "Sweden",
                "Eswatini",
                "Saint Maarten",
                "Seychelles",
                "Syria",
                "Turks and Caicos Isds",
                "Chad",
                "Togo",
                "Thailand",
                "Tajikistan",
                "Tokelau",
                "Turkmenistan",
                "Timor-Leste",
                "Tonga",
                "Trinidad and Tobago",
                "Tunisia",
                "Türkiye",
                "Tuvalu",
                "United Rep. of Tanzania",
                "Uganda",
                "Ukraine",
                "Uruguay",
                "USA",
                "Uzbekistan",
                "Holy See (Vatican City State)",
                "Saint Vincent and the Grenadines",
                "Dem. Rep. of Vietnam (...1974)",
                "Venezuela",
                "Br. Virgin Isds",
                "US Virgin Isds (...1980)",
                "Viet Nam",
                "Vanuatu",
                "Wallis and Futuna Isds",
                "Samoa",
                "Yemen",
                "Dem. Yemen (...1990)",
                "Yugoslavia (...1991)",
                "Southern African Customs Union (...1999)",
                "South Africa",
                "Zambia",
                "Zimbabwe"
              ]
            },
            "default": []
          },
          "partners": {
            "title": "Trading Partners",
            "type": "array",
            "description": "Bilateral trading partners (ISO3). Leave empty to walk all 292 partner areas UN Comtrade publishes.",
            "items": {
              "type": "string",
              "enum": [
                "_AC",
                "_CI",
                "_KS",
                "_MI",
                "_PM",
                "_RI",
                "_RN",
                "_SH",
                "_SK",
                "_SM",
                "_TK",
                "_WI",
                "_X",
                "_ZP",
                "A49",
                "A59",
                "A79",
                "ABW",
                "AFG",
                "AGO",
                "AIA",
                "ALA",
                "ALB",
                "AND",
                "ANT",
                "ARE",
                "ARG",
                "ARM",
                "ASM",
                "ATA",
                "ATB",
                "ATF",
                "ATG",
                "AUS",
                "AUT",
                "AZE",
                "BDI",
                "BEL",
                "BEN",
                "BES",
                "BFA",
                "BGD",
                "BGR",
                "BHR",
                "BHS",
                "BIH",
                "BLM",
                "BLR",
                "BLZ",
                "BMU",
                "BOL",
                "BRA",
                "BRB",
                "BRN",
                "BTN",
                "BVT",
                "BWA",
                "CAF",
                "CAN",
                "CCK",
                "CHE",
                "CHL",
                "CHN",
                "CIV",
                "CMR",
                "COD",
                "COG",
                "COK",
                "COL",
                "COM",
                "CPV",
                "CRI",
                "CSK",
                "CUB",
                "CUW",
                "CXR",
                "CYM",
                "CYP",
                "CZE",
                "DDR",
                "DEU",
                "DJI",
                "DMA",
                "DNK",
                "DOM",
                "DZA",
                "E19",
                "E29",
                "ECU",
                "EGY",
                "ERI",
                "ESH",
                "ESP",
                "EST",
                "ETH",
                "F19",
                "F49",
                "F97",
                "FIN",
                "FJI",
                "FLK",
                "FRA",
                "FRO",
                "FSM",
                "GAB",
                "GBR",
                "GEO",
                "GGY",
                "GHA",
                "GIB",
                "GIN",
                "GLP",
                "GMB",
                "GNB",
                "GNQ",
                "GRC",
                "GRD",
                "GRL",
                "GTM",
                "GUF",
                "GUM",
                "GUY",
                "HKG",
                "HMD",
                "HND",
                "HRV",
                "HTI",
                "HUN",
                "IDN",
                "IMN",
                "IND",
                "IOT",
                "IRL",
                "IRN",
                "IRQ",
                "ISL",
                "ISR",
                "ITA",
                "JAM",
                "JEY",
                "JOR",
                "JPN",
                "KAZ",
                "KEN",
                "KGZ",
                "KHM",
                "KIR",
                "KNA",
                "KOR",
                "KWT",
                "LAO",
                "LBN",
                "LBR",
                "LBY",
                "LCA",
                "LIE",
                "LKA",
                "LSO",
                "LTU",
                "LUX",
                "LVA",
                "MAC",
                "MAF",
                "MAR",
                "MCO",
                "MDA",
                "MDG",
                "MDV",
                "MEX",
                "MHL",
                "MKD",
                "MLI",
                "MLT",
                "MMR",
                "MNE",
                "MNG",
                "MNP",
                "MOZ",
                "MRT",
                "MSR",
                "MTQ",
                "MUS",
                "MWI",
                "MYS",
                "MYT",
                "NAM",
                "NCL",
                "NER",
                "NFK",
                "NGA",
                "NIC",
                "NIU",
                "NLD",
                "NOR",
                "NPL",
                "NRU",
                "NTZ",
                "NZL",
                "O19",
                "OMN",
                "PAK",
                "PAN",
                "PCI",
                "PCN",
                "PCZ",
                "PER",
                "PHL",
                "PLW",
                "PNG",
                "POL",
                "PRI",
                "PRK",
                "PRT",
                "PRY",
                "PSE",
                "PUS",
                "PYF",
                "QAT",
                "R20",
                "R91",
                "REU",
                "ROU",
                "RUS",
                "RWA",
                "S19",
                "SAU",
                "SCG",
                "SDN",
                "SEN",
                "SGP",
                "SGS",
                "SHN",
                "SJM",
                "SLB",
                "SLE",
                "SLV",
                "SMR",
                "SOM",
                "SPM",
                "SRB",
                "SSD",
                "STP",
                "SUN",
                "SUR",
                "SVK",
                "SVN",
                "SWE",
                "SWZ",
                "SXM",
                "SYC",
                "SYR",
                "TCA",
                "TCD",
                "TGO",
                "THA",
                "TJK",
                "TKL",
                "TKM",
                "TLS",
                "TON",
                "TTO",
                "TUN",
                "TUR",
                "TUV",
                "TWN",
                "TZA",
                "UGA",
                "UKR",
                "UMI",
                "URY",
                "USA",
                "UZB",
                "VAT",
                "VCT",
                "VDR",
                "VEN",
                "VGB",
                "VIR",
                "VNM",
                "VUT",
                "WLF",
                "WSM",
                "X1",
                "X2",
                "XX",
                "YEM",
                "YMD",
                "YUG",
                "ZA1",
                "ZAF",
                "ZMB",
                "ZWE"
              ],
              "enumTitles": [
                "Africa CAMEU region, nes",
                "Channel Islands",
                "Kosovo",
                "Midway Islands",
                "Peninsula Malaysia (...1963)",
                "Ryukyu Isd",
                "Rhodesia Nyas (...1964)",
                "Sabah (...1963)",
                "Sarawak",
                "Sikkim, Protectorate of India (...1974)",
                "Tanganyika (...1964)",
                "Wake Island",
                "Areas, nes",
                "Zanzibar and Pemba Isd (...1964)",
                "Caribbean, nes",
                "North America and Central America, nes",
                "LAIA, nes",
                "Aruba",
                "Afghanistan",
                "Angola",
                "Anguilla",
                "Åland Islands",
                "Albania",
                "Andorra",
                "Netherlands Antilles (...2010)",
                "United Arab Emirates",
                "Argentina",
                "Armenia",
                "American Samoa",
                "Antarctica",
                "Br. Antarctic Terr.",
                "Fr. South Antarctic Terr.",
                "Antigua and Barbuda",
                "Australia",
                "Austria",
                "Azerbaijan",
                "Burundi",
                "Belgium",
                "Benin",
                "Bonaire",
                "Burkina Faso",
                "Bangladesh",
                "Bulgaria",
                "Bahrain",
                "Bahamas",
                "Bosnia Herzegovina",
                "Saint Barthélemy",
                "Belarus",
                "Belize",
                "Bermuda",
                "Bolivia (Plurinational State of)",
                "Brazil",
                "Barbados",
                "Brunei Darussalam",
                "Bhutan",
                "Bouvet Island",
                "Botswana",
                "Central African Rep.",
                "Canada",
                "Cocos Isds",
                "Switzerland",
                "Chile",
                "China",
                "Côte d'Ivoire",
                "Cameroon",
                "Dem. Rep. of the Congo",
                "Congo",
                "Cook Isds",
                "Colombia",
                "Comoros",
                "Cabo Verde",
                "Costa Rica",
                "Czechoslovakia (...1992)",
                "Cuba",
                "Curaçao",
                "Christmas Isds",
                "Cayman Isds",
                "Cyprus",
                "Czechia",
                "Dem. Rep. of Germany (...1990)",
                "Germany",
                "Djibouti",
                "Dominica",
                "Denmark",
                "Dominican Rep.",
                "Algeria",
                "Other Europe, nes",
                "Eastern Europe, nes",
                "Ecuador",
                "Egypt",
                "Eritrea",
                "Western Sahara",
                "Spain",
                "Estonia",
                "Ethiopia",
                "Other Africa, nes",
                "Northern Africa, nes",
                "Western Asia, nes",
                "Finland",
                "Fiji",
                "Falkland Isds (Malvinas)",
                "France",
                "Faroe Isds",
                "FS Micronesia",
                "Gabon",
                "United Kingdom",
                "Georgia",
                "Guernsey",
                "Ghana",
                "Gibraltar",
                "Guinea",
                "Guadeloupe (Overseas France)",
                "Gambia",
                "Guinea-Bissau",
                "Equatorial Guinea",
                "Greece",
                "Grenada",
                "Greenland",
                "Guatemala",
                "French Guiana (Overseas France)",
                "Guam",
                "Guyana",
                "China, Hong Kong SAR",
                "Heard Island and McDonald Islands",
                "Honduras",
                "Croatia",
                "Haiti",
                "Hungary",
                "Indonesia",
                "Isle of Man",
                "India",
                "Br. Indian Ocean Terr.",
                "Ireland",
                "Iran",
                "Iraq",
                "Iceland",
                "Israel",
                "Italy",
                "Jamaica",
                "Jersey",
                "Jordan",
                "Japan",
                "Kazakhstan",
                "Kenya",
                "Kyrgyzstan",
                "Cambodia",
                "Kiribati",
                "Saint Kitts and Nevis",
                "Rep. of Korea",
                "Kuwait",
                "Lao People's Dem. Rep.",
                "Lebanon",
                "Liberia",
                "Libya",
                "Saint Lucia",
                "Liechtenstein",
                "Sri Lanka",
                "Lesotho",
                "Lithuania",
                "Luxembourg",
                "Latvia",
                "China, Macao SAR",
                "Saint Martin (French part)",
                "Morocco",
                "Europe EU, nes",
                "Rep. of Moldova",
                "Madagascar",
                "Maldives",
                "Mexico",
                "Marshall Isds",
                "North Macedonia",
                "Mali",
                "Malta",
                "Myanmar",
                "Montenegro",
                "Mongolia",
                "N. Mariana Isds",
                "Mozambique",
                "Mauritania",
                "Montserrat",
                "Martinique (Overseas France)",
                "Mauritius",
                "Malawi",
                "Malaysia",
                "Mayotte (Overseas France)",
                "Namibia",
                "New Caledonia",
                "Niger",
                "Norfolk Isds",
                "Nigeria",
                "Nicaragua",
                "Niue",
                "Netherlands",
                "Norway",
                "Nepal",
                "Naoero",
                "Neutral Zone",
                "New Zealand",
                "Oceania, nes",
                "Oman",
                "Pakistan",
                "Panama",
                "Pacific Isds (...1991)",
                "Pitcairn",
                "Panama-Canal-Zone (...1977)",
                "Peru",
                "Philippines",
                "Palau",
                "Papua New Guinea",
                "Poland",
                "Puerto Rico",
                "Dem. People's Rep. of Korea",
                "Portugal",
                "Paraguay",
                "State of Palestine",
                "US Misc. Pacific Isds",
                "French Polynesia",
                "Qatar",
                "Europe EFTA, nes",
                "CACM, nes",
                "Réunion (Overseas France)",
                "Romania",
                "Russian Federation",
                "Rwanda",
                "Other Asia, nes",
                "Saudi Arabia",
                "Serbia and Montenegro (...2005)",
                "Sudan",
                "Senegal",
                "Singapore",
                "South Georgia and the South Sandwich Islands",
                "Saint Helena",
                "Svalbard and Jan Mayen Islands",
                "Solomon Isds",
                "Sierra Leone",
                "El Salvador",
                "San Marino",
                "Somalia",
                "Saint Pierre and Miquelon",
                "Serbia",
                "South Sudan",
                "Sao Tome and Principe",
                "USSR (...1990)",
                "Suriname",
                "Slovakia",
                "Slovenia",
                "Sweden",
                "Eswatini",
                "Saint Maarten",
                "Seychelles",
                "Syria",
                "Turks and Caicos Isds",
                "Chad",
                "Togo",
                "Thailand",
                "Tajikistan",
                "Tokelau",
                "Turkmenistan",
                "Timor-Leste",
                "Tonga",
                "Trinidad and Tobago",
                "Tunisia",
                "Türkiye",
                "Tuvalu",
                "Taiwan, Province of China",
                "United Rep. of Tanzania",
                "Uganda",
                "Ukraine",
                "United States Minor Outlying Islands",
                "Uruguay",
                "United States of America",
                "Uzbekistan",
                "Holy See (Vatican City State)",
                "Saint Vincent and the Grenadines",
                "Dem. Rep. of Vietnam (...1974)",
                "Venezuela",
                "Br. Virgin Isds",
                "US Virgin Isds (...1980)",
                "Viet Nam",
                "Vanuatu",
                "Wallis and Futuna Isds",
                "Samoa",
                "Bunkers",
                "Free Zones",
                "Special Categories",
                "Yemen",
                "Dem. Yemen (...1990)",
                "Yugoslavia (...1991)",
                "Southern African Customs Union (...1999)",
                "South Africa",
                "Zambia",
                "Zimbabwe"
              ]
            },
            "default": []
          },
          "flows": {
            "title": "Trade Flows",
            "type": "array",
            "description": "Which trade flow(s) to pull. Import/Export cover standard merchandise trade; Re-Import/Re-Export cover re-exported goods.",
            "items": {
              "type": "string",
              "enum": [
                "M",
                "X",
                "RM",
                "RX"
              ],
              "enumTitles": [
                "Import",
                "Export",
                "Re-Import",
                "Re-Export"
              ]
            },
            "default": [
              "M",
              "X"
            ]
          },
          "freqCode": {
            "title": "Frequency",
            "enum": [
              "A",
              "M"
            ],
            "type": "string",
            "description": "Annual or monthly periods. Monthly multiplies the number of periods walked by up to 12x.",
            "default": "A"
          },
          "classificationLevel": {
            "title": "HS Commodity Detail",
            "enum": [
              "TOTAL",
              "AG2",
              "AG4",
              "AG6"
            ],
            "type": "string",
            "description": "Commodity aggregation level. TOTAL is one row per partner (fastest, always complete). AG2/AG4/AG6 add HS chapter / heading / subheading detail; AG6 on a large bilateral relationship (e.g. two major economies) may hit the free preview tier's 500-row-per-call cap and return a partial commodity breakdown for that shard -- a limit of the public tier, not this actor.",
            "default": "AG2"
          },
          "startYear": {
            "title": "Start Year",
            "type": "integer",
            "description": "Earliest year (or YYYYMM month-range start when Frequency=Monthly, e.g. 2023) to include. UN Comtrade's HS-classified series goes back to the late 1980s for most reporters.",
            "default": 2023
          },
          "endYear": {
            "title": "End Year",
            "type": "integer",
            "description": "Latest year to include (inclusive). Defaults to a single-year run; widen the range for a historical pull.",
            "default": 2023
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}