Skip to main content
POST
/
api
/
comtrade
/
commodities
/
search
/comtrade/commodities/search
curl --request POST \
  --url https://api.anysite.io/api/comtrade/commodities/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "classification": "H6",
  "keyword": "coffee",
  "code": "0901",
  "parent": "09"
}
'
[
  {
    "code": "<string>",
    "@type": "@comtrade_commodity",
    "text": "<string>",
    "parent": "<string>",
    "aggr_level": 123,
    "is_leaf": true,
    "standard_unit_abbr": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Number of commodities to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
classification
enum<string>
default:H6

Classification scheme whose commodity codes to search

Available options:
H0,
H1,
H2,
H3,
H4,
H5,
H6,
S1,
S2,
S3,
S4,
B4,
B5,
EB02,
EB10,
EB10S
keyword
string | null

Filter commodities whose description contains this text

Example:

"coffee"

code
string | null

Filter to a specific commodity code (exact match)

Example:

"0901"

parent
string | null

Filter to direct children of this parent commodity code

Example:

"09"

Response

Successful Response

code
string
required
@type
string
default:@comtrade_commodity
text
string | null
parent
string | null
aggr_level
integer | null
is_leaf
boolean | null
standard_unit_abbr
string | null