Mp_api charge density from material_id convenience function gives MPRestError

with MPRester(api_key) as mpr:
    chgcar = mpr.get_charge_density_from_material_id("mp-149")
MPRestError: REST query returned with error status code 403 on URL https://api.materialsproject.org/charge_density/?task_ids=mp-655585&task_ids=mp-1057373&task_ids=mp-1059589&task_ids=mp-1440634&task_ids=mp-1791788&_limit=10&_fields=last_updated%2Ctask_id%2Cfs_id with message:
Response {
  "message":"You cannot consume this service"
}

Sort of a bump to Can't access charge density · Issue #631 · materialsproject/api · GitHub

This is the example from the docs

Hi @sgbaird,

as of now, this endpoint is not open to the public yet (but hopefully will be soon). I added your MP account with the gmail address to the group that has permissions to use the endpoint.

best,
Patrick

1 Like

To clarify; it is open to the public, but via request. We definitely hope for it to be fully public very soon however since the paper for this dataset was just accepted!

1 Like