Materials API

Complete REST API docs for materials endpoints

API Overview

Base URL, versioning, response format, and general conventions for the MatCraft Materials API.

5 min read
api
overview
rest

Authentication

JWT tokens, OAuth providers, and guest access for the MatCraft API.

5 min read
api
authentication
jwt

List Materials

GET /materials endpoint with all filter parameters, sorting, and pagination.

6 min read
api
materials
search

Get Material Detail

GET /materials/{id} endpoint returning full material properties and structure data.

5 min read
api
materials
detail

Export Structure

GET /materials/{id}/export/{format} to download crystal structures as CIF, POSCAR, or XYZ.

4 min read
api
export
cif

Similar Materials

GET /materials/{id}/similar to find structurally and compositionally related materials.

4 min read
api
similar
discovery

Scatter Plot Data

GET /materials/scatter to retrieve property pairs for visualization scatter plots.

4 min read
api
scatter
plot

Band Structure

GET /electronic/bandstructure/{mp_id} to retrieve electronic band structure data.

4 min read
api
band-structure
electronic

Density of States

GET /electronic/dos/{mp_id} to retrieve total and element-projected DOS data.

4 min read
api
dos
electronic

XRD Simulation

GET /electronic/xrd/{mp_id} to retrieve simulated powder X-ray diffraction patterns.

4 min read
api
xrd
diffraction

Phase Diagram

GET /electronic/phase_diagram to compute convex hull phase diagrams for chemical systems.

4 min read
api
phase-diagram
convex-hull

Supercell Builder

POST /builder/supercell to generate expanded periodic structures from unit cells.

4 min read
api
builder
supercell

Surface Builder

POST /builder/surface to generate surface slab structures with specified Miller indices.

4 min read
api
builder
surface

Nanoparticle Builder

POST /builder/nanoparticle to carve spherical nanoparticles from bulk crystal structures.

4 min read
api
builder
nanoparticle

Substitution Builder

POST /builder/substitute to replace elements in a crystal structure for doping studies.

4 min read
api
builder
substitution