How To Make API Call In Python (VSCode)

preview_player
Показать описание
(We're free online community, meet other makers!)

Making API requests in Python is easy! All you have to do is import requests module and then call the get method on the request object, by passing it your API URL.

00:00 How to make API requests in Python
00:49 Making a call to weather API in python with requests object
Рекомендации по теме
Комментарии
Автор

I know I messed up the last part by saying i'm using ["location"] instead of ["current"] but you get the idea 😃

ghosttogether
Автор

thank you so much! I'm trying to understand APIs, calls and just fetching data. How do you usually go about finding an API to perform a particular task? Just Google? Or are there certain sites that store information to find the API you might need?

austintaylor