Skip to main content
POST
Data availability

Request contract

  • Method and path: POST /apis/v1/comtradeplus-un-org/trade-statistics/data-availability
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/comtradeplus-un-org/trade-statistics/data-availability
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. 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
reporter_code
string
required

UN M49 numeric reporter code(s), comma-separated (156 China, 842 USA, 276 Germany). Look codes up with reference_codes table=Reporters. Pattern: ^\d{1,4}(,\d{1,4})*$.

classification
string
default:HS

Product classification in the URL path: HS (as reported, any HS edition), H0-H6 (a specific HS edition), S1-S4 (SITC), BE/BE5 (BEC), EB/EB10/EB02/EBS (EBOPS, services).

Provider reference: allowed values ["HS", "H6", "H5", "H4", "H3", "H2", "H1", "H0", "S4", "S3", "S2", "S1", "BE", "BE5", "EB", "EB10", "EB02", "EBS"]; default "HS".

freq_code
string
default:A

Frequency: A annual (period YYYY), M monthly (period YYYYMM).

Provider reference: allowed values ["A", "M"]; default "A".

period
string

Period(s) YYYY or YYYYMM, comma-separated; omit for every period. Pattern: ^\d{4}(\d{2})?(,\d{4}(\d{2})?)*$.

tariffline
boolean

Query the tariffline dataset catalogue instead of the standard one.

type_code
string
default:C

Type of trade: C commodities (goods), S services.

Provider reference: allowed values ["C", "S"]; default "C".

Response

Which datasets UN Comtrade holds for a reporter, frequency, classification and period(s), with record counts, the HS edition actually reported and release dates (GET /public/v1/getDA or, with tariffline=true, /public/v1/getDATariffline). An empty list is a legitimate answer: nothing published for that selection.

The response contains the tool result directly.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.