Getting started with the API

I have been trying to make use of the API for the first time. However, I am having some difficulties in getting started. Specifically, I am getting different results when running queries in the public shared “Binder” Jupiter notebook and my local python install. For example in Binder I get:

Which seems correct. However when attempting to run identical code the local python environment installed on my computer I get:


This is an effectively empty return without any error message. I suspect something about my local python installation in broken. When I check the installed versions of the API I have with pip I get:

Any suggestions on debugging steps for this short of a complete reinstall of my python environment?

It looks like you are running with a very old version of mp-api. Try updating just that package and re-running: pip install mp-api --upgrade

– Jason