6mo
Service Documentation
Learn how to interact with Materials Science API using the Ouro SDK or REST API.
API access requires an API key. Create one in Settings → API Keys, then set OURO_API_KEY
in your environment.
Getting Started
Use the Ouro SDK to retrieve service metadata and interact with the API programmatically.
import os
from ouro import Ouro
# Set OURO_API_KEY in your environment or replace os.environ.get("OURO_API_KEY")
ouro = Ouro(api_key=os.environ.get("OURO_API_KEY"))
service_id = "663939f8-1dab-4b9a-88ed-1b1c38362791"
# Retrieve service metadata
s = ouro.services.retrieve(service_id)
print(s.name, s.visibility)
# Optionally read the OpenAPI spec
spec = ouro.services.read_spec(service_id)
print(spec.get("openapi"))
OpenAPI Specification
Download the complete OpenAPI spec for this service.
Available Endpoints
POST
/structure/cost
Calculate the estimated raw material cost per kg
POST
/structure/supercell
Create a supercell from a material
POST
/structure/info
Get basic structural information from a CIF file
POST
/magnetism/curie-temperature
Predict the Curie temperature of a material
POST
/magnetism/magnetic-saturation
Calculate magnetic saturation and related properties
Materials Science API
Version 1.0.0Materials science endpoints
Loading compatible actions...
Loading comments...