Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Asynchronous Programming with JavaScript What is Asynchronous Programming? Examples of Synchronous and Asynchronous Code

karan Badhwar
.a{fill-rule:evenodd;}techdegree seal-36
karan Badhwar
Web Development Techdegree Graduate 18,111 Points


I heard at multiple times API, what is it, did I miss something from earlier videos regarding API ? I am not sure but I think so they never explained it before right, they gonna explain about API's ahead in this course?

1 Answer

Charlie Palmer
Charlie Palmer
15,443 Points

An API is an Application Interface. API's are often used connected to in order to retrieve data. An example of an API would be Gravatar. Gravatar stores users profile pictures which they associate to an MD5 hash of the users email address. How would this API work? 1) Make a GET request to the API using a key, secret or in this case, a users MD5 hashed email address. 2) The API will process this request and then return the associated profile picture.

Hopefully this clears some of it up.

If it didn't then here is the definitely pulled from google:

An application programming interface is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build or use such a connection or interface is called an API specification.