Skip to main content
POST
Tariffline data

Request contract

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

HS edition in the URL path (tariffline is goods only).

Provider reference: allowed values ["HS", "H6", "H5", "H4", "H3", "H2", "H1", "H0"]; default "HS".

cmd_code
string

Commodity code(s), comma-separated: HS6 codes select every national line beneath them; national 8-10 digit codes are accepted as the reporter publishes them. Pattern: ^[A-Za-z0-9]{1,12}(,[A-Za-z0-9]{1,12})*$.

customs_code
string

Customs procedure code(s), comma-separated (C00 total). Pattern: ^[A-Za-z0-9]{1,4}(,[A-Za-z0-9]{1,4})*$.

flow_code
string

Trade flow code(s), comma-separated: M import, X export, RM re-import, RX re-export, MIP/XIP/MOP/XOP/MIF/XIF/DX/FM sub-flows. Omit for every flow. Pattern: ^[A-Za-z]{1,3}(,[A-Za-z]{1,3})*$.

freq_code
string
default:A

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

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

include_desc
boolean

Ask the API for description and ISO columns.

mot_code
string

Mode of transport code(s), comma-separated (0 total). Pattern: ^\d{1,4}(,\d{1,4})*$.

partner2_code
string

Second partner (consignment) code(s), comma-separated. Pattern: ^\d{1,4}(,\d{1,4})*$.

partner_code
string

Partner area code(s), comma-separated. 0 is World (the reporter's total); omit for a breakdown by every partner. Look codes up with reference_codes table=partnerAreas. Pattern: ^\d{1,4}(,\d{1,4})*$.

type_code
string
default:C

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

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

Response

National tariff-line trade records (reporter's own 8-10 digit codes) from the public tariffline preview (GET /public/v1/previewTariffline/{type}/{freq}/{classification}). One request per call; the API silently caps the answer at 500 records and truncated says so. Tariffline rows carry no description for national codes (cmd_desc null) and mode of transport / customs / second partner only where the reporter publishes them.

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.