[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [FDA substance records](https://spiral.ai/integrations/n8n/fda-substance-records)

# How to Use FDA substance records in n8n

Find a substance’s UNII, recorded names, external codes, and relationships in FDA’s substance registry. Use it to reconcile ingredient names across datasets or inspect recorded links between a salt and its active moiety.

|  |  |
| --- | --- |
| Model | FDA substance records |
| Available through | Alexandria |
| Category | Health |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with FDA substance records in n8n

- Each month, use FDA substance records to check acetaminophen and report changes in its returned names or external codes since the previous check.
- Every quarter, use FDA substance records to refresh the UNIIs and recorded names for caffeine, aspirin, and citric acid and summarize any differences.
- Each month, use FDA substance records to inspect ibuprofen sodium and report any changes to its recorded active moiety or parent relationships.
- Every quarter, use FDA substance records to compare acetaminophen and paracetamol and report whether their returned UNIIs still agree.
- Each month, use FDA substance records to check sodium chloride and potassium chloride and report changes to their returned external identifiers.

## How to set up FDA substance records in n8n

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

### Use the Spiral skill

1. **Send n8n 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 Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

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

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run FDA substance records in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds FDA substance records, prices it and runs it each time the step fires.

### 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 FDA substance records**: 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": "fda-gov/substances/substances",
    "input": {
      "unii": "<unii>"
    }
  }'
```

Then paste one of the prompts above: n8n finds FDA substance records on Spiral, shows the price and runs it.

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

## FDA substance records tools and prices

- [FDA · Substances](https://spiral.ai/tools/alexandria/fda-gov/substances/substances) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| code |  | — | One code from another system, e.g. CAS 103-90-2 or RXCUI 161. |
| name |  | — | Exact substance name, e.g. acetaminophen or sodium chloride; tried as typed and in upper, lower, title and sentence case. |
| skip | 0 to 25000 | 0 | skip |
| unii |  | — | UNII, e.g. 362O9ITL9D. Pattern: ^ *[A-Za-z0-9]{10} *$. |
| limit | 1 to 20 | 5 | limit |

## What can you do with FDA substance records in n8n?

Keep a defined ingredient reference list aligned with published FDA substance records. An agent running on a schedule can compare returned names, codes, and relationships across checks, with openFDA’s updates occurring every few months.

### Reconcile ingredient names

Look up ingredient names from two catalogs and compare their returned UNIIs before proposing duplicate records for review.

### Build an ingredient synonym index

Collect recorded scientific, common, generic, and brand names for a defined ingredient list to support catalog search.

### Cross-reference external identifiers

Attach the external codes recorded by FDA to an ingredient reference table, keeping each code beside its originating system.

### Review salt relationships

Inspect recorded salt, solvate, and active moiety links before combining ingredient records in a research dataset.

### Prepare a terminology review

Give a reviewer the substance’s UNII, recorded names, and external identifiers alongside the ingredient terminology used in a draft document.

### Check published reference changes

Compare periodic lookups for a fixed ingredient list and report changes in returned names, codes, or relationships.

### Create ingredient reference cards

Populate internal reference cards with FDA substance identifiers, names, and recorded relationships for researchers reviewing a compound list.

## Overview

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

## FDA substance records in other agents

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

## More n8n guides

- [FDA orphan drug designation search](https://spiral.ai/integrations/n8n/fda-orphan-drug-designation-search)
- [FDA warning letter details](https://spiral.ai/integrations/n8n/fda-warning-letter-details)
- [FDA orphan drug designation details](https://spiral.ai/integrations/n8n/fda-orphan-drug-designation-details)
- [FDA warning letter search](https://spiral.ai/integrations/n8n/fda-warning-letter-search)
- [FDA novel drug approvals](https://spiral.ai/integrations/n8n/fda-novel-drug-approvals)
- [G-BA benefit assessment details](https://spiral.ai/integrations/n8n/g-ba-benefit-assessment-details)

## Questions about FDA substance records in n8n

**Can n8n use FDA substance records?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run FDA substance records like any built-in tool.

**How much does FDA substance records cost in n8n?**

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

**Do I need an Alexandria account to use FDA substance records in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs FDA substance records on its own Alexandria account.

**How long does it take to set up FDA substance records in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while FDA substance records runs?**

FDA substance records runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**What kinds of substances does FDA cover?**

GSRS defines six substance classes: chemicals, proteins, nucleic acids, polymers, mixtures, and structurally diverse substances. Its coverage includes substances used in drugs, biologics, foods, and devices.

**How fresh are the substance records?**

openFDA lists the substance dataset’s update frequency as every few months. A scheduled check can detect a published change, but that schedule does not make the underlying data update daily.

**Does a UNII mean FDA approved the substance?**

No. FDA explicitly states that UNII availability does not imply regulatory review or approval.

**Are the synonyms and code mappings definitive?**

FDA describes them as based on the best public information available at publication. That is a publication-time mapping, not a promise that every name or external identifier is included.

**Which kinds of names can a record include?**

Records can include scientific, common, generic, and brand names. This makes the data useful for comparing ingredient terminology across catalogs without assuming that each spelling represents a different substance.

