Downloading all piezoelectric materials now that MPRester.query is deprecated

A method existed several years ago per this topic. However, the function used MPRester.query is now deprecated. How can one download a list of all materials for which a particular property has been calculated?

I specifically care about the ‘structure’ property for piezoelectrics (lattice parameters).

Please refer to our API docs at Using the API | Materials Project Documentation and use mpr.materials.piezo.search() HTH

I assume you mean mpr.materials.piezoelectric.search() since otherwise one gets
AttributeError: 'MaterialsRester' object has no attribute 'piezo'. Doesn’t appear to return 'structure' properties but I guess I can pull that from somewhere else.

Hi @sbernierjhu,

The structure field is currently not included in the schema of the document model for the piezoelectric endpoint, we’ll be rolling out a data release to update that soon.