[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [State Department destination advisory](https://spiral.ai/integrations/codex/state-department-destination-advisory)

# How to Use State Department destination advisory in Codex

Returns one destination's advisory level, narrative advice, publication and update dates, and source link. Use it to explain the risks behind a country's rating before reviewing an itinerary.

|  |  |
| --- | --- |
| Model | State Department destination advisory |
| Available through | Alexandria |
| Category | Maps & Reviews |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with State Department destination advisory in Codex

- Use State Department destination advisory for Germany and update this project's Germany briefing with the returned risk explanation and advisory dates.
- Use State Department destination advisory for Türkiye and add a regional-warnings section to this project's itinerary review page using the places named in the returned advice.
- Use State Department destination advisory to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from State Department destination advisory and tell me what changed since last week.
- Check State Department destination advisory and summarize what you find in three bullet points.

## How to set up State Department destination advisory in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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 State Department destination advisory**: 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": "travel-state-gov/travel-advisories/advisory",
    "input": {
      "url": "<url>"
    }
  }'
```

Then paste one of the prompts above: Codex finds State Department destination advisory on Spiral, shows the price and runs it.

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

## State Department destination advisory tools and prices

- [U.S. State Department Travel Advisories (travel.state.gov) · Advisory](https://spiral.ai/tools/alexandria/travel-state-gov/travel-advisories/advisory) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | A pasted travel.state.gov advisory page URL instead of `code`, e.g. https://travel.state.gov/content/tsg_aem/us/en/home/international-travel/travel-advisories/destination.deu.html. |
| code |  | — | The State Department's two-character destination code as cadataapi.state.gov uses it, mostly FIPS 10-4 (GM Germany, UK United Kingdom, CH China, KN North Korea), not ISO 3166. Case-insensitive. Pattern: ^[A-Za-z0-9]{2}$. |

## What can you do with State Department destination advisory in Codex?

Add State Department destination advice to a travel planning app, with the risk explanation beside practical country guidance. A coding agent can turn the returned levels, narrative advice, dates, and embassy information into readable destination pages.

### Business trip review

Prepare a Germany travel review with the current advisory, the reasons behind it, and a separate checklist of entry requirements and embassy contacts.

### Study abroad destination brief

Compare Japan and Germany for a university program, then prepare destination briefs that separate advisory risks from entry rules, health guidance, and local laws.

### Tour itinerary review

Review a Türkiye itinerary using the country rating, warnings for specific areas, and transportation guidance. Identify itinerary stops that need a closer review.

### Destination briefing updates

Maintain travel briefings for Germany, Japan, and Türkiye. Compare each new retrieval with the previous one and flag changes to advisory advice or practical destination guidance.

### Travel risk desk digest

Create a digest of destinations carrying the strongest travel warnings, with advisory dates and summaries explaining the reasons for each rating.

## Overview

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

## State Department destination advisory in other agents

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

## More Codex guides

- [State Department country information](https://spiral.ai/integrations/codex/state-department-country-information)
- [State Department travel advisories](https://spiral.ai/integrations/codex/state-department-travel-advisories)
- [SpotHero venue search](https://spiral.ai/integrations/codex/spothero-venue-search)
- [StubHub event details](https://spiral.ai/integrations/codex/stubhub-event-details)
- [SpotHero venue events](https://spiral.ai/integrations/codex/spothero-venue-events)
- [StubHub event search](https://spiral.ai/integrations/codex/stubhub-event-search)

## Questions about State Department destination advisory in Codex

**Can Codex use State Department destination advisory?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run State Department destination advisory like any built-in tool.

**How much does State Department destination advisory cost in Codex?**

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

**Do I need an Alexandria account to use State Department destination advisory in Codex?**

No. Spiral runs State Department destination advisory on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up State Department destination advisory in Codex?**

About two minutes: add the hosted server, then sign in.

**Does Codex wait while State Department destination advisory runs?**

State Department destination advisory runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**How broad is the State Department's advisory coverage?**

The State Department issues an overall advisory for every country, using a scale from 1 through 4. That describes the source's coverage; it does not establish a fixed number of returned records.

**How often are travel advisories reviewed?**

Level 1 and 2 advisories are reviewed every 12 months. Level 3 and 4 advisories are reviewed at least every six months.

**Whose travel needs does this information address?**

The Consular Information Program provides advice for U.S. citizens overseas. Its published information includes travel advisories, alerts, and country information pages.

**Does one country rating describe every region?**

Regional warnings can be stricter than the overall rating. For example, Türkiye's advisory warns against travel within 10 kilometers of its borders with Syria or Iraq.

**What practical information accompanies the risk advice?**

Country information covers entry requirements, safety, local laws, health, transportation, and embassy contacts. These subjects support departure planning beyond the four-level advisory scale.

