im a beginner to programming so i was wondering if you could tell me what you put in google search to find the random API you found. like how did you know what type of API to look for and how did you know it would use JSON and how did you know it would specifically return covid data??
The link you found seems like a great API for covid data.
JSON is the standard format for most APIs but there is also XML. It’s just the way the data (text) is formatted. The link you provided says the data will be in JSON format. The documentation for the API will tell you what data specifically it will give you and how you need to ask for it. Asking for data is just sending a request, for example, typing in google.com is sending a request for google servers to provide you with their homepage data which is formatted in HTML. Asking an API for something is just like that, only the address is different and the text they send back includes information formatted in JSON format.
Do a search for “what is an api” and “what is JSON” on YouTube and you’ll understand in no time. Every api is different so you have to learn the basics and even then, you’ll have to read the documentation for each api you plan on using as they will be different in how you ask and what they will give you.
1
u/fil1983 Jun 18 '20
It’s just an API I found with a google search. This was early on so I’m sure there are better APIs now.