from mp_api.client import MPRester
with MPRester(“api”) as mpr:
dos1 = mpr.get_dos_by_material_id(“mp-149”)
it is giving me error:
MPRestError: REST query returned with error status code 403 on URL https://api.materialsproject.org/materials/electronic_structure/mp-149/?_limit=1&_fields=dos with message: Response {“error”: “You are using deprecated API endpoints. Please read our documentation (https://docs.materialsproject.org) and upgrade to the latest version of the mp-api client (mp-api · PyPI).”, “version”: “blocked”}
I tried upgrading mp-api but didn’t resolve the issue.