2D Materials Explorer¶
Browse, search, and visualize properties of ~1,100 2D monolayer materials from the JARVIS-DFT 2D dataset. Filter by formula, elements, space group, band gap, exfoliation energy, and magnetic state. Full property card with 30+ fields per material.
Overview¶
Data Source
JARVIS dft_2d — ~1,100 2D monolayer entries from jarvis.db.figshare.data('dft_2d').
Endpoints¶
POST /twod/search — Search materials¶
curl -X POST "https://atomgpt.org/twod/search" \
-H "Authorization: Bearer sk-XYZ" \
-H "Content-Type: application/json" \
-d '{"formula": "MoS2"}'
| Field | Type | Description |
|---|---|---|
formula |
string | Chemical formula |
jid |
string | JARVIS ID |
elements |
list[string] | Element symbols |
element_mode |
string | "any" or "all" |
spacegroup |
string | Space group symbol or number |
bandgap_min/max |
float | OptB88vdW band gap range (eV) |
exfol_min/max |
float | Exfoliation energy range (meV/atom) |
magnetic |
string | "yes", "no", or null (any) |
Response: jid, formula, spg_symbol, bandgap, mbj_bandgap, exfoliation_energy, magmom, spillage, ehull, formation_energy.
GET /twod/data/{jid} — Full record¶
Response: 30+ fields: bandgap, mbj_bandgap, hse_gap, formation_energy, exfoliation_energy, magmom, spillage, slme, ehull, Tc_supercon, epsx/y/z, mepsx/y/z, max_efg, dfpt_piezo_max_eij, max_ir_mode, n/p-Seebeck, bulk/shear modulus, poisson, structure info.
Python Examples¶
AGAPI Agent¶
from agapi.agents import AGAPIAgent
import os
agent = AGAPIAgent(api_key=os.environ.get("AGAPI_KEY"))
response = agent.query_sync("Show 2d materials explorer data")
print(response)
References¶
- K. Choudhary et al., Sci. Rep. 7, 5179 (2017) DOI
- atomgptlab/jarvis