Economics

US Trade

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

get/us-trade

Request

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

Query parameters

dimensionstring

total (default), country, group or product

codestring

Country codes (5700 China, 1220 Canada, 2010 Mexico), group codes (0003 European Union) or HS chapters (27, 84, 87); comma-separated

qstring

Part of the country or product group name

monthstring

One month (YYYY-MM)

month_fromstring

First month (YYYY-MM)

month_tostring

Last month (YYYY-MM)

sortstring

month (default), exports, imports, balance, total_trade or name

orderstring

asc or desc (default desc; asc for name)

limitinteger

Rows per page, 1 to 5000 (default 100)

offsetinteger

Rows to skip, for paging

Response

Successful response (JSON).

object required

Changes

No recorded changes to this operation across all 1 revision of this API.