scientific-skills/database-lookup/references/cod.md
https://www.crystallography.net/cod
None required. COD is fully open-access with no API key needed.
GET /result?formula=Fe2%20O3&format=json
Formula format uses spaces between elements: Fe2 O3, Si O2, C6 H12 O6. URL-encode spaces as %20.
GET /result?el1=Fe&el2=O&format=json
Use el1, el2, el3, etc. for element filters. Use nel=2 to restrict to exactly 2 elements.
GET /result?a_min=5.0&a_max=6.0&b_min=5.0&b_max=6.0&c_min=5.0&c_max=6.0&format=json
Cell parameter filters:
a_min, a_max — a-axis length (Angstroms)b_min, b_max — b-axis lengthc_min, c_max — c-axis lengthalpha_min, alpha_max — alpha angle (degrees)beta_min, beta_max — beta anglegamma_min, gamma_max — gamma anglevol_min, vol_max — unit cell volume (A^3)GET /result?sg=F%20m%20-3%20m&format=json
GET /result?text=perovskite&format=json
GET /result?el1=Ti&el2=O&nel=2&sg=P%2042/m%20n%20m&format=json
GET /1000000.cif
COD IDs are 7-digit integers. Append .cif for the crystallographic information file, or .html for the web page.
GET /result?id=1000000&format=json
format=json — JSON array of matching entriesformat=csv — CSV outputformat=lst — list of COD IDs only[
{
"file": "1526463",
"a": "4.759",
"b": "4.759",
"c": "12.992",
"alpha": "90",
"beta": "90",
"gamma": "120",
"vol": "254.94",
"sg": "R -3 c",
"formula": "Fe2 O3",
"title": "Refinement of the crystal structure of ...",
"journal": "Zeitschrift fuer Kristallographie",
"year": "1966",
"authors": "Blake, R.L.; et al."
}
]
The file field is the COD ID. Use it to fetch the CIF: https://www.crystallography.net/cod/{file}.cif