Aller au contenu
GET /v1/search

Search crystal structures by formula or text

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/cod-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/cod-api/v1/search" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cod-api/v1/search", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cod-api/v1/search");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/cod-api/v1/search",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "mode": "formula",
        "count": 25,
        "query": "O2 Ti",
        "total": 39,
        "structures": [
            {
                "url": "https://www.crystallography.net/cod/1010942.html",
                "year": 1924,
                "title": "Zur Kristallstruktur von Anastas und Rutil. (II. Teil. Die Anastasstruktur).",
                "cod_id": "1010942",
                "formula": "O2 Ti",
                "mineral": "Anatase",
                "space_group": "I 41/a m d :1"
            },
            {
                "url": "https://www.crystallography.net/cod/1526931.html",
                "year": 2000,
                "title": "Rietveld analysis of electron powder diffraction data from nanocrystalline anatase, Ti O2",
                "cod_id": "1526931",
                "formula": "O2 Ti",
                "mineral": null,
                "space_group": "I 41/a m d :2"
            },
            {
                "url": "https://www.crystallography.net/cod/1528778.html",
                "year": 2006,
                "title": "Structure of beta - Ti O2",
                "cod_id": "1528778",
                "formula": "O2 Ti",
                "mineral": null,
                "space_group": "C 1 2/m 1"
            },
            {
                "url": "https://www.crystallography.net/cod/1530026.html",
                "year": 1988,
                "title": "Ti O2-II. Ambient pressure and structure refinement",
                "cod_id": "1530026",
                "formula": "O2 Ti",
                "mineral": null,
                "space_group": "P b c n"
            },
            {
                "url": "https://www.crystallography.net/cod/1530150.html",
                "year": 1977,
                "title": "An electron-diffraction investigation of titanium dioxide in thin films",
                "cod_id": "1530150",
                "formula": "O2 Ti",
                "mineral": null,
                "space_group": "P 42/m n m"
            },
            {
                "url": "https://www.crystallography.net/cod/1530151.html",
                "year": 1977,
                "title": "An electron-diffraction investigation of titanium dioxide in thin films",
                "cod_id": "1530151",
                "formula": "O2 Ti",
                "mineral": null,
                "space_group": "I 41/a m d :1"
            },
            {
                "url": "https://www.crystallography.net/cod/1532819.html",
                "year": 2003,
                "title": "Intergrown niobian rutile phases with Sc- and W-rich ferrocolumbite: an electron-microprobe and Rietveld study",
                "cod_id": "1532819",
                "formula": "O2 Ti",
                "mineral": null,
                "space_group": "P 42/m n m"
            },
            {
                "url": "https://www.crystallography.net/cod/1534781.html",
                "year": 1984,
                "title": "High Temperature Structure
…