[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [UN Comtrade recent releases](https://spiral.ai/integrations/grok/un-comtrade-recent-releases)

# How to Use UN Comtrade recent releases in Grok

Find datasets first published or revised during the last seven days. Use this release list to identify which country and period figures need refreshing.

|  |  |
| --- | --- |
| Model | UN Comtrade recent releases |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with UN Comtrade recent releases in Grok

- Use UN Comtrade recent releases to summarize Japan's datasets published or revised during the past seven days, with the affected periods.
- Use UN Comtrade recent releases to look this up and give me the result as a table.
- Pull the latest numbers from UN Comtrade recent releases and tell me what changed since last week.
- Check UN Comtrade recent releases and summarize what you find in three bullet points.
- Pull the newest data from UN Comtrade recent releases and give me the result as a table.

## How to set up UN Comtrade recent releases in Grok

Pick the way that suits you. Each takes about two minutes.

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run UN Comtrade recent releases**: One request; the result comes back by polling or a webhook.

```bash
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/recent_releases",
    "input": {
      "reporter_code": "<reporter_code>"
    }
  }'
```

Then paste one of the prompts above: Grok finds UN Comtrade recent releases on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/grok

## UN Comtrade recent releases tools and prices

- [UN Comtrade (comtradeplus.un.org) · Recent releases](https://spiral.ai/tools/alexandria/comtradeplus-un-org/trade-statistics/recent_releases) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| reporter_code |  | — | Keep only releases of this UN M49 reporter code. Pattern: ^\d{1,4}$. |

## What can you do with UN Comtrade recent releases in Grok?

Prepare a country trade briefing with figures, coverage boundaries, and the compilation notes needed to interpret them. Chat apps can explain UN Comtrade results in plain English and distinguish trade values from release information and derived world-share indicators.

### Prepare an internal country trade briefing

Build a Germany briefing with historical trade totals, world trade share, and machinery exports. Check available periods and publication notes, resolve product codes, examine national product detail, and identify recent revisions before presenting the figures.

### Maintain a monthly trade monitor

Watch Japan's new and revised releases, then refresh affected periods in an internal monitor. Combine headline totals, world share, and selected product flows with national tariff-line detail, keeping publication notes alongside the updated figures.

### Examine national product detail

Investigate the national commodity lines beneath a US static-converter import category. Compare those records with the standardized product total, check the reported classification and compilation notes, and revisit the analysis when a revised dataset appears.

### Update a quarterly economic review

Refresh an internal review of Canada, Mexico, and the United States with MBS trade totals and available world-share observations. Use releases, coverage information, and publication notes to explain which periods changed and which countries still lack comparable observations.

### Refresh a research dataset after revisions

Maintain an internal dataset on Kenya's trade, including headline totals, coffee exports, national commodity detail, and world share. Use new release notices to select affected periods, reference tables to label observations, and publication notes to explain revisions.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Grok guides](https://spiral.ai/integrations/grok)

## UN Comtrade recent releases in other agents

- [Amp](https://spiral.ai/integrations/amp/un-comtrade-recent-releases)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/un-comtrade-recent-releases)
- [Claude](https://spiral.ai/integrations/claude-desktop/un-comtrade-recent-releases)
- [Claude Code](https://spiral.ai/integrations/claude-code/un-comtrade-recent-releases)
- [Cline](https://spiral.ai/integrations/cline/un-comtrade-recent-releases)
- [Codex](https://spiral.ai/integrations/codex/un-comtrade-recent-releases)
- [Cursor](https://spiral.ai/integrations/cursor/un-comtrade-recent-releases)
- [Devin](https://spiral.ai/integrations/devin/un-comtrade-recent-releases)
- [dots](https://spiral.ai/integrations/dots/un-comtrade-recent-releases)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/un-comtrade-recent-releases)
- [Gemini](https://spiral.ai/integrations/gemini/un-comtrade-recent-releases)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/un-comtrade-recent-releases)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/un-comtrade-recent-releases)
- [goose](https://spiral.ai/integrations/goose/un-comtrade-recent-releases)
- [Grok Build](https://spiral.ai/integrations/grok-build/un-comtrade-recent-releases)
- [Hermes](https://spiral.ai/integrations/hermes/un-comtrade-recent-releases)
- [Instinct](https://spiral.ai/integrations/instinct/un-comtrade-recent-releases)
- [Manus](https://spiral.ai/integrations/manus/un-comtrade-recent-releases)
- [Muse](https://spiral.ai/integrations/muse/un-comtrade-recent-releases)
- [Muse Code](https://spiral.ai/integrations/muse-code/un-comtrade-recent-releases)
- [n8n](https://spiral.ai/integrations/n8n/un-comtrade-recent-releases)
- [Notion](https://spiral.ai/integrations/notion/un-comtrade-recent-releases)
- [OpenClaw](https://spiral.ai/integrations/openclaw/un-comtrade-recent-releases)
- [opencode](https://spiral.ai/integrations/opencode/un-comtrade-recent-releases)
- [Perplexity](https://spiral.ai/integrations/perplexity/un-comtrade-recent-releases)
- [Raycast](https://spiral.ai/integrations/raycast/un-comtrade-recent-releases)
- [VS Code](https://spiral.ai/integrations/vscode/un-comtrade-recent-releases)
- [Windsurf](https://spiral.ai/integrations/windsurf/un-comtrade-recent-releases)
- [Zapier](https://spiral.ai/integrations/zapier/un-comtrade-recent-releases)

## More Grok guides

- [UN Comtrade national tariff-line trade](https://spiral.ai/integrations/grok/un-comtrade-national-tariff-line-trade)
- [UN Comtrade reference codes](https://spiral.ai/integrations/grok/un-comtrade-reference-codes)
- [UN Comtrade imports and exports](https://spiral.ai/integrations/grok/un-comtrade-imports-and-exports)
- [UN Comtrade world trade share](https://spiral.ai/integrations/grok/un-comtrade-world-trade-share)
- [UN Comtrade historical trade totals](https://spiral.ai/integrations/grok/un-comtrade-historical-trade-totals)
- [USITC HTS chapter records](https://spiral.ai/integrations/grok/usitc-hts-chapter-records)

## Questions about UN Comtrade recent releases in Grok

**Can Grok use UN Comtrade recent releases?**

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run UN Comtrade recent releases like any built-in tool.

**How much does UN Comtrade recent releases cost in Grok?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok plan is separate.

**Do I need an Alexandria account to use UN Comtrade recent releases in Grok?**

No. Spiral runs UN Comtrade recent releases on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up UN Comtrade recent releases in Grok?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while UN Comtrade recent releases runs?**

UN Comtrade recent releases runs in the background. Grok starts the run, checks on it and gives you the json when it's ready.

**Which countries and historical periods does UN Comtrade cover?**

UN Comtrade contains goods and services statistics from nearly 200 countries and areas, with coverage extending back to 1962. Its standardized trade data leaves gaps where a country has not reported.

**How often does UN Comtrade update country data?**

There is no fixed country release date or refresh schedule. UN Comtrade processes submissions as they arrive, and the recent releases list covers first publications and revisions from the last seven days.

**Can I recover an earlier version of a revised dataset?**

UN Comtrade keeps only the latest version of each dataset and has no permanent archive of earlier versions. A published figure can therefore change after its initial release.

**Does UN Comtrade identify individual buyers or suppliers?**

No. It excludes exporter and importer names and contact details, shipment dates, and origin or destination port details; its statistics describe country trade rather than individual transactions.

**Why can two countries report different values for the same trade?**

UN Comtrade identifies three main causes of merchandise trade asymmetry: different partner attribution, CIF versus FOB valuation, and different trade systems. Publication notes help establish which practices each reporter uses.

