Discover/wcotradetools.org API
live

wcotradetools.org APIwww.wcotradetools.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.

Endpoints
4
Updated
11d ago
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.
Use it in your codegrab 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'
All endpoints · 4 totalclick to expand

List all 21 HS 2022 sections with their Roman numeral codes and descriptions.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "total": "integer count of sections",
    "sections": "array of objects each containing section_code (Roman numeral) 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 wcotradetools.org 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.

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.

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,000250 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 www.wcotradetools.org.
Related APIs in Government PublicSee all →
identify.plantnet.org API
Identify and explore plant species by searching through Pl@ntNet's comprehensive botanical database to access detailed information like taxonomic families, genera, species descriptions, photos, and community observations. Track plant distributions, view contribution trends, and discover expert contributors within the platform's collaborative plant identification community.
data.lime.bike API
Access real-time availability data for Lime bikes and scooters, including station locations, vehicle status, system alerts, and geofencing zones across multiple cities. Monitor micromobility inventory and service information to find nearby vehicles or plan your trips effectively.
accessdata.fda.gov API
Search and retrieve comprehensive FDA premarket approval information for medical devices, including approval status, supplements, applicant details, and advisory committee data. Get instant access to specific PMA records with all relevant approval information in one place.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
cmegroup.com API
Get CME Group market data including FedWatch interest-rate probabilities, futures quotes and settlements, volume/open interest history, and options expirations and near-the-money option chains.
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.
mahatenders.gov.in API
Access Maharashtra government tenders from mahatenders.gov.in, browsing them by closing date or by organization with full tender details and pagination support. Find and review procurement opportunities across different government departments in one place.