# HS Code Concordance - US, EU, Canada, Australia (`phonic_lily/customs-hs-code-concordance`) Actor

HS code concordance: one record per 6-digit HS code, with US, EU, Canada and Australia national tariff codes, descriptions and duty rates. Pay per record.

- **URL**: https://apify.com/phonic_lily/customs-hs-code-concordance.md
- **Developed by:** [Henri bousquet](https://apify.com/phonic_lily) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 record returneds

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/running/actors-in-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

## HS Code Concordance - US, EU, Canada, Australia

HS code concordance: one record per 6-digit HS code, with US, EU, Canada and Australia national tariff codes, descriptions and duty rates. Pay per record.

**No scraping, no live dependency, no login**: the data is embedded in the Actor and searched locally. You pay per record returned (pay-per-event `hs6-concordance-result`), never for empty runs.

### What you get

- 5,612 records, snapshot 2026-07 (UK quotas fetched 2026-07-30).
- Source licence: Mixed, per jurisdiction: US public domain (USITC); EU CC BY 4.0 (DG TAXUD); Canada Reproduction of Federal Law Order SI/97-5 (CBSA, unofficial copy); Australia CC BY 3.0 AU (ABF); UK quota codes OGL v3.0 (HMRC).
- 6 input filters, all optional and combinable; results export as JSON, CSV, Excel, XML or HTML from the console or the API.

### Quick start

Press **Try for free** with the pre-filled input, or paste it into the Input tab:

```json
{
  "maxResults": 10
}
```

That run returns up to 10 records and costs about $0.04 (10 x $0.004). A run of 1,000 records costs $4.00. `maxResults` (up to 10,000) caps both the output and the bill.

### Example output

One real record from the data, columns as returned:

```json
{
  "hs6": "010229",
  "hs2": "01",
  "hs4": "0102",
  "jurisdictions": [
    "us",
    "eu",
    "ca",
    "au"
  ],
  "jurisdictions_count": 4,
  "us_codes": [
    {
      "code": "0102.29.20",
      "description": "Cows imported specially for dairy purposes",
      "general_rate": "Free"
    },
    {
      "code": "0102.29.40",
      "description": "Other",
      "general_rate": "1¢/kg"
    }
  ],
  "eu_codes": [
    {
      "code": "0102290000",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102290500",
      "description": null,
      "general_rate": "0.000 %"
    },
    {
      "code": "0102291000",
      "description": null,
      "general_rate": "10.200 % + 93.100 EUR DTN"
    },
    {
      "code": "0102291010",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102291020",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102291030",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102291040",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102291050",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102292100",
      "description": null,
      "general_rate": "10.200 % + 93.100 EUR DTN"
    },
    {
      "code": "0102292900",
      "description": null,
      "general_rate": "10.200 % + 93.100 EUR DTN"
    },
    {
      "code": "0102292910",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102292920",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102292930",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102292940",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102292950",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102294100",
      "description": null,
      "general_rate": "10.200 % + 93.100 EUR DTN"
    },
    {
      "code": "0102294900",
      "description": null,
      "general_rate": "10.200 % + 93.100 EUR DTN"
    },
    {
      "code": "0102294910",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102294920",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102294930",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102294940",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102294950",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102295100",
      "description": null,
      "general_rate": "10.200 % + 93.100 EUR DTN"
    },
    {
      "code": "0102295110",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102295190",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102295900",
      "description": null,
      "general_rate": "10.200 % + 93.100 EUR DTN"
    },
    {
      "code": "0102295911",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102295919",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102295921",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102295929",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102295931",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102295939",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102295991",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102295999",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102296100",
      "description": null,
      "general_rate": "10.200 % + 93.100 EUR DTN"
    },
    {
      "code": "0102296900",
      "description": null,
      "general_rate": "10.200 % + 93.100 EUR DTN"
    },
    {
      "code": "0102296910",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102296920",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102296930",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102299100",
      "description": null,
      "general_rate": "10.200 % + 93.100 EUR DTN"
    },
    {
      "code": "0102299110",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102299190",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102299900",
      "description": null,
      "general_rate": "10.200 % + 93.100 EUR DTN"
    },
    {
      "code": "0102299921",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102299929",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102299991",
      "description": null,
      "general_rate": null
    },
    {
      "code": "0102299999",
      "description": null,
      "general_rate": null
    }
  ],
  "ca_codes": [
    {
      "code": "0102.29.00",
      "statistical_suffix": null,
      "description": "Live bovine animals. - Cattle: - Other",
      "general_rate": "Free"
    },
    {
      "code": "0102.29.00",
      "statistical_suffix": "10",
      "description": "Live bovine animals. - Cattle: - Other - Dairy",
      "general_rate": "Free"
    },
    {
      "code": "0102.29.00",
      "statistical_suffix": "90",
      "description": "Live bovine animals. - Cattle: - Other - Other",
      "general_rate": "Free"
    }
  ],
  "au_codes": [
    {
      "code": "0102.29.00",
      "statistical_code": "03",
      "description": "-- Other",
      "general_rate": "Free"
    }
  ],
  "uk_quota_codes": [
    {
      "code": "0102294100",
      "quota_order_numbers": [
        "050146"
      ]
    },
    {
      "code": "0102294900",
      "quota_order_numbers": [
        "050146"
      ]
    },
    {
      "code": "0102295100",
      "quota_order_numbers": [
        "050146"
      ]
    },
    {
      "code": "0102295110",
      "quota_order_numbers": [
        "050341",
        "050345",
        "050347"
      ]
    },
    {
      "code": "0102295900",
      "quota_order_numbers": [
        "050146"
      ]
    },
    {
      "code": "0102295911",
      "quota_order_numbers": [
        "050341",
        "050345",
        "050347"
      ]
    },
    {
      "code": "0102295921",
      "quota_order_numbers": [
        "050341",
        "050345",
        "050347"
      ]
    },
    {
      "code": "0102295931",
      "quota_order_numbers": [
        "050341",
        "050345",
        "050347"
      ]
    },
    {
      "code": "0102295991",
      "quota_order_numbers": [
        "050341",
        "050345",
        "050347"
      ]
    },
    {
      "code": "0102296100",
      "quota_order_numbers": [
        "050146"
      ]
    },
    {
      "code": "0102296900",
      "quota_order_numbers": [
        "050146"
      ]
    },
    {
      "code": "0102299100",
      "quota_order_numbers": [
        "050146"
      ]
    },
    {
      "code": "0102299110",
      "quota_order_numbers": [
        "050341",
        "050345",
        "050347"
      ]
    },
    {
      "code": "0102299900",
      "quota_order_numbers": [
        "050146"
      ]
    },
    {
      "code": "0102299921",
      "quota_order_numbers": [
        "050341",
        "050345",
        "050347"
      ]
    },
    {
      "code": "0102299991",
      "quota_order_numbers": [
        "050341",
        "050345",
        "050347"
      ]
    }
  ]
}
```

### Input

Every filter is optional; combine them freely.

- `hsPrefix` (string): HS code prefix. HS chapter (2 digits), heading (4 digits) or full HS6 (6 digits), e.g. 85, 8517 or 851762. Dots and spaces are ignored. Matches the start of the HS6 code.
- `query` (string): Description text. Word or phrase searched in the national descriptions (US, Canada, Australia; EU codes carry no description). Accent- and case-insensitive.
- `jurisdictions` (array): Jurisdictions required. Keep only HS6 codes present in ALL the listed jurisdictions. Values: us, eu, ca, au.
- `minJurisdictions` (number): Minimum jurisdictions present (1-4). Keep only HS6 codes present in at least this many of the 4 jurisdictions (US, EU, Canada, Australia).
- `maxJurisdictions` (number): Maximum jurisdictions present (1-4). Keep only HS6 codes present in at most this many of the 4 jurisdictions.
- `sortBy` (string): Sort by. Sort order of results. Default: file order (or distance when a radius is given).
- `maxResults` (integer): Max results. Maximum records returned and billed (1..10000).

### Output fields

- `hs6` : 6-digit Harmonized System code.
- `hs2` : HS chapter (first 2 digits).
- `hs4` : HS heading (first 4 digits).
- `jurisdictions` : Jurisdictions with at least one national tariff line under this HS6: us, eu, ca, au.
- `jurisdictions_count` : Number of jurisdictions present (1 to 4); the UK is not counted.
- `us_codes` : US HTS lines: code, description, general_rate. Null when absent.
- `eu_codes` : EU TARIC 10-digit codes: code, description (always null, not in the source), general_rate (third-country duty as published, with dates when several periods). Null when absent.
- `ca_codes` : Canada Customs Tariff items: code, statistical_suffix, description, general_rate (MFN). Null when absent.
- `au_codes` : Australia Working Tariff codes: code, statistical_code, description, general_rate. Null when absent.
- `uk_quota_codes` : Informational, not counted: UK commodity codes covered by a tariff quota under this HS6 (code, quota_order_numbers). Null when none.

Every record also carries `license` and `attribution` so you can republish with the required credit. Empty values are returned as `null` (never as 0).

### Call it from code

```python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("phonic_lily/customs-hs-code-concordance").call(run_input={"maxResults": 10})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

```bash
curl -X POST "https://api.apify.com/v2/acts/phonic_lily~customs-hs-code-concordance/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" -d '{"maxResults": 10}'
```

### FAQ

**Where does the data come from?** One record per 6-digit Harmonized System (HS6) code, built by grouping the national tariff lines of four jurisdictions on their first six digits. A jurisdiction is present when at least one of its tariff lines starts with that HS6. National codes can differ by HS revision year, so a missing jurisdiction means no line in the embedded data, not proof that the code does not exist there.

Measured on this snapshot: 5,612 HS6 codes. By number of jurisdictions present (US, EU, Canada, Australia): 4 jurisdictions = 4,685 codes; 3 = 919; 2 = 8; 1 = 0. HS6 codes present per jurisdiction: US 5,612; Canada 5,612; EU 5,398; Australia 4,891.

Sources and licences:

- United States: HTS lines (code, description, general duty rate). USITC, public domain.
- European Union: TARIC 10-digit codes that carry at least one measure in the extract. DG TAXUD, CC BY 4.0 (Decision 2011/833/EU), changes made. The source gives NO description for a TARIC code, so the EU description is null. general_rate is the erga omnes third-country import duty as published (several dated periods are all listed); null when the extract holds no such duty for the code.
- Canada: Customs Tariff items with the statistical suffix and the MFN rate. CBSA, Reproduction of Federal Law Order SI/97-5; not an official version.
- Australia: Working Tariff (Schedule 3) codes with statistical code and rate. Australian Border Force, CC BY 3.0 Australia, changes made.
- United Kingdom: not a concordance jurisdiction here. The only UK code field available is the list of commodity codes covered by a tariff quota (HMRC, OGL v3.0), which is not the full nomenclature, so the UK is not counted in jurisdictions_count. Those codes are returned for information in uk_quota_codes (code and quota order numbers) when the HS6 has some.

There is no HS6-level description field: the sources only describe national lines, so each description stays with its own national code. Informational only; the official national tariffs prevail. Null means the source gives no value; it is never 0.

**How fresh is it?** Snapshot 2026-07 (UK quotas fetched 2026-07-30). The data is embedded in the Actor and updated when the publisher rebuilds it, so a run never depends on a live source and never fails because a site is down.

**What does a run cost?** $0.004 per returned record, nothing for runs that return no record. Apify free plan credit ($5) covers about 1,250 records.

**Do I need a proxy, an account on the source or a browser?** No: the Actor reads its own embedded file.

### Data and licence

One record per 6-digit Harmonized System (HS6) code, built by grouping the national tariff lines of four jurisdictions on their first six digits. A jurisdiction is present when at least one of its tariff lines starts with that HS6. National codes can differ by HS revision year, so a missing jurisdiction means no line in the embedded data, not proof that the code does not exist there.

Measured on this snapshot: 5,612 HS6 codes. By number of jurisdictions present (US, EU, Canada, Australia): 4 jurisdictions = 4,685 codes; 3 = 919; 2 = 8; 1 = 0. HS6 codes present per jurisdiction: US 5,612; Canada 5,612; EU 5,398; Australia 4,891.

Sources and licences:

- United States: HTS lines (code, description, general duty rate). USITC, public domain.
- European Union: TARIC 10-digit codes that carry at least one measure in the extract. DG TAXUD, CC BY 4.0 (Decision 2011/833/EU), changes made. The source gives NO description for a TARIC code, so the EU description is null. general_rate is the erga omnes third-country import duty as published (several dated periods are all listed); null when the extract holds no such duty for the code.
- Canada: Customs Tariff items with the statistical suffix and the MFN rate. CBSA, Reproduction of Federal Law Order SI/97-5; not an official version.
- Australia: Working Tariff (Schedule 3) codes with statistical code and rate. Australian Border Force, CC BY 3.0 Australia, changes made.
- United Kingdom: not a concordance jurisdiction here. The only UK code field available is the list of commodity codes covered by a tariff quota (HMRC, OGL v3.0), which is not the full nomenclature, so the UK is not counted in jurisdictions_count. Those codes are returned for information in uk_quota_codes (code and quota order numbers) when the HS6 has some.

There is no HS6-level description field: the sources only describe national lines, so each description stays with its own national code. Informational only; the official national tariffs prevail. Null means the source gives no value; it is never 0.

Snapshot date: 2026-07 (UK quotas fetched 2026-07-30).

# Actor input Schema

## `hsPrefix` (type: `string`):

HS chapter (2 digits), heading (4 digits) or full HS6 (6 digits), e.g. 85, 8517 or 851762. Dots and spaces are ignored. Matches the start of the HS6 code.

## `query` (type: `string`):

Word or phrase searched in the national descriptions (US, Canada, Australia; EU codes carry no description). Accent- and case-insensitive.

## `jurisdictions` (type: `array`):

Keep only HS6 codes present in ALL the listed jurisdictions. Values: us, eu, ca, au.

## `minJurisdictions` (type: `number`):

Keep only HS6 codes present in at least this many of the 4 jurisdictions (US, EU, Canada, Australia).

## `maxJurisdictions` (type: `number`):

Keep only HS6 codes present in at most this many of the 4 jurisdictions.

## `sortBy` (type: `string`):

Sort order of results. Default: file order (or distance when a radius is given).

## `maxResults` (type: `integer`):

Maximum records returned and billed (1..10000).

## Actor input object example

```json
{
  "maxResults": 10
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset items returned by the run.

# 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 = {
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("phonic_lily/customs-hs-code-concordance").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 = { "maxResults": 10 }

# Run the Actor and wait for it to finish
run = client.actor("phonic_lily/customs-hs-code-concordance").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 '{
  "maxResults": 10
}' |
apify call phonic_lily/customs-hs-code-concordance --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,phonic_lily/customs-hs-code-concordance"
        }
    }
}
```

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/YGWXN9i2cuwO8bpp2/builds/GPhQZGLaMEc2d3I0U/openapi.json
