{"openapi":"3.1.0","info":{"title":"PROJECT486 Material Intelligence API","version":"1.0.0","description":"Materials search, comparison, screening and literature intelligence over open scientific databases (Alexandria, Materials Project, COD, NOMAD, OQMD; OpenAlex, Crossref). Every value carries its source. Authenticate with `Authorization: Bearer p486k_…` (organization API key) for metered access and higher rate limits; anonymous use is limited to 30 requests/minute.","contact":{"email":"ben@project486.org","url":"https://project486.org/mi"}},"servers":[{"url":"https://project486.org"}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"p486k_…"}}},"security":[{"apiKey":[]},{}],"paths":{"/api/mi/search":{"get":{"summary":"Materials Search","description":"Search by reduced formula (GaN, Ga2O3), chemical system (Ga-N) or 'contains Si C'. Results grouped by formula + space group with cross-source confidence.","parameters":[{"name":"q","in":"query","required":true,"description":"query","schema":{"type":"string"}},{"name":"sources","in":"query","required":false,"description":"comma list: alexandria,mp,oqmd,cod,nomad","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"per source, 1–50","schema":{"type":"integer"}},{"name":"exact","in":"query","required":false,"description":"0 = element system may contain other elements","schema":{"type":"string"}}],"responses":{"200":{"description":"records, groups, per-source status","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/mi/material":{"get":{"summary":"Material Property","description":"One entry with structure, computed density, properties, provenance, and the same formula in other sources.","parameters":[{"name":"source","in":"query","required":true,"description":"alexandria | mp | oqmd | cod | nomad","schema":{"type":"string"}},{"name":"id","in":"query","required":true,"description":"source entry id","schema":{"type":"string"}}],"responses":{"200":{"description":"record, related groups","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/mi/compare":{"get":{"summary":"Material Comparison","parameters":[{"name":"items","in":"query","required":true,"description":"2–6 comma-separated source:id pairs","schema":{"type":"string"}}],"responses":{"200":{"description":"materials + property table","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/mi/discover":{"post":{"summary":"Semiconductor Material Discovery","description":"Constraint screening on DFT data with transparent ranking. Presets: power, dielectric, packaging, thermal (heuristic).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"preset":{"type":"string","enum":["power","dielectric","packaging","thermal"]},"constraints":{"type":"object","properties":{"bandGapMin":{"type":"number"},"bandGapMax":{"type":"number"},"hullMax":{"type":"number"},"maxElements":{"type":"integer"},"mustInclude":{"type":"array","items":{"type":"string"}},"anyOf":{"type":"array","items":{"type":"string"}},"only":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}},"nonMolecular":{"type":"boolean"}}},"limit":{"type":"integer","minimum":1,"maximum":50}}}}}},"responses":{"200":{"description":"ranked candidates with score breakdown, filter and scoring formula","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/mi/literature":{"get":{"summary":"Literature search","parameters":[{"name":"q","in":"query","required":true,"description":"query","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"year","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"year","schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"description":"relevance | cited | recent","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1–50","schema":{"type":"integer"}}],"responses":{"200":{"description":"papers, total, publications per year","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/mi/doi":{"get":{"summary":"DOI verification (Crossref)","parameters":[{"name":"doi","in":"query","required":true,"description":"up to 10 comma-separated DOIs","schema":{"type":"string"}}],"responses":{"200":{"description":"verification results","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/mi/presets":{"get":{"summary":"Discovery presets and connected sources","responses":{"200":{"description":"presets, sources","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/mi/sources":{"get":{"summary":"Connected sources (probe=1 for live health)","parameters":[{"name":"probe","in":"query","required":false,"description":"1 = live check","schema":{"type":"string"}}],"responses":{"200":{"description":"sources","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}