Hello,
I am trying to pull data from the summary search and getting an error. Previously, this code was working fine. Here is my code:
with MPRester(api_key=“OU5tShtk9i0A5wQHhAl7t2wOPnFKKdbb”) as mpr:
docs = mpr.summary.search(fields=[“nsites”, “composition”, “volume”, “symmetry”, “formula_pretty”, “material_id”, “last_updated”,
“structure”, “uncorrected_energy_per_atom”, “energy_per_atom”, “formation_energy_per_atom”, “is_stable”, “theoretical”, “deprecated”, “deprecation_reasons”])
#list_of_available_fields = mpr.summary.available_fields
print(docs)
Here is the error:
MPRestError: REST query returned with error status code 404 on URL https://api.materialsproject.org/summary/?_limit=1000&_fields=nsites%2Ccomposition%2Cvolume%2Csymmetry%2Cformula_pretty%2Cmaterial_id%2Clast_updated%2Cstructure%2Cuncorrected_energy_per_atom%2Cenergy_per_atom%2Cformation_energy_per_atom%2Cis_stable%2Ctheoretical%2Cdeprecated%2Cdeprecation_reasons with message:
Response {“message”:“no Route matched with those values”}