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! While you're at it, check out some resources Treehouse students have shared here.

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

APIs

Kim Swenson
Kim Swenson
6,379 Points

Are there any courses or videos that give a basic overview of what APIs are and what they do?

I'm looking for just a broad explanation of APIs, some examples of how they are used, what they do, etc. I see the Alexa Skill course, but I don't see any mention of explaining APIs. Thanks in advance!

2 Answers

Raffael Dettling
Raffael Dettling
32,999 Points

Actually there is an API video for Alexa .. (https://teamtreehouse.com/library/topic:apis) But i recommend to take the normal starter courses like java or c# where APIยดs are also shown.

Like Raffael pointed out, there are courses that involve APIs, but not really any courses that are just about APIs, other than the one he mentions. In general, though, APIs are methods or protocols that you, as the programmer, can utilize to accomplish certain things more easily. APIs can do all kinds of things, but an example is in a web application, where you might use an API to obtain certain data for your application to use. An example API is Open Weather Map, which you can use to get weather data.

If you use a weather API, basically your application opens a request to the API, and gets a response back. Depending on the format of the response, you will handle the response and format it in a way that you can use, then you're free to use that response to offer things like real-time data.