In UN Comtrade website, you can go to List of References to view and download the relevant codes.
Alternatively, you can:
- Download this Excel reference file: UN Comtrade – Data Items and References
- View the list of reference tables through the following endpoints in the table below
- Refer to the Python package comtradeapicall (provided as is by the community)