Download materials from battery explorer

Hi I want to download all data (4351 as shown in attached screenshot), with the properties, from battery explorer section. How can I proceed? What are the criteria that I should mention while querying such materials? Any help would be really appreciated


.

Hi Huta :wink:

Have you tried to use the new API?
Take a look at the documentation, I think the set of data you need is available through the /insertion_electrodes.

Maybe @munrojm can confirm that.

1 Like

Thanks. But how do I use it with API? Can you please point out the nice documentation for this?

Please, have a look at Materials Project - API and the different links in there

1 Like

Did you manage to get the dataset

Not yet. Do you have any idea about it?

Nope, I’ve also been traying but not getting anything

1 Like

Hi,
I also want to get that dataset. Has anyone got it now? Thanks

@Huta_Banjade @Mbabala @manojchh58 Please refer to our documentation: Getting Started | Materials Project Documentation. If you’re running into any issues, please include a short code snippet to reproduce it.

Thank you I got the data. Here is the code I used,

from mp_api.client import MPRester

mpr = MPRester("your-api-key-here")
print(mpr.materials.insertion_electrodes.available_fields)
docs3 = mpr.materials.insertion_electrodes.search()

# then to get the data in pandas dataframe,

data = []
for doc in docs3:
    row = {
        "battery_id": doc.battery_id,
        "battery_formula": doc.battery_formula,
        "nelements": doc.nelements,
        "working_ion": doc.working_ion,
        "max_voltage_step": doc.max_voltage_step,
        "average_voltage (V)": doc.average_voltage,
        "max_delta_volume (%)": doc.max_delta_volume,
        "average_voltage (V)": doc.average_voltage,
        "capacity_grav (mAh/g)": doc.capacity_grav,
        "capacity_vol (mAh/cc)": doc.capacity_vol,
        "energy_grav (Wh/kg)": doc.energy_grav,
        "energy_vol (Wh/l)": doc.energy_vol,
        "stability_charge (MeV/atom)": doc.stability_charge,
        "stability_discharge (MeV/atom)": doc.stability_discharge,
    }
    data.append(row)
# we can add any available features
# Creating a pandas DataFrame
df = pd.DataFrame(data)

# Displaying the DataFrame
print(df)

Thank you.

2 Likes

The data is now updated with more entries. If anyone needs help in getting the data please mention me. I will help. Thank you.