# Trade Balance API

> Trade Balance provides monthly US international trade data - exports, imports, and the resulting goods-and-services trade balance (deficit or surplus) on a Balance of Payments basis. Each month comes with the previous month's balance, and paid plans add month-on-month and year-on-year changes, rolling 12-month totals and the last 12 months.

**Endpoint:** `GET https://api.apiverve.com/v1/tradebalance`  
**Category:** Finance  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/tradebalance

## Overview

Trade Balance sources data from FRED (Federal Reserve Economic Data) using the Census Bureau FT-900 Balance of Payments series, providing seasonally adjusted monthly exports, imports, and the trade balance in millions of US dollars, with history back to 1992. With changes=true every reading includes the previous month's balance, and paid plans add the percent change in exports and imports from the month before and the year before, the change in the balance, rolling 12-month exports, imports and balance, and the 12 monthly readings with history=true. Track the US balance of trade, the trade deficit or surplus, and imports and exports month by month.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/tradebalance?date=2023-06&history=true&changes=true" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `date` | string | No | Optional date in YYYY-MM format for historical lookup. Omit for current data.. date |
| `history` | boolean | No | Include the 12 monthly readings ending at the returned month. default false. Premium field |
| `changes` | boolean | No | Include the previous month's balance, month-on-month and year-on-year changes and rolling 12-month totals. default false |

## Response fields

- `yearMonth` — string · Year and month in YYYY-MM format for the trade data
- `year` — number · The calendar year for the trade balance data
- `month` — number · The month number (1-12) for trade balance data
- `exports` — number · US exports of goods and services for the month, in millions of USD (BOP basis, seasonally adjusted)
- `imports` — number · US imports of goods and services for the month, in millions of USD (BOP basis, seasonally adjusted)
- `balance` — number · Trade balance (exports minus imports) for the month, in millions of USD. Negative means a trade deficit
- `unit` — string · Unit for the exports, imports, and balance figures (millions_usd)
- `exportsFormatted` — string · Human-readable exports figure (e.g., $265.20 billion) · (premium)
- `importsFormatted` — string · Human-readable imports figure (e.g., $340.40 billion) · (premium)
- `balanceFormatted` — string · Human-readable trade balance figure (e.g., -$75.20 billion) · (premium)
- `tradeStatus` — string · Whether the month was a trade deficit or surplus
- `updatedAt` — string · ISO 8601 timestamp when the trade data was last updated
- `previousYearMonth` — string · Month of the previous reading (YYYY-MM) (with changes=true)
- `previousBalance` — number · Previous month's trade balance in millions of USD (with changes=true)
- `exportsChange1m` — number · Percent change in exports from the previous month (with changes=true) · (premium)
- `importsChange1m` — number · Percent change in imports from the previous month (with changes=true) · (premium)
- `balanceChange1m` — number · Change in the balance from the previous month, in millions of USD (negative means a wider deficit or smaller surplus) (with changes=true) · (premium)
- `exportsChange12m` — number · Percent change in exports from the same month a year earlier (with changes=true) · (premium)
- `importsChange12m` — number · Percent change in imports from the same month a year earlier (with changes=true) · (premium)
- `balanceChange12m` — number · Change in the balance from the same month a year earlier, in millions of USD (with changes=true) · (premium)
- `exports12m` — number · Total exports over the 12 months ending at the returned month, in millions of USD (with changes=true) · (premium)
- `imports12m` — number · Total imports over the 12 months ending at the returned month, in millions of USD (with changes=true) · (premium)
- `balance12m` — number · Total balance over the 12 months ending at the returned month, in millions of USD (with changes=true) · (premium)
  - `history.0.yearMonth` — string · Month of the reading (YYYY-MM) · (premium)
  - `history.0.exports` — number · Exports in millions of USD · (premium)
  - `history.0.imports` — number · Imports in millions of USD · (premium)
  - `history.0.balance` — number · Trade balance in millions of USD · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "yearMonth": "2026-08",
    "year": 2026,
    "month": 8,
    "exports": 315182,
    "imports": 420754,
    "balance": -105572,
    "unit": "millions_usd",
    "exportsFormatted": "$315.18 billion",
    "importsFormatted": "$420.75 billion",
    "balanceFormatted": "-$105.57 billion",
    "tradeStatus": "deficit",
    "updatedAt": "2026-10-28T03:39:54.665Z",
    "previousYearMonth": "2026-07",
    "previousBalance": -92826,
    "exportsChange1m": 1.435,
    "importsChange1m": 4.2632,
    "balanceChange1m": -12746,
    "exportsChange12m": 10.6908,
    "importsChange12m": 22.1762,
    "balanceChange12m": -45930,
    "exports12m": 3697470,
    "imports12m": 4491225,
    "balance12m": -793756,
    "history": [
      {
        "yearMonth": "2025-09",
        "exports": 292352,
        "imports": 351743,
        "balance": -59392
      },
      {
        "yearMonth": "2025-10",
        "exports": 301158,
        "imports": 338534,
        "balance": -37376
      },
      {
        "yearMonth": "2025-11",
        "exports": 289504,
        "imports": 353372,
        "balance": -63868
      },
      {
        "yearMonth": "2025-12",
        "exports": 285282,
        "imports": 361360,
        "balance": -76078
      },
      {
        "yearMonth": "2026-01",
        "exports": 301271,
        "imports": 353941,
        "balance": -52670
      },
      {
        "yearMonth": "2026-02",
        "exports": 313628,
        "imports": 366127,
        "balance": -52500
      },
      {
        "yearMonth": "2026-03",
        "exports": 321163,
        "imports": 374820,
        "balance": -53657
      },
      {
        "yearMonth": "2026-04",
        "exports": 329893,
        "imports": 382776,
        "balance": -52883
      },
      {
        "yearMonth": "2026-05",
        "exports": 319979,
        "imports": 395731,
        "balance": -75752
      },
      {
        "yearMonth": "2026-06",
        "exports": 317335,
        "imports": 388517,
        "balance": -71182
      },
      {
        "yearMonth": "2026-07",
        "exports": 310723,
        "imports": 403550,
        "balance": -92826
      },
      {
        "yearMonth": "2026-08",
        "exports": 315182,
        "imports": 420754,
        "balance": -105572
      }
    ]
  }
}
```

## Use cases

- **Economic Analysis** — Track US trade patterns for economic research
- **Policy Research** — Analyze trade data for policy research and analysis
- **Business Intelligence** — Factor trade trends into business planning

## SDKs

- **npm** — `npm install @apiverve/tradebalance` (https://www.npmjs.com/package/@apiverve/tradebalance)
- **NuGet** — `dotnet add package APIVerve.API.TradeBalance` (https://www.nuget.org/packages/APIVerve.API.TradeBalance)
- **Source** — https://github.com/apiverve/tradebalance-api

## More

- Full reference: https://docs.apiverve.com/ref/tradebalance
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
