API - Filter structures by elements

Dear developers,

I’ve been using the API of materials project to download a large quantity of materials. Ideally I would like to avoid materials that contain certain elements, such as radioactive ones. Is it possible to filter out any materials that contain certain atomic species? I tried to use the “elements” or “chemsys” field but neither of them apply to this case. Thank you very much in advance.

Best regards,
Bruno Cucco
University of Texas at Austin
Oden Institute
Center for Quantum Materials Engineering
201 E. 24th Street, POB 4.102, Austin, Texas, 78712
Office 5.340

Hi @bcucco,

You should be able to use the exclude_elements field. For example, mpr.materials.summary.search(exclude_elements=["Si", "O"])

– Jason

Thank you Jason!

Bruno

1 Like