UN Comtrade (comtradeplus.un.org) · Mbs series
comtradeplus-un-org/trade-statistics/mbs_seriesGet market and financial data with UN Comtrade (comtradeplus.un.org) · Mbs series from Alexandria through one Spiral API key. Headline total imports/exports of a country over time (back to 1946) in one call, rather than summing commodity rows; or the exchange-rate conversion factors behind them. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.00873 per call.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 5 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
country_code required | text | — | UN M49 country code(s), comma-separated. Pattern: ^\d{1,4}(,\d{1,4})*$. |
year | text | — | Reference year(s), comma-separated; omit for every year. Pattern: ^\d{4}(,\d{4})*$. |
period | text | — | Period(s) YYYY or YYYYMM, comma-separated. Pattern: ^\d{4}(\d{2})?(,\d{4}(\d{2})?)*$. |
table_type | one of T35, T38 | — | Restrict to one MBS table. |
period_type | one of A, Q, M | — | Restrict to annual, quarterly or monthly observations. |
series_type | one of T35.A.V.$, T35.Q.V.$, T35.M.V.$, T38.A.CF., T38.Q.CF., T38.M.CF. | T35.A.V.$ | Table.frequency.measure.currency: T35 total trade value in USD, T38 conversion factors; A annual, Q quarterly, M monthly. |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "alexandria",
"model": "comtradeplus-un-org/trade-statistics/mbs_series",
"input": {
"country_code": "<country_code>"
}
}'Frequently asked questions
How much does UN Comtrade (comtradeplus.un.org) · Mbs series cost?
$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use UN Comtrade (comtradeplus.un.org) · Mbs series through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "comtradeplus-un-org/trade-statistics/mbs_series"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Alexandria to use UN Comtrade (comtradeplus.un.org) · Mbs series?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use UN Comtrade (comtradeplus.un.org) · Mbs series?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.