Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Radosław Kalina13,085 Points
When we should use API ?
I still do not get what exacly API is. (I saw course about it at Treehouse and few more from the internet). In last flask course ("Building a social network..") we made an app where users can make a new posts, saw this posts etc. Can somebody explain me what is a difference between that social app and app from this course. Why we use API in this course and why we do not use it in previous course ? When we want to build API and when we do not need it ?
Dmitry Polyakov4,989 Points
You have to use API to be able to get data from a server. APIs have various data. For example, if you want to get current weather you can find some weather API, send request to it and get info on actual weather at some location.