# HS codes for clothing: T-shirts, knit hats, dresses, scarves

**Use case:** 

Example run for Etsy and Shopify clothing sellers. A cotton graphic tee, a hand-knitted wool beanie, a woven linen dress and a crocheted scarf get their 6-digit HS 2022 codes, customs descriptions for CN22/CN23 forms, confidence labels and alternatives. Knitted vs woven and the fiber decide the code. Swap in your own listings or upload your Etsy CSV.

## Input

```json
{
  "products": [
    {
      "id": "TEE-01",
      "title": "Retro Sunset Graphic Tee",
      "materials": "100% cotton jersey",
      "description": "Knitted cotton t-shirt, screen printed."
    },
    {
      "id": "HAT-02",
      "title": "Chunky Knit Beanie Hat",
      "materials": "merino wool",
      "description": "Hand knitted winter beanie."
    },
    {
      "id": "DRS-03",
      "title": "Linen Midi Wrap Dress",
      "materials": "100% linen",
      "description": "Woven linen dress for women."
    },
    {
      "id": "SCF-04",
      "title": "Cozy Crochet Scarf",
      "materials": "acrylic yarn",
      "description": "Hand crocheted long scarf."
    }
  ],
  "useImages": false,
  "maxProducts": 1000
}
```

## Output

```json
{
  "id": {
    "label": "ID",
    "format": "string"
  },
  "title": {
    "label": "Product",
    "format": "string"
  },
  "hsCodeFormatted": {
    "label": "HS code",
    "format": "string"
  },
  "customsDescription": {
    "label": "Customs description",
    "format": "string"
  },
  "confidenceLabel": {
    "label": "Confidence",
    "format": "string"
  },
  "needsReview": {
    "label": "Check?",
    "format": "boolean"
  },
  "reasoning": {
    "label": "Why",
    "format": "string"
  },
  "description": {
    "label": "HS 2022 text",
    "format": "string"
  },
  "alternatives": {
    "label": "Alternatives",
    "format": "array"
  },
  "questions": {
    "label": "Questions",
    "format": "array"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The HS Code Classifier for Etsy & Shopify Products Actor is ready to run with the inputs already set for "HS codes for clothing: T-shirts, knit hats, dresses, scarves". [Sign up or log in](https://console.apify.com/create-task-from-example/j0gIPm5WxXdzw59lw) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "HS codes for clothing: T-shirts, knit hats, dresses, scarves" task

The HS Code Classifier for Etsy & Shopify Products Actor will start running based on the input automatically. You can also change all the input fields, like products, look at product photos, and more, to match your specific use case.

### 3. Receive the "HS codes for clothing: T-shirts, knit hats, dresses, scarves" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as ID, product, HS code, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "HS codes for clothing: T-shirts, knit hats, dresses, scarves" task via API](https://apify.com/reverent_magic/hs-code-classifier.md).

## About this Actor

This example demonstrates how to use [HS Code Classifier for Etsy & Shopify Products](https://apify.com/reverent_magic/hs-code-classifier.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/reverent_magic/hs-code-classifier.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/reverent_magic/hs-code-classifier.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
