Skip to main content
POST
Reference example

Request contract

  • Method and path: POST /apis/v1/trade/stats/query
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/trade/stats/query
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Published reference price: $0.1 USD per successful request. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
company
string
required
Required string length: 2 - 200
basis
enum<string>[]
Required array length: 1 - 2 elements
Available options:
official,
records
exporter_country
string
Required string length: 2 - 80
hs_code
string
Required string length: 2 - 10
Pattern: ^[0-9]{2,10}$
importer_country
string
Required string length: 2 - 80
product
string
Required string length: 2 - 100
role
enum<string>
Available options:
exporter,
importer
since
string
Required string length: 10
Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
top
integer
default:20
Required range: 1 <= x <= 50
until
string
Required string length: 10
Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$

Response

Normalized successful response

data
object
required

The statistics, one part for each kind of number.

notice
string | null
required

A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.

query
object
required

The request as it was understood: country names as codes, the default dates filled in. data_through says how recent the records behind the answer are.