Materials information mismatch between the website and query from the pymatgen MPRester

I’m using pymatgen to create a data for AI model training purpose. When I was trying to use MPRester to query information by MPid. I find some of them are not same as the information from the website. Is there any error for that?

My code is like:
“with MPRester(MAPI_KEY) as mpr:
struc = mpr.get_structure_by_material_id(MPid)”
But the structure info of this is quite different from the website. For instance the materials id mp-1123, mp-19387…

If you’re using a legacy API key (16 characters) through pymatgen.ext.matproj.MPRester you would be connecting to our legacy API and would have to compare the results to our legacy website. However, the legacy data is outdated and will not be updated anymore. We recommend that you use the mp_api.client.MPRester from the new mp-api python client, or alternatively make sure that you’re using a new MP API key (32 characters) in pymatgen.ext.matproj.MPRester to connect to our new API. Note that, the latter might eventually stop to be supported, though. HTH.