Skip to main content
POST
/
api
/
comtrade
/
partners
/comtrade/partners
curl --request POST \
  --url https://api.anysite.io/api/comtrade/partners \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "keyword": "china"
}
'
[
  {
    "code": "<string>",
    "@type": "@comtrade_partner",
    "name": "<string>",
    "iso2": "<string>",
    "iso3": "<string>",
    "entry_effective_date": "<string>",
    "entry_expired_date": "<string>",
    "is_group": true,
    "note": "<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 partners to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
keyword
string | null

Filter partners whose name contains this text

Example:

"china"

Response

Successful Response

code
string
required
@type
string
default:@comtrade_partner
name
string | null
iso2
string | null
iso3
string | null
entry_effective_date
string | null
entry_expired_date
string | null
is_group
boolean | null
note
string | null