According to the V2019.05 update in the release log, deprecated materials are accessible via API. Can anyone post an example of how this is done?
The API documentation doesn’t appear to talk about this case, but I went ahead and tried adding “deprecated”: True to a pymatgen MPRester query a handful of ways:
.query(criteria={"material_id": {"$in": idlist}}, properties=proplist, deprecated=True)
.query(criteria={"material_id": {"$in": idlist}}, properties=proplist, deprecated="true")
.query(criteria={"material_id": {"$in": idlist}, "deprecated":True}, properties=proplist)
.query(criteria={"material_id": {"$in": idlist}, "deprecated":true}, properties=proplist)
where the first two return unexpected keyword errors for deprecated, and the last two don’t retrieve any of the deprecated materials in my list.
I also tried using the command-line method with “curl” by adding an additional flag -F deprecated=true
or -F deprecated="true"
but neither request returns the deprecated materials.