I started doing the Codecademy lessons How to use APIs with Python. They’re not the greatest, but they’re helpful.
I quickly learned that the lessons are using Python 2, for which the requests module is apparently built-in. But if you try to import requests in a Python 3 script, no good.
All you need to do to make it work is install the requests library, like so:
This is a pretty neat library for working with APIs: Read more here.