FDA Substance Registry (UNII)
Substances in the FDA's Global Substance Registration System, found by name, UNII or CAS number: the UNII, name, class, synonyms, outside codes (CAS, RxCUI, PubChem, DrugBank, ChEMBL, EC, ATC and more), formula, molecular weight, SMILES and how it relates to other substances.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from open.fda.gov/apis/other/substance/
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/fda-substance-registry/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"name":"metformin"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
23 fields: 19 here, 4 technical ones under Technical details.
Basics
- Unii
The FDA's Unique Ingredient Identifier, such as 9100L32L2N.
Example 9100L32L2N
- Substance name
The name the FDA's substance registry shows for the substance, such as Metformin hydrochloride.
Example Metformin
- Matched name
The name in the FDA's UNII list that matched a name search, in capitals; it can be another name of the substance, such as a biosimilar's. Empty for UNII and CAS lookups.
Example METFORMIN
- Substance class
Kind of substance: chemical, protein, nucleicAcid, polymer, mixture, structurallyDiverse (such as plant materials) or specifiedSubstanceG1.
Example chemical
- Synonyms
Other names of the substance; a bracket names the list it comes from, such as [INN] or [USAN].
Example 1,1-Dimethylbiguanide, 3-(diaminomethylidene)-1,1-dimethylguanidine
- Cas number
Main CAS Registry Number, such as 657-24-9.
Example 657-24-9
- Rxcui
RxNorm concept id (RxCUI).
Example 6809
- Pubchem cid
PubChem compound id.
Example 4091
- Ec number
European Community (EC) number from ECHA, such as 211-517-8.
Example 211-517-8
- Nci thesaurus code
NCI Thesaurus code, such as C61612.
Example C61612
- Atc codes
WHO ATC codes, including codes of combination products that hold the substance.
Example A10BD03, A10BD05
- Molecular formula
Molecular formula, such as C4H11N5.
Example C4H11N5
- Molecular weight
Molecular weight in g/mol.
Example 129.1638
- Smiles
Structure as a SMILES string.
Example CN(C)C(=N)NC(=N)N
- Stereochemistry
Stereochemistry, such as ACHIRAL, ABSOLUTE or RACEMIC.
Example ACHIRAL
- Active moiety unii
UNII of the active moiety, such as the parent of a salt.
Example 9100L32L2N
- Active moiety name
Example Metformin
- Relationships
Links to other substances as "TYPE: name (UNII)", such as SALT/SOLVATE->PARENT or TARGET->AGONIST.
Example ACTIVE MOIETY: Metformin (9100L32L2N), SALT/SOLVATE->PARENT: Metformin hydrochloride (786Z46389E)
Links
- Link
Link to the substance on the FDA's UNII search site.
Technical detailsField names and types for developers, and the 4 fields hidden above
Hidden by default
These 4 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.
- Drugbank ID
drugbank_idDrugBank id, such as DB00331. - Chembl ID
chembl_idChEMBL id, such as CHEMBL1431. - Epa comptox ID
epa_comptox_idEPA CompTox id (DTXSID). - Mesh ID
mesh_idMeSH id, such as D008687.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
unii | text | Unii | 3 of 3 |
url | link | Link | 3 of 3 |
substance_name | text | Substance name | 3 of 3 |
matched_name | text | Matched name | 3 of 3 |
substance_class | text | Substance class | 3 of 3 |
synonyms | list | Synonyms | 3 of 3 |
cas_number | text | Cas number | 2 of 3 |
rxcui | text | Rxcui | 1 of 3 |
pubchem_cid | text | Pubchem cid | 3 of 3 |
drugbank_id | text | Drugbank ID (hidden) | 1 of 3 |
chembl_id | text | Chembl ID (hidden) | 2 of 3 |
ec_number | text | Ec number | 1 of 3 |
epa_comptox_id | text | Epa comptox ID (hidden) | 2 of 3 |
nci_thesaurus_code | text | Nci thesaurus code | 3 of 3 |
mesh_id | text | Mesh ID (hidden) | 1 of 3 |
atc_codes | list | Atc codes | 1 of 3 |
molecular_formula | text | Molecular formula | 3 of 3 |
molecular_weight | number | Molecular weight | 3 of 3 |
smiles | text | Smiles | 3 of 3 |
stereochemistry | text | Stereochemistry | 3 of 3 |
active_moiety_unii | text | Active moiety unii | 2 of 3 |
active_moiety_name | text | Active moiety name | 2 of 3 |
relationships | list | Relationships | 2 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Unii | Substance name | Matched name | Substance class | Synonyms | Cas number | Rxcui | Pubchem cid | Ec number | Nci thesaurus code | Atc codes | Molecular formula | Molecular weight | Smiles | Stereochemistry | Active moiety unii | Active moiety name | Relationships | Link |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 9100L32L2N | Metformin | METFORMIN | chemical | 1,1-Dimethylbiguanide, 3-(diaminomethylidene)-1,1-dimethylguanidine, IMIDODICARBONIMIDIC DIAMIDE, N,N-DIMETHYL-, METFORMIN EXTENDED RELEASE | 657-24-9 | 6809 | 4091 | 211-517-8 | C61612 | A10BD03, A10BD05, A10BD07, A10BD11 | C4H11N5 | 129.1638 | CN(C)C(=N)NC(=N)N | ACHIRAL | 9100L32L2N | Metformin | ACTIVE MOIETY: Metformin (9100L32L2N), SALT/SOLVATE->PARENT: Metformin hydrochloride (786Z46389E), SALT/SOLVATE->PARENT: METFORMIN OROTATE (KE1D8AP3J5), SALT/SOLVATE->PARENT: METFORMIN P-CHLOROPHENOXYACETATE (ECS8EBF633) | precision.fda.gov/uniisearch/srs/unii/9100L32L2N |
| 2 | 6AI63CHT0T | METFORMIN C-11 | METFORMIN C-11 | chemical | (N-METHYL-11C)-METFORMIN, 11C-METFORMIN | — | — | 73388104 | — | C130014 | — | C4H11N5 | 128.1645 | [11CH3]N(C)C(=N)NC(=N)N | ACHIRAL | — | — | — | precision.fda.gov/uniisearch/srs/unii/6AI63CHT0T |
| 3 | YEI21W005Y | METFORMIN GLYCINATE | METFORMIN GLYCINATE | chemical | DMMET-01, GLYCINE, COMPD. WITH N,N-DIMETHYLIMIDODICARBONIMIDIC DIAMIDE (1:1), Metformin glycinate [WHO-DD], metformin glycinate [INN] | 121369-64-0 | — | 44520175 | — | C170168 | — | C4H11N5.C2H5NO2 | 204.2305 | CN(C)C(=N)NC(=N)N.C(C(=O)O)N | ACHIRAL | 9100L32L2N | Metformin | ACTIVE MOIETY: Metformin (9100L32L2N), PARENT->SALT/SOLVATE: Metformin (9100L32L2N) | precision.fda.gov/uniisearch/srs/unii/YEI21W005Y |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Substances are as the FDA publishes them through openFDA, which refreshes the UNII list often but the full substance records only every few months, so a new UNII can appear before its full record. The FDA does not endorse this API.
- A name search matches every UNII name holding those words in that order: the exact name comes first, then the rest in alphabetical order. At most 1,000 substances per run.
- Some UNIIs have no full substance record in openFDA; for those only unii, url, substance_name and matched_name are filled.
- Formula, molecular weight, SMILES and stereochemistry exist only for chemicals; proteins, mixtures, polymers and plant materials leave them empty. Outside codes are filled only where the FDA linked them.
- synonyms holds at most 200 names and relationships at most 100 links per substance. openFDA limits how many reads it serves a day without a key.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.