zinc.md
202 lines · skills/database-lookup/references/zinc.md at 5f2bc03
ZINC Database API
Raw lines 1 to 2Auth
The documented ZINC15-style interface is public, but automated requests may be redirected to a human-verification page. A 2026-09-30 lookup returned such HTML instead of JSON. Detect this response and report the access limitation; do not bypass the challenge or interpret it as a compound record.
Raw lines 9 to 12URL Pattern
Resources follow a uniform pattern with format specified by file extension:
/{resource}.{format}
/{resource}/{id}.{format}
/{resource}/subsets/{subset}.{format}Supported formats: .json, .csv, .txt, .smi, .sdf, .mol2, .xml, .png
Field selection (return only specific fields):
/{resource}.json:field1+field2+field3Raw lines 13 to 29Key Endpoints
Raw lines 30 to 31Substructure search (SMARTS)
GET /substances.json?sub_id-matches-sma=[ND1]&count=10Raw lines 57 to 61Similarity search (Tanimoto, ECFP4 fingerprints)
The threshold (e.g., 40 = 40%) is part of the parameter name. Value can be SMILES or a ZINC ID number.
GET /substances/?ecfp4_fp-tanimoto-40=c1ccccc1O
GET /substances/?ecfp4_fp-tanimoto-70=ZINC000000000053Raw lines 62 to 69Browse subsets
Filter by purchasability, drug status, reactivity, or origin:
GET /substances/subsets/fda.json # FDA-approved drugs
GET /substances/subsets/in-stock.json # In-stock compounds
GET /substances/subsets/metabolites.json # Metabolites
GET /substances/subsets/fda+in-stock.json # Combine subsets with +Key subsets:
- Purchasability:
in-stock,on-demand,for-sale,bb(building blocks) - Drug status:
fda,world,in-trials,in-man,in-vivo,in-vitro - Origin:
biogenic,metabolites,natural-products,endogenous - Reactivity:
anodyne,clean,standard,reactive
Catalogs
GET /catalogs.json # List all vendor catalogs
GET /catalogs/cmcd/substances.json # Substances in a catalogRaw lines 91 to 96Molecule format conversion
GET /apps/mol/convert?from=CC(=O)Oc1ccccc1C(=O)O&to=inchikeyReturns the InChIKey as plain text. Supports conversions between SMILES, InChI, and InChIKey.
Raw lines 102 to 107Batch resolution (POST)
Resolve multiple names, ZINC IDs, or SMILES at once:
POST /substances/resolved/
Content-Type: application/x-www-form-urlencoded
paste=aspirin%0Aibuprofen%0AZINC000000000053&identifiers=y&structures=y&names=y&output_format=jsonRaw lines 108 to 117Query Parameters
Raw lines 118 to 119Pagination
count=N— results per page (usecount=allcautiously on large sets)page=N— page number (1-indexed)
Sorting
sort=mwt— ascending by fieldsort=-mwt— descending (prefix with-)sort=no— disable sorting for faster bulk queries
Property filters (comparison operators)
mwt-le=500— molecular weight <= 500logp-ge=2— LogP >= 2hbd-le=5— H-bond donors <= 5- Operators:
-le(<=),-ge(>=),-lt(<),-gt(>),-eq(=)
Searchable substance attributes
Molecular properties: mwt, logp, hba, hbd, tpsa, rb (rotatable bonds), num_rings, num_aromatic_rings, num_heavy_atoms, num_chiral_centers, fractioncsp3
Identifiers: zinc_id, smiles, inchikey, mol_formula, preferred_name, cas_numbers
Status: purchasable, reactive, bb (building block)
Example Calls
Raw lines 143 to 144Get properties for a compound
GET /substances/ZINC000000000053.json:zinc_id+smiles+mwt+logp+hba+hbd+tpsa+mol_formula+preferred_nameRaw lines 145 to 149FDA drugs sorted by molecular weight
GET /substances/subsets/fda.json:zinc_id+preferred_name+mwt?sort=mwt&count=10Raw lines 150 to 154Drug-like compounds (Lipinski filters)
GET /substances/subsets/for-sale.json?mwt-le=500&logp-le=5&hbd-le=5&hba-le=10&count=20Raw lines 155 to 159Find compounds targeting a specific gene
GET /genes/EGFR/substances.json:zinc_id+preferred_name+smiles?count=10Raw lines 160 to 164Response Format
[
{
"zinc_id": "ZINC000000000053",
"smiles": "CC(=O)Oc1ccccc1C(=O)O",
"preferred_name": "aspirin",
"mwt": 180.159,
"logp": 1.31,
"hba": 3,
"hbd": 1,
"tpsa": 63,
"mol_formula": "C9H8O4",
"inchikey": "BSYNRYMUTXBXSQ-UHFFFAOYSA-N",
"purchasable": 5
}
]Responses are JSON arrays. Single-record lookups (by ZINC ID) return a JSON object.
Raw lines 165 to 186Rate Limits
No documented rate limits. The API is publicly funded (NIH NIGMS GM71896). Be respectful:
- Use
count=to limit result sizes - Use
sort=nofor faster bulk queries - Similarity and substructure searches are computationally expensive — expect slower responses
- Avoid
count=allon large result sets
Special Notes
- These routes describe the official ZINC15-style syntax. Coverage is not interchangeable with ZINC22/CartBlanche or bulk tranche releases; record the interface and release actually used.
- ZINC IDs have the format
ZINC000000000053(12-digit zero-padded after "ZINC" in this interface) - The
.smiformat returns SMILES strings, useful for cheminformatics pipelines - The
.sdfformat returns 3D structures suitable for docking software - Subsets can be combined with
+(e.g.,fda+in-stock= FDA-approved AND in-stock) - For virtual screening workflows, use tranches (
/tranches/) to partition by molecular weight and LogP