Skip to main content
POST
Dataset metadata

Request contract

  • Method and path: POST /apis/v1/comtradeplus-un-org/trade-statistics/dataset-metadata
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/comtradeplus-un-org/trade-statistics/dataset-metadata
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
period
string
required

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

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".

type_code
string
default:C

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

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

Response

Publication notes and valuation metadata for a reporter's dataset(s) in a period: currency and conversion factors, trade system, import/export valuation (CIF/FOB), partner attribution and the publication note and date (GET /public/v1/getMetadata). No dataset for the selection is not_found.

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.