Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entries in doi endpoint do not have 'material_id' field #907

Open
slee-lab opened this issue Apr 17, 2024 · 0 comments
Open

Entries in doi endpoint do not have 'material_id' field #907

slee-lab opened this issue Apr 17, 2024 · 0 comments

Comments

@slee-lab
Copy link

Hi,

I wanted to query a material_id and get the dois in Materials Project API.

I am using mp-api 0.41.2 and python 3.10.
I wanted to use doi endpoint for this.
mpr.doi.available_fields
gives ['doi', 'bibtex', 'material_id']

Issue 1. All my queries using material_id seems to return a blank list.
Referring to #612, I tried
mpr.doi.get_data_by_id('mp-771054') which returns None.
mpr.doi.search(material_ids=['mp-771054']) which returns blank list.

Issue 2. I did download all the entries in doi endpoint
dois = mpr.doi.search(num_chunks=100,chunk_size=1000,all_fields=True,fields=['doi','material_id'])
but all of them have 'fields_not_requested': ['bibtex', 'material_id'] and 'material_id' as None.

Question 1. Is the doi endpoint still under development? Is there a particular way I should query in this endpoint?
Question 2. If doi endpoint should be updated, could you advise on how to retrieve the dois for a given mpid as of now?

Thank you.

@slee-lab slee-lab changed the title Entries in doi endpoint does not have 'material_id' field Entries in doi endpoint do not have 'material_id' field Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant