Accesing phonon data with new and legacy APIs

Hi there

I was trying to get the materials with phonon calculations. Using the legacy API it would be simple to query MP simply by passing {"has": "phonons"} as criteria to the MPRester in python.

My question is: as the legacy API is frozen with data from v2021.03.13, would I possibly be losing new data by using the legacy API?

A second more general question: what would be the substitute for the “has” key in the new API?

Hi @Elton,

For phonons, you aren’t missing any new data with the freeze as of right now. Also, the substitute is has_props in the new API client.

– Jason

1 Like