Getting BibTex references through API

Hello, I was wondering whether the MPRester API has an ability to pull the BibTex citation file for specific material id? [citations for the experimental (initial) compound]

I’m trying to match some Materials Project entries to the COD database, and found that the reference paper matching is the most reliable way. The data set is rather large (around 10k entries), hence I’d prefer to use the API; however, I didn’t manage to find the relevant tag in the documentation. Thank you in advance.

Hi Oleg, sorry for the delay - I had the same problem a while ago, for some materials, there’s citation information embedded in the “snl” property. Here’s an example of how you can access it:

from pymatgen.ext.matproj import MPRester

with MPRester() as mpr:
    data = mpr.query(
          {"material_id": "mp-66"}, 
          ["snl"]
    )

print(data[0]['snl'].references)

Output:

@article{Berlin1972,
    author = "Berlin, B.",
    title = "Formationn of the intermediate phases of the system thorium-copper in liquid sodium",
    journal = "Journal of the Less-Common Metals",
    year = "1972",
    volume = "29",
    pages = "337-348",
    ASTM_id = "JCOMAH"
}

@article{Baenziger1956,
    author = "Baenziger, N.C. and Rundle, R.E. and Snow, A.I.",
    title = "Structures of the compounds Th2 Cu, Th Cu2, Th2 Zn and Th Hg3",
    journal = "Acta Crystallographica (1,1948-23,1967)",
    year = "1956",
    volume = "9",
    pages = "93-94",
    ASTM_id = "ACCRA9"
}
...