---
title: "US Trade"
method: GET
path: "/us-trade"
tags: ["Economics"]
---

# US Trade

`GET /us-trade`

## Request

- Base URL: `https://api.dataporium.io`
- URL: `https://api.dataporium.io/us-trade`
- Auth: API key in query parameter `apikey`

Monthly US goods exports, imports and trade balance in US dollars from January 2015: the US total, each partner country or trade group, and each product group (2-digit HS chapter) (official US government data).

All filters are optional. The answer is {as_of, total, limit, offset, sort, order, rows, about}.

## Query parameters

- `dimension` string
- `code` string
- `q` string
- `month` string
- `month_from` string
- `month_to` string
- `sort` string
- `order` string
- `limit` integer
- `offset` integer

## Response `200`

Successful response (JSON).

- object

## Other responses

- `401`: No API key in the request.
- `403`: The API key is not valid or has expired.

---

[API](https://skmtc.dev/dataporium/apis/dataporium-data-api.md) · [All operations](https://skmtc.dev/dataporium/apis/dataporium-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dataporium/apis/dataporium-data-api/revisions/8bc593179dc8?raw)
