Data Sources

GEThttps://api-tariff-codes.dataandapis.com/v1/sources

Data Sources is an endpoint of the Tariff Codes API. All 35,804 lines of the US Harmonized Tariff Schedule with duty rates, searchable.

Send your key in the X-Api-Key header. Each call costs 1 token; a free key includes 500 tokens a month.

Request

This endpoint takes no parameters.

Example request

curl
curl "https://api-tariff-codes.dataandapis.com/v1/sources" \
  -H "X-Api-Key: YOUR_API_KEY"
JavaScript / TypeScript (dataandapis package)
// npm install dataandapis
import { DataAndApis } from "dataandapis";

const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY

const data = await client.tariffCodes.dataSources();
Node.js (fetch)
const res = await fetch("https://api-tariff-codes.dataandapis.com/v1/sources", {
  headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();
Python (dataandapis package)
# pip install dataandapis
from dataandapis import DataAndApis

client = DataAndApis()  # reads DATAANDAPIS_API_KEY

data = client.tariff_codes.data_sources()
Python (requests)
import os, requests

r = requests.get(
    "https://api-tariff-codes.dataandapis.com/v1/sources",
    headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()

Guide to the dataandapis npm package →Guide to the dataandapis Python package →

Example response

Example response
{
  "ok": true,
  "sources": [
    {
      "slug": "usitc-hts",
      "name": "Harmonized Tariff Schedule of the United States",
      "publisher": "US International Trade Commission",
      "licence": "US government work (public domain)",
      "source_url": "https://hts.usitc.gov/",
      "file_url": "https://hts.usitc.gov/reststop/exportList?from=0101&to=9999&format=JSON&styles=false",
      "cadence": "revised ~10-15x/year; nightly re-sync",
      "record_count": 35804,
      "retrieved_at": "2026-09-06"
    }
  ]
}