How to download the XANES of Sr

Can anyone help me to download XANES for Sr L2 edge?

Hi @Dulce_Maria_Guzman_B,

Sorry for the delayed reply. Here is how you would do it.

from mp_api.client import MPRester
from emmet.core.xas import Type, Edge

with MPRester("your_api_key") as mpr:
    docs = mpr.xas.search(spectrum_type=Type.XANES, edge=Edge.L2, absorbing_element="Sr")

– Jason