---
title: "Bilateral trade values and indicators (WITS TradeStats-Trade)"
method: GET
path: "/api/v1/wits/trade"
tags: ["Global Economy & Trade"]
---

# Bilateral trade values and indicators (WITS TradeStats-Trade)

`GET /api/v1/wits/trade`

Bilateral merchandise trade values plus indicators computed on top of UN Comtrade, including export/import trade value (`XPRT-TRD-VL`, `MPRT-TRD-VL` in US$ thousands), partner and product counts, Hirschman-Herfindahl market concentration index (`HH-MKT-CNCNTRTN-NDX`), index of export market penetration, country and world growth rates, and partner shares. 20+ indicators across 27 sector groups. See `/wits/indicators?datasource=tradestats-trade` for the full catalog.

## Query parameters

- `reporter` string, required — Reporter ISO3 alpha.
- `year` integer, required — Observation year.
- `partner` string — Partner ISO3 alpha (`WLD` = World aggregate).
- `product_group` string — Sector group (e.g. `Fuels`, `Total`) or `all`.
- `indicator` string — Indicator code. Defaults to export trade value in US$ thousands.

## Response `200`

Trade value and indicator observations by reporter, partner, and sector.

- EnvelopeWitsTradePayload
  - `data` WitsTradePayload, required — TradeStats-Trade query result (bilateral flows + derived indicators).
    - `reporter` string, required — Reporter ISO3 alpha.
    - `partner` string, required — Partner ISO3 alpha (default `WLD`).
    - `product` string, required — Sector group or `all`.
    - `year` string, required — Year supplied.
    - `indicator` string, required — Indicator code (default `XPRT-TRD-VL`).
    - `count` integer, required — Number of observations returned.
    - `rows` WitsTradeRow[], required — Flat observation records.
      - `FREQ` string, nullable — SDMX frequency code (A = annual).
      - `REPORTER` string, nullable — Reporter ISO3 alpha.
      - `REPORTER_name` string, nullable — Reporter country name.
      - `PARTNER` string, nullable — Partner ISO3 alpha (`WLD` = World).
      - `PARTNER_name` string, nullable — Partner country name.
      - `PRODUCTCODE` string, nullable — Sector group (e.g. `Fuels`, `01-05_Animal`, `Total`).
      - `PRODUCTCODE_name` string, nullable — Sector group label.
      - `INDICATOR` string, nullable — TradeStats-Trade indicator code (e.g. `XPRT-TRD-VL`).
      - `INDICATOR_name` string, nullable — Indicator name and unit (e.g. `Export Trade Value (US$ Thousand)`).
      - `TIME_PERIOD` string, nullable — Observation year.
      - `time_start` string, nullable — Observation start as returned by WITS.
      - `value` union — Indicator value. Units depend on indicator (trade value in $K, indices, growth %, etc.).
        - number
        - string
      - `DATASOURCE` string, nullable — Custodian datasource (usually `WITS-CMT`).
  - `meta` SugraMeta, required — Metadata attached to every /api/v1/* response envelope.
    - `endpoint` string, required — Requested endpoint path.
    - `data_time` string, required — ISO 8601 UTC timestamp of the source data, not of the request.
    - `response_time` string, required — ISO 8601 UTC timestamp when this response was produced.
    - `provider` string, required — API name and version.
    - `source` string, nullable — Identifier of the primary upstream source used for this response.
    - `attribution` string, nullable — Human-readable attribution mandated by an upstream source (e.g. a securities regulator or self-regulatory organization). Present only on responses whose source requires the owner and source to be clearly identified. Do not remove or alter it when using the response.
    - `fallback_used` boolean, nullable — True when the primary source failed and a fallback produced the data.
    - `fallback_chain` string[], nullable — Ordered list of sources attempted, in the order they were tried.
    - `cached` boolean, nullable — True when this response was served from the internal cache.
    - `stale` boolean, nullable — True when the cached response was returned after the upstream rate-limited or errored. Clients can use this to detect degraded data.

## Other responses

- `401` — Missing or invalid `x-api-key` header. JSON body with a stable `code` distinguishing `missing_api_key` (no header sent) from `invalid_api_key` (header sent, key not accepted); any other 401 source carries the generic `unauthorized` with its detail as `reason`. Plus `hint`. `plan` is always null on 401 - an unauthenticated request has no plan; quota exhaustion is 429, not 401.
- `422` — Validation Error
- `429` — Daily rate limit exceeded. Check `X-RateLimit-Reset` for the next window.
- `503` — Upstream source is temporarily unavailable. Retry after a short delay.

---

[API](https://skmtc.net/sugra/apis/sugra-api.md) · [All operations](https://skmtc.net/sugra/apis/sugra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sugra/sugra-api/versions/d3e3d9c28132/schema)
