I am a bit new to using the Materials project api. I have it working but I need to pull the entire database specifically looking at all the uncorrected and corrected formation energies. I can’t seem to figure out how to do this.
To do this you should use the Materials API. Materials Project - API and I suggest using the MPRester in pymatgen to access it.
Thanks for your comment. I did this and I have the api working. I even went through your examples and have those working. I guess what I am missing is that every example I did, had search by a specific material id. I want to pull all the uncorrected and corrected formation energies for all the materials and not by specific material id and I am lost on what to do for that
If you want the most updated data you can do the following:
with MPRester("your_api_key") as mpr:
docs = mpr.thermo.search(fields=["material_id", "uncorrected_energy_per_atom", "energy_per_atom"])
Make sure you use the API key from Materials Project - API
– Jason