Discover/WCO Trade Tools API
live

WCO Trade Tools APIwcotradetools.org

Access the full HS 2022 classification hierarchy — 21 sections, chapters, headings, and subheadings — via 4 endpoints. Search by keyword or browse by section and chapter.

Endpoint health
verified 7d ago
get_chapters
get_sections
search_hs_codes
get_headings_and_subheadings
4/4 passing latest checkself-healing
Endpoints
4
Updated
22d ago

What is the WCO Trade Tools API?

This API exposes the complete WCO Harmonized System 2022 classification hierarchy across 4 endpoints, covering all 21 sections, their chapters, 4-digit headings, and 6-digit subheadings. Use get_sections to retrieve every section with its Roman numeral code, or search_hs_codes to find matching codes by keyword or partial code string. Every record carries full hierarchy context — section, chapter, heading, and subheading — in a flat, normalized structure ready for database ingestion.

Try it

No input parameters required.

api.parse.bot/scraper/9993404f-cb0d-4550-81ef-69696fd6c8fd/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/9993404f-cb0d-4550-81ef-69696fd6c8fd/get_sections' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace wcotradetools-org-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.hs_2022_classification_api import HSClassification, Section, Chapter, ClassificationRecord, ClassificationMatch, SectionCode

client = HSClassification()

# List all HS 2022 sections
for section in client.sections.list():
    print(section.section_code, section.section_description)

# Navigate from a specific section to its chapters using the enum
animal_section = client.section(SectionCode.I)
for chapter in animal_section.chapters():
    print(chapter.chapter_code, chapter.chapter_description)

# Get detailed headings and subheadings for a chapter
for chapter in animal_section.chapters(limit=1):
    for record in chapter.headings(section_code=SectionCode.I):
        print(record.heading_code, record.heading_description, record.subheading_code, record.subheading_description)

# Search for HS codes by keyword
for match in client.classificationmatches.search(query="coffee"):
    print(match.type, match.code, match.path, match.excerpt)
All endpoints · 4 totalmissing one? ·

List all 21 HS 2022 sections with their Roman numeral codes and descriptions. Returns the complete top-level classification hierarchy. No pagination — always returns all 21 sections in one response.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "total": "integer count of sections",
    "sections": "array of section objects with section_code and section_description"
  },
  "sample": {
    "data": {
      "total": 21,
      "sections": [
        {
          "section_code": "I",
          "section_description": "LIVE ANIMALS; ANIMAL PRODUCTS"
        },
        {
          "section_code": "II",
          "section_description": "VEGETABLE PRODUCTS"
        }
      ]
    },
    "status": "success"
  }
}

About the WCO Trade Tools API

Browsing the HS 2022 Hierarchy

get_sections returns all 21 HS 2022 sections as an array, each with a section_code (Roman numeral, e.g. I, XIV) and a section_description. From there, get_chapters accepts a section_code and returns all 2-digit chapter_code values within that section, plus the parent section's description repeated on each record for easy joining. This top-down traversal maps cleanly to a relational schema.

Headings and Subheadings

get_headings_and_subheadings takes a chapter_code (1- or 2-digit; leading zeros are normalized) and an optional section_code. Providing section_code narrows the search scope and reduces response time; omitting it causes all 21 sections to be searched. Each record in the records array contains section_code, section_description, chapter_code, chapter_description, heading_code (4-digit), and subheading_code (6-digit) alongside their descriptions, giving you the full ancestry in a single flat row.

Keyword and Code Search

search_hs_codes accepts a free-text query — a commodity name like coffee or a partial code like 0901 — and returns up to 10 results. Each result includes a type field indicating whether the match is at the section, chapter, heading, or subheading level, the matching code, a path string showing the breadcrumb hierarchy, and an excerpt. This makes it suitable for autocomplete fields in customs declaration or ERP interfaces where users type a description and need a code suggestion.

Reliability & maintenanceVerified

