Problem in getting data from MP using API

I’m facing problem when I am using API

with MPRester(“my_api_key”) as mpr:
docs = mpr.summary.search(elements=[“Si”, “O”],
band_gap=(0.5, 1.0))

What could be the reason?
Please help

It’ll be challenging for us to help you without a description of the problem. Please share an actual error message with us. Thanks!

Sir @tschaume I got this error
raise MPRestError(
mp_api.client.core.client.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”}

when I changed the code to:
with MPRester(“my_api_key”) as mpr:
structure = mpr.get_structure_by_material_id(“mp-1086”)
print(structure)

Error i got is
raise MPRestError(
mp_api.client.core.client.MPRestError: REST query returned with error status code 404 on URL https://api.materialsproject.org/materials/?deprecated=False&_fields=material_id&task_ids=mp-1086&_limit=1000 with message:
Not Found

Update to the latest version of the mp-api client: pip install -U mp-api

Thread closed due to inactivity, please open a new thread to address related issues.