# US Section 301 / Chapter 99 Additional Duties Lookup (`toolman98/us-section-301-duties`) Actor

Official USITC HTS API lookup of Section 301 China Tariffs (Lists 1–4A) and Section 232 steel, aluminum, and copper Chapter 99 additional duties, plus base MFN rates. No API key, zero proxy cost. Ideal for landed-cost calculators and AI trade agents.

- **URL**: https://apify.com/toolman98/us-section-301-duties.md
- **Developed by:** [顾 骥仁](https://apify.com/toolman98) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 additional duty lookups

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## US Section 301 / Chapter 99 Additional Duties Lookup

Look up **live U.S. additional duties** that generic HTS rate tools routinely miss: **Section 301 China Tariffs** and **Section 232** steel, aluminum and copper measures, encoded as Chapter 99 headings (for example `9903.88.01`, `9903.88.15`, `9903.82.02`). Give the Actor an 8- or 10-digit U.S. HTS code and a country of origin and get clean JSON: the official base (MFN) rate, every applicable Chapter 99 heading, the live additional-duty text from the USITC, and a parsed additional-percent estimate.

No API key, no browser, no residential proxies. The Actor is a thin, rate-limited client over the official [USITC Harmonized Tariff Schedule reststop API](https://hts.usitc.gov/) and the official **China Tariffs** mapping PDF.

**Built for:** U.S. importers, customs brokers, freight forwarders, Amazon / Shopify / DTC sellers, landed-cost and duty-drawback engines, trade-compliance teams, and AI agents that need a reliable “if I import this HTS code from China / Germany / Vietnam, which additional Chapter 99 duties apply?” answer.

### Why this Actor (not another generic HTS lookup)

A base HTS line such as `6109.10.00` shows a **16.5%** general (MFN) rate and often **no footnote** pointing at Chapter 99. The additional Section 301 duty lives on a *different* heading (`9903.88.15`, List 4A, currently **+7.5%**) and is recorded in the official USITC **China Tariffs** PDF, not on the Chapter 61 page. Steel pipe `7304.41.30` can stack **Section 301 + Section 232** (U.S. note 16 / `9903.82.02`). Generic “look up this HTS code” tools that only return `general` / `special` / `other` understate landed cost by 7.5–50+ percentage points.

This Actor:

- Resolves the current official HTS release from [`/reststop/currentRelease`](https://hts.usitc.gov/reststop/currentRelease) (with `releaseList` and a pinned fallback).
- Looks up the **base HTS tariff line** (`general`, `special`, `other`, footnotes) via the official search / rates JSON.
- Maps the 8-digit subheading through the official **China Tariffs** PDF (Section 301 Lists 1 / 2 / 3 / 4A and later U.S. note 31 headings such as `9903.91.*`) — **only for origin `CN`**.
- Cross-checks **U.S. note 16** in the official Chapter 99 notes for Section 232 steel, aluminum and copper enumerations, then selects the origin-aware Chapter 99 heading (general `9903.82.02` +50%, United Kingdom `9903.82.04` +25%, Russia aluminum `9903.85.67` / `9903.85.68` +200%, and so on).
- Also scans base-line footnotes for explicit `9903.xx.xx` citations.
- Re-fetches each matching Chapter 99 heading from the live USITC search API so **duty rates and heading text stay current**.
- Accepts a `9903.*` code directly when you want the heading itself.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `htsCodes` | string\[] | `["6109.10.00", "8504.40.95", "7304.41.30"]` | 8- or 10-digit U.S. HTS codes (dots optional), or a Chapter 99 heading such as `9903.88.01`. |
| `originCountry` | string | `"CN"` | ISO 3166-1 alpha-2 origin. Section 301 applies only to `CN`. Use `GB` or `UK` for United Kingdom Section 232 treatment. |
| `includeBaseDuty` | boolean | `true` | Include official general / special / other rates and footnotes. |
| `includeChapter99Details` | boolean | `true` | Include the full Chapter 99 match list with live rate text. |

#### Example input

```json
{
  "htsCodes": ["6109.10.00", "8504.40.95", "7304.41.30"],
  "originCountry": "CN",
  "includeBaseDuty": true,
  "includeChapter99Details": true
}
```

A Germany-origin run of the same steel pipe (`7304.41.30`, `originCountry: "DE"`) still returns the Section 232 additional duty, but **does not** attach Section 301 China Tariffs.

### Example output

One dataset item (abridged) for cotton T-shirts of HTS `6109.10.00` from China:

```json
{
  "htsCode": "6109.10.00",
  "hts8": "6109.10.00",
  "originCountry": "CN",
  "description": "T-shirts, singlets, tank tops and similar garments, knitted or crocheted — Of cotton",
  "baseDuty": {
    "general": "16.5%",
    "special": "Free (AU,BH,CL,CO,IL,JO,KR,MA,OM,P,PA,PE,S,SG)",
    "other": "90%",
    "footnotes": []
  },
  "section301Applicable": true,
  "section301Lists": ["List 4A (9903.88.15)"],
  "section301AdditionalRate": 7.5,
  "section232Applicable": false,
  "chapter99Matches": [
    {
      "hts99Code": "9903.88.15",
      "program": "Section 301 — List 4A (9903.88.15)",
      "additionalDutyText": "The duty provided in the applicable subheading + 7.5%",
      "additionalDutyPercent": 7.5,
      "description": "articles the product of China, as provided for in U.S. note 20(r) …",
      "matchSource": "china_tariffs_pdf"
    }
  ],
  "estimatedTotalAdditionalPercent": 7.5,
  "htsRelease": "2026HTSRev23",
  "officialUrl": "https://hts.usitc.gov/search?query=6109.10.00",
  "disclaimer": "Informational only based on official USITC HTS data; not formal customs or legal advice. Verify exclusions and current Federal Register notices before filing.",
  "fetchedAt": "2026-12-03T01:40:00Z"
}
```

For stainless steel pipes `7304.41.30` of China origin, the same run typically returns **both** List 4A (`9903.88.15`, +7.5%) and Section 232 / U.S. note 16 (`9903.82.02`, currently +50%) — an estimated **57.5%** of additional ad valorem duty on top of the base rate.

`estimatedTotalAdditionalPercent` is the field AI agents should add to the base MFN rate for a first-pass landed-cost estimate. It only sums rates that parse cleanly as “plus X%”. Exclusions, quota-limited USMCA melt-and-pour headings, end-use provisions and goods whose metal content is under the 15% threshold for certain derivative lists are **not** auto-applied; read `disclaimer` and the official heading text.

### Use cases

- Landed-cost and duty-engine calculations that must include Section 301 and Section 232, not just the Column 1 general rate.
- Pre-entry checks and “what if I shift origin from CN to VN / DE?” comparisons (Section 301 drops; Section 232 may remain).
- Trade-compliance and broker workflows that need the exact Chapter 99 heading to put on the entry.
- AI trade agents and ERP connectors that want structured, official, no-key JSON rather than a 200-page PDF.

### Pricing suggestion (Pay-Per-Event)

Recommended primary event: **`additional-duty-lookup` at $0.015** per successfully written dataset row (one HTS code × one origin).

- The default three-code China-origin snapshot is 3 rows (~$0.045 list price) and finishes in well under a minute at 512 MB.
- Platform compute is a fraction of a cent (official JSON + one ~0.4 MB PDF + Chapter 99 notes). After Apify’s 20% platform share, gross margin per lookup is high.
- Rows are only charged when they are actually written. Cached official files are reused for every code in the same run.

Set this in **Apify Console → Publishing → Monetization** (not in the source). Keep `apify-actor-start` at $0 or a negligible amount so AI agents can try the default input cheaply.

### Source, licence and limits

- Official HTS search, rates, current release and files: [hts.usitc.gov/reststop](https://hts.usitc.gov/reststop/currentRelease).
- Section 301 mapping: official USITC **China Tariffs** PDF for the current HTS release (`/reststop/file?filename=China+Tariffs&release=…`).
- Section 232 coverage: official Chapter 99 **U.S. note 16** lists (articles of steel, aluminum and copper and their derivative lists) via `/reststop/getChapterNotes?doc=99`.
- Data are U.S. Government works published by the USITC. Attribute “U.S. International Trade Commission, Harmonized Tariff Schedule”.
- **This Actor is informational only and is not formal customs or legal advice.** Product exclusions, expired / future-dated headings, Federal Register notices, country-of-origin / melt-and-pour rules, USMCA quota headings, and CBP classification all affect the duty actually assessed. Confirm with CBP or licensed counsel before filing.
- Section 301 mappings are applied only when `originCountry` is `CN` (not `HK` or `MO`).
- Results are public tariff data, not personal data.

### Local development

```bash
python3 -m venv /tmp/venv-us-301
source /tmp/venv-us-301/bin/activate
pip install -r requirements.txt

## Default input (three China-origin demonstration codes)
mkdir -p /tmp/storage-us-301/key_value_stores/default
printf '%s\n' '{"htsCodes":["6109.10.00","8504.40.95","7304.41.30"],"originCountry":"CN"}' \
  > /tmp/storage-us-301/key_value_stores/default/INPUT.json
APIFY_LOCAL_STORAGE_DIR=/tmp/storage-us-301 python -m src
```

Dataset items are written to `<storage>/datasets/default/`. Keep local Apify storage directories and virtualenvs out of the clean source tree.

To publish for the `toolman98` account, install the [Apify CLI](https://docs.apify.com/cli), run `apify login`, then `apify push` from this directory (or connect the GitHub repo in Console). Turn on monetization and complete KYC before making the Actor public.

# Actor input Schema

## `htsCodes` (type: `array`):

8- or 10-digit U.S. HTS codes (dots optional), e.g. "6109.10.00", "8504.40.95", "7304.41.30", "6109100012". You can also pass a Chapter 99 heading directly (e.g. "9903.88.01") to retrieve that additional-duty provision's live text and rate.

## `originCountry` (type: `string`):

ISO 3166-1 alpha-2 origin code. Section 301 China Tariffs mappings are applied only when this is CN. Section 232 / U.S. note 16 steel, aluminum and copper additional duties are origin-aware (e.g. general, United Kingdom, Russia). Use GB or UK for the United Kingdom.

## `includeBaseDuty` (type: `boolean`):

If enabled (the default), each record includes the official general (MFN), special and other rates plus any footnotes on the base HTS line.

## `includeChapter99Details` (type: `boolean`):

If enabled (the default), each record includes the list of matching Chapter 99 headings with live additional-duty text, parsed percent, official description and the source of the match (China Tariffs PDF, U.S. note 16, or a base-line footnote).

## Actor input object example

```json
{
  "htsCodes": [
    "6109.10.00",
    "8504.40.95",
    "7304.41.30"
  ],
  "originCountry": "CN",
  "includeBaseDuty": true,
  "includeChapter99Details": true
}
```

# Actor output Schema

## `lookups` (type: `string`):

Per-code official USITC base duty and Chapter 99 additional-duty matches.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "htsCodes": [
        "6109.10.00",
        "8504.40.95",
        "7304.41.30"
    ],
    "originCountry": "CN"
};

// Run the Actor and wait for it to finish
const run = await client.actor("toolman98/us-section-301-duties").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "htsCodes": [
        "6109.10.00",
        "8504.40.95",
        "7304.41.30",
    ],
    "originCountry": "CN",
}

# Run the Actor and wait for it to finish
run = client.actor("toolman98/us-section-301-duties").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "htsCodes": [
    "6109.10.00",
    "8504.40.95",
    "7304.41.30"
  ],
  "originCountry": "CN"
}' |
apify call toolman98/us-section-301-duties --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,toolman98/us-section-301-duties"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/DJeOhhMrJr9sIEZ8G/builds/pMno5lpxT7YXqRj54/openapi.json