The WCO Trade Tools API is a managed, monitored endpoint for wcotradetools.org — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when wcotradetools.org changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official wcotradetools.org API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
7d ago
Latest check
4/4 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Populate a product catalog with official 6-digit HS subheading codes for cross-border shipping compliance
  • Build an autocomplete field for customs declaration forms using search_hs_codes results
  • Seed a trade compliance database with the full HS 2022 section-to-subheading hierarchy from get_headings_and_subheadings
  • Validate user-submitted HS codes by checking them against the canonical chapter and heading structure
  • Generate a browsable tariff-classification reference by chaining get_sectionsget_chaptersget_headings_and_subheadings
  • Map product SKUs to HS headings for duty-rate estimation in an e-commerce checkout flow
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does WCO Trade Tools have an official developer API?+
WCO Trade Tools does not publish a documented public developer API. The data on wcotradetools.org is intended for manual look-up in a browser. This Parse API provides structured programmatic access to that classification data.
What does `get_headings_and_subheadings` return, and why is `section_code` optional?+
It returns a flat array of records, each containing the full hierarchy: section_code, section_description, chapter_code, chapter_description, heading_code (4-digit), and subheading_code (6-digit) with descriptions. The section_code parameter is optional — omitting it causes the API to search all 21 sections to locate the chapter, which is noticeably slower. Supplying it keeps the lookup scoped and faster.
How many results does `search_hs_codes` return, and can it search by numeric code?+
It returns up to 10 results per query. It accepts both keyword strings (e.g. live animals) and numeric code strings (e.g. 0901). Each result includes a type field (section, chapter, heading, or subheading) and a path breadcrumb so you can see where in the hierarchy the match falls. Pagination beyond 10 results is not currently supported; you can fork this API on Parse and revise it to add offset-based pagination.
Does the API cover HS editions other than 2022, such as HS 2017 or HS 2012?+
Not currently. All four endpoints reflect the HS 2022 edition only. You can fork this API on Parse and revise it to target a different edition's data if your classification workflow requires an earlier nomenclature.
Are notes and legal texts for sections or chapters included in the responses?+
Not currently. The API returns codes and descriptions across all hierarchy levels but does not include the legal section notes, chapter notes, or explanatory notes published alongside the HS nomenclature. You can fork this API on Parse and revise it to add an endpoint that retrieves those note texts.
Page content last updated . Spec covers 4 endpoints from wcotradetools.org.
Related APIs in Government PublicSee all →
tradestat.commerce.gov.in API
Analyze India's trade patterns by searching export-import data across commodities, countries, and regions using HS codes and historical records. Track bilateral trade flows and commodity-wise statistics to understand market trends and make informed trade decisions.
beta.trademap.org API
Analyze international trade patterns by accessing comprehensive goods and services trade statistics, time series data, and trade indicators across countries and product classifications. Track trade flows using standardized HS and EBOPS product codes to compare performance metrics and coverage across different markets and time periods.
volza.com API
Access global import/export trade data from Volza.com. Search products by keyword to discover HS/HSN codes with shipment volumes, then drill into buyers, suppliers, and company profiles for any product category.
trademo.com API
Access comprehensive global trade data to search companies, find manufacturers by country, and review detailed trade profiles, sanctions lists, and politically exposed persons (PEP) lists. Monitor global trade indices and build a complete directory of international trading partners and compliance information.
naics.com API
Find NAICS industry classification codes and their detailed descriptions by searching keywords or browsing all available codes to identify the right sector and industry classification for your business. Get comprehensive information including code numbers, sector titles, and related industry details to ensure accurate business categorization.
wits.worldbank.org API
Access comprehensive trade statistics, tariffs, and development indicators for countries worldwide through the World Bank's WITS platform. Look up country trade profiles, compare bilateral trade relationships between partners, and analyze key metrics including export/import volumes, tariff rates, GDP, and FDI. Ideal for researching international commerce, trade policy, and economic indicators across any country or region.
trademap.org API
Access comprehensive global trade statistics including bilateral trade flows, product exports by country, and historical trade indicators to analyze international commerce trends. Monitor trade data availability and retrieve time series information to track how specific products and countries perform in the global market.
aapc.com API
Access comprehensive medical coding information including CPT, ICD-10-CM, ICD-10-PCS, and HCPCS codes with detailed hierarchies, sections, and code-specific details. Search across all medical coding systems to find the exact codes and their descriptions for billing, documentation, and compliance purposes.