Quick guide on working with Data APIs in Python
👋 Hi there 👋 all my content is free for Medium subscribers, if you are already a subscriber I just wanted to say thank you! 🎉 If not and you are considering subscribing, you can use my membership referral link, you will be supporting this and other high quality content, Thank you! ⭐️ Subscribe to Medium! ⭐️
Making API requests, parsing and filtering responses is one of those cool things one can easily do in python ( and other languages ), but it can seem inaccesible when you are starting out, so here’s my attempt at a quick overview and guide to working with data APIs in Python….
In a nutshell there is some data out there you want to get or access programmatically with a python script and this process can be divided into requesting, parsing and filtering a response...A bit on terminology :API: Application Programming Interface A specification that the data provider gives you so you can access and get their data, if they don't provide one the alternative is usually web scraping which we won't cover here.Endpoint: Where to send your request, usually some url like "https://api.dataprovider"Request: The act of…