# USA UN Comtrade Import Export Scraper

**Use case:** 

Scrape USA UN Comtrade imports and exports by HS chapter, year, value, quantity, and partner for trade analysis.

## Input

```json
{
  "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": 100,
  "requestDelayMillis": 250,
  "failOnApiError": false
}
```

## Output

```json
{
  "period": {
    "label": "Period"
  },
  "reporterName": {
    "label": "Reporter"
  },
  "partnerName": {
    "label": "Partner"
  },
  "flowName": {
    "label": "Flow"
  },
  "commodityCode": {
    "label": "HS code"
  },
  "commodityName": {
    "label": "Commodity"
  },
  "tradeValueUsd": {
    "label": "Trade value USD"
  },
  "cifValueUsd": {
    "label": "CIF value USD"
  },
  "fobValueUsd": {
    "label": "FOB value USD"
  },
  "quantity": {
    "label": "Quantity"
  },
  "quantityUnit": {
    "label": "Unit"
  },
  "netWeightKg": {
    "label": "Net weight kg"
  },
  "sourceUrl": {
    "label": "Source URL"
  },
  "scrapedAt": {
    "label": "Scraped at"
  }
}
```

## About this Actor

This example demonstrates how to use [UN Comtrade Trade Data Scraper](https://apify.com/automation-lab/un-comtrade-trade-data-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/un-comtrade-trade-data-scraper) to learn more, explore other use cases, and run it yourself.