How to Use FRED child categories in Codex
Returns the categories directly beneath a FRED topic, with their IDs, names, and parent IDs. Use it to browse one level deeper, such as moving from international transactions to exports or imports.
Prompts to try with FRED child categories in Codex
Copy an example into Codex, or ask in your own words.
Use FRED child categories for category 13 and compare the returned topic names with the sections in my analysis notebook.
Use FRED child categories from category 0 and identify which returned branches could help me review the economic topics discussed in this repository.
Use FRED child categories for category 13 and show the returned IDs and names in chat so I can review my notebook's international trade scope.
Use FRED child categories to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from FRED child categories and tell me what changed since last week.
How to set up FRED child categories in Codex
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
codex mcp add spiral --url https://api.spiral.ai/mcp
- Sign in
Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.
codex mcp login spiral
Use the Spiral skill
- Send Codex this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run FRED child categories
One request; the result comes back by polling or a webhook.
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": "fred/categories/children", "input": { "category_id": 0 } }'
Then paste one of the prompts above: Codex finds FRED child categories on Spiral, shows the price and runs it.
FRED child categories providers and prices
Spiral runs FRED child categories through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Codex for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Category ID | a number | 0 | The category to read. 0 is the root of the tree. |
Every API field of FRED · Child categories is on its tool page: open its card above.
What can you do with FRED child categories in Codex?
Check an economic analysis project's topic choices against FRED's category catalog. A coding agent can inspect the project's terminology and explain which category paths, series descriptions, or tags warrant review, subject to FRED's reuse terms.
Prepare an economic research outline
Identify a topic, examine its subtopics and cross-links, then inspect series descriptions and tags to decide which measures deserve further research.
Plan a trade indicators briefing
Explore international transactions by category, inspect available series, and use tag combinations to narrow the briefing's scope.
Teach economic data discovery
Walk students through category navigation, cross-links, series descriptions, and tag intersections before selecting indicators for a classroom exercise.
Scope a regional economics study
Inspect regional categories and any cross-links, review candidate series, and examine geographic tags to define the study's coverage.
Resolve a category reference
Confirm a category's name and parent, inspect its immediate children, and distinguish hierarchy links from directional related-category links.
More on FRED child categories and Codex
Overview
FRED child categories in other agents
Questions about FRED child categories in Codex
Can Codex use FRED child categories?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run FRED child categories like any built-in tool.
How much does FRED child categories cost in Codex?
$0.013 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 FRED child categories in Codex?
No. Spiral runs FRED child categories on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up FRED child categories in Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while FRED child categories runs?
FRED child categories runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.
Does FRED cover only U.S. economic data?
No. FRED includes economic series from national and international sources, including both public and private organizations.
Who originally publishes the data in FRED?
FRED aggregates data from many organizations. Its sources include the Bureau of Economic Analysis, Bureau of Labor Statistics, and U.S. Census Bureau.
Do category lookups return economic measurements?
These category tools return catalog information: categories, series descriptions, and tags. FRED provides observation values through a separate series observations request.
How does FRED publish revisions?
FRED displays a source's latest series version after validation. The version it replaces is archived in ALFRED.
What checks does FRED perform before adding data?
FRED checks downloads against existing series and verifies frequency, date formats, and value formats. Unexpected values are flagged for review and clarification with the source.
Start using FRED child categories in Codex
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Codex:
set up https://spiral.ai/SKILL.md


