Search Tariffs

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

Search Tariffs é um endpoint da Tariff Codes API. Todas as 35.804 linhas da Harmonized Tariff Schedule dos EUA com alíquotas, pesquisáveis.

Envie sua chave no header X-Api-Key. Cada chamada custa 1 token; uma chave gratuita inclui 500 tokens por mês.

Requisição

Parâmetros de consulta

ParâmetroExemplo
chapter85Opcional
codeOpcional
leaves_onlytrueOpcional
limit25Opcional
page1Opcional
qsmartphonesOpcional

Exemplo de requisição

curl
curl "https://api-tariff-codes.dataandapis.com/v1/tariffs?chapter=85&leaves_only=true&limit=25&page=1&q=smartphones" \
  -H "X-Api-Key: YOUR_API_KEY"
JavaScript / TypeScript (pacote dataandapis)
// npm install dataandapis
import { DataAndApis } from "dataandapis";

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

const data = await client.tariffCodes.searchTariffs({
  chapter: 85,
  leaves_only: true,
  limit: 25,
  page: 1,
  q: "smartphones",
});
Node.js (fetch)
const res = await fetch("https://api-tariff-codes.dataandapis.com/v1/tariffs?chapter=85&leaves_only=true&limit=25&page=1&q=smartphones", {
  headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();
Python (pacote dataandapis)
# pip install dataandapis
from dataandapis import DataAndApis

client = DataAndApis()  # reads DATAANDAPIS_API_KEY

data = client.tariff_codes.search_tariffs(
    chapter=85,
    leaves_only=True,
    limit=25,
    page=1,
    q="smartphones",
)
Python (requests)
import os, requests

r = requests.get(
    "https://api-tariff-codes.dataandapis.com/v1/tariffs?chapter=85&leaves_only=true&limit=25&page=1&q=smartphones",
    headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()

Guia do pacote npm dataandapis →Guia do pacote Python dataandapis →

Exemplo de resposta

Exemplo de resposta
{
  "ok": true,
  "page": 1,
  "limit": 5,
  "total": 15,
  "total_pages": 3,
  "tariffs": [
    {
      "seq": 27788,
      "htsno": "8517.13.00.00",
      "indent": 2,
      "description": "Smartphones",
      "context": "Telephone sets, including smartphones and other telephones for cellular networks or for other wireless networks; other apparatus for the transmission or reception of voice, images or other data, including apparatus for communication in a wired or wireless network (such as a local or wide area network), other than transmission or reception apparatus of heading 8443, 8525, 8527 or 8528; parts thereof > Telephone sets, including smartphones and other telephones for cellular networks or for other wireless networks",
      "chapter": "85",
      "is_leaf": true,
      "units": [
        "No."
      ],
      "general": "Free",
      "special": null,
      "other": "35%",
      "quota_quantity": null,
      "additional_duties": null,
      "footnotes": [],
      "updated_at": "2026-09-06 05:06:09"
    },
    {
      "seq": 27794,
…
Ver resposta completa
{
  "ok": true,
  "page": 1,
  "limit": 5,
  "total": 15,
  "total_pages": 3,
  "tariffs": [
    {
      "seq": 27788,
      "htsno": "8517.13.00.00",
      "indent": 2,
      "description": "Smartphones",
      "context": "Telephone sets, including smartphones and other telephones for cellular networks or for other wireless networks; other apparatus for the transmission or reception of voice, images or other data, including apparatus for communication in a wired or wireless network (such as a local or wide area network), other than transmission or reception apparatus of heading 8443, 8525, 8527 or 8528; parts thereof > Telephone sets, including smartphones and other telephones for cellular networks or for other wireless networks",
      "chapter": "85",
      "is_leaf": true,
      "units": [
        "No."
      ],
      "general": "Free",
      "special": null,
      "other": "35%",
      "quota_quantity": null,
      "additional_duties": null,
      "footnotes": [],
      "updated_at": "2026-09-06 05:06:09"
    },
    {
      "seq": 27794,
      "htsno": "8517.18.00.10",
      "indent": 3,
      "description": "Videophones",
      "context": "Telephone sets, including smartphones and other telephones for cellular networks or for other wireless networks; other apparatus for the transmission or reception of voice, images or other data, including apparatus for communication in a wired or wireless network (such as a local or wide area network), other than transmission or reception apparatus of heading 8443, 8525, 8527 or 8528; parts thereof > Telephone sets, including smartphones and other telephones for cellular networks or for other wireless networks > Other",
      "chapter": "85",
      "is_leaf": true,
      "units": [
        "No."
      ],
      "general": null,
      "special": null,
      "other": null,
      "quota_quantity": null,
      "additional_duties": null,
      "footnotes": [],
      "updated_at": "2026-09-06 05:06:09"
    },
    {
      "seq": 27796,
      "htsno": "8517.18.00.50",
      "indent": 3,
      "description": "Other",
      "context": "Telephone sets, including smartphones and other telephones for cellular networks or for other wireless networks; other apparatus for the transmission or reception of voice, images or other data, including apparatus for communication in a wired or wireless network (such as a local or wide area network), other than transmission or reception apparatus of heading 8443, 8525, 8527 or 8528; parts thereof > Telephone sets, including smartphones and other telephones for cellular networks or for other wireless networks > Other",
      "chapter": "85",
      "is_leaf": true,
      "units": [
        "No."
      ],
      "general": null,
      "special": null,
      "other": null,
      "quota_quantity": null,
      "additional_duties": null,
      "footnotes": [],
      "updated_at": "2026-09-06 05:06:09"
    },
    {
      "seq": 27787,
      "htsno": "8517.11.00.00",
      "indent": 2,
      "description": "Line telephone sets with cordless handsets",
      "context": "Telephone sets, including smartphones and other telephones for cellular networks or for other wireless networks; other apparatus for the transmission or reception of voice, images or other data, including apparatus for communication in a wired or wireless network (such as a local or wide area network), other than transmission or reception apparatus of heading 8443, 8525, 8527 or 8528; parts thereof > Telephone sets, including smartphones and other telephones for cellular networks or for other wireless networks",
      "chapter": "85",
      "is_leaf": true,
      "units": [
        "No."
      ],
      "general": "Free",
      "special": null,
      "other": "35%",
      "quota_quantity": null,
      "additional_duties": null,
      "footnotes": [],
      "updated_at": "2026-09-06 05:06:09"
    },
    {
      "seq": 27795,
      "htsno": "8517.18.00.20",
      "indent": 3,
      "description": "Multiline telephones (including key, call director and consoles)",
      "context": "Telephone sets, including smartphones and other telephones for cellular networks or for other wireless networks; other apparatus for the transmission or reception of voice, images or other data, including apparatus for communication in a wired or wireless network (such as a local or wide area network), other than transmission or reception apparatus of heading 8443, 8525, 8527 or 8528; parts thereof > Telephone sets, including smartphones and other telephones for cellular networks or for other wireless networks > Other",
      "chapter": "85",
      "is_leaf": true,
      "units": [
        "No."
      ],
      "general": null,
      "special": null,
      "other": null,
      "quota_quantity": null,
      "additional_duties": null,
      "footnotes": [],
      "updated_at": "2026-09-06 05:06:09"
    }
  ]
}