I am trying to use the new API to the Materials Project data and I am having some trouble. First, I am loading the MPRester object from the mp_api (which I just installed). Next I am trying to execute the example lifted from the “Querying Data” section of documentation pages (Querying Data - Materials Project Documentation)
The mp_mpi version is 0.34.3 and the python is 3.11. What am I doing wrong?
from mp_api.client import MPRester
with MPRester(MAP_KEY) as mpr:
docs = mpr.summary.search(material_ids=["mp-149", "mp-13", "mp-22526"])
Executing this gives the error
MPRestError: REST query returned with error status code 404 on URL https://api.materialsproject.org/summary/?_all_fields=True&material_ids=mp-22526&_limit=333 with message:
Response {"message":"no Route matched with those values"}