Economics
US Trade Summary
Top US trading partners or product groups over a period (the last 12 months, this year so far, a year or a month), with exports, imports, balance, total trade and shares of the US total.
All filters are optional. The answer is {as_of, period, us_total, total, limit, offset, sort, order, rows, about}.
get/us-trade/summary
Request
- Base URL: https://api.dataporium.io
- URL: https://api.dataporium.io/us-trade/summary
- Auth: API key in query parameter apikey
Query parameters
dimensionstring
country (default), group or product
periodstring
last_12_months (default), ytd, year (with year) or month (with month)
yearinteger
For period=year
monthstring
For period=month (YYYY-MM)
codestring
Codes to include, comma-separated
qstring
Part of the name
sortstring
total_trade (default), exports, imports, balance or name
orderstring
asc or desc (default desc; asc for name)
limitinteger
Rows per page, 1 to 500 (default 20)
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.