$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "reporterCodes": [
< "842",
< "156"
< ],
< "partnerCodes": [
< "0"
< ],
< "periods": [
< "2023",
< "2022"
< ],
< "commodityCodes": [
< "TOTAL",
< "01",
< "02",
< "03",
< "04",
< "05",
< "06",
< "07",
< "08",
< "09",
< "10",
< "11",
< "12",
< "13",
< "14",
< "15",
< "16",
< "17",
< "18",
< "19",
< "20",
< "21",
< "22",
< "23",
< "24"
< ],
< "flowCodes": [
< "M",
< "X"
< ],
< "frequency": "A",
< "classification": "HS",
< "tradeType": "C",
< "includeDescriptions": true,
< "maxRows": 20,
< "requestDelayMillis": 250,
< "failOnApiError": false
<}
<EOF
$curl "https://api.apify.com/v2/acts/automation-lab~un-comtrade-trade-data-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'