I would like to access the data in the “Wyckoff” field in the “Crystal Structure” section of any given material (example material page: mp-113) – also obtainable by clicking the “Export Materials Details” button just above the Crystal Structure section.
Is there a way to do this using the mp_api Python library (i.e. for large numbers of materials)? I have looked through the results for likely-sounding endpoints (as below), but haven’t found, for instance, the 2c that appears under “Wyckoff” on the example page. Have I missed it in a subdocument in these results, maybe? – or am I looking in the wrong places?
with MPRester(api_key="...") as mpr:
mp_mat = mpr.materials.search(material_ids=["mp-113"])
mp_crys = mpr.materials.robocrys.search_docs(material_ids=["mp-113"])
mp_core = mpr.materials.core.search(material_ids=["mp-113"]) # Is this deprecated now?
e_struct = mpr.materials.electronic_structure.search(material_ids=["mp-113"])
Thank you! Yes, I see the Wyckoff field at the materials.chemenv endpoint now.
A followup question: there are some returned materials that show an empty list for wyckoff_positions when queried by MPRester, though their web page shows values under ‘Wyckoff’; for example, mp-12734, which has 1a, 2c, 3g on its materials page. Do you know where the web page data is coming from in those cases?