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.

HTML jQuery Basics (2014) Introduction to jQuery Ways to Include jQuery in a Project

what is an API


I often hear people talk about APIs. I have heard people say look at the Java API, and now JQuery also has its API.

Can someone please tell me the definition of an API? My guess is that API is a reference manual for that particular programming language, which include all the methods, properties or any info about it , but I am not sure this definition is correct


2 Answers

James Barnett
James Barnett
39,199 Points

There are basically 2 types of APIs, the first type is basically what you explained. The 2nd is a Web API like how Twitter lets you write code and interact with their service.

ryan champin
ryan champin
16,836 Points

thats exactly what an API is!