Summary Data Error

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”}

Upgrade to the latest version of mp_api

Thanks. I thought I had done this but apparently I had not.

Hi Patrick,
This is a bit of another question. I have read a lot of your papers about the R2SCAN data and I am very excited about it. I saw that it is now the default for the themodynamic data. That means with the api summary search it is automatically pulling the R2SCAN data for the formation energy per atom or do I have to use the thermo tag to pull the data?

@casfrueh you should pull from the thermo endpoint. Summary is being updated to show the r2SCAN data now, and will be completely up to date in the next data release.

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