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.

Android Build a Weather App Exploring an API What's an API? What Does it Mean to Use One?

Kevin Grifo
Kevin Grifo
9,824 Points

SDK vs API?

Can someone give a more detailed explanation of the difference between SDKs and APIs? Thanks

2 Answers

Brendon Butler
Brendon Butler
4,242 Points

An SDK (Software Development Kit). Is typically a set of tools or software that allow you to build software for a platform. Examples: JDK (Java Development Kit), Game Engines, etc.

An API (Application Programming Interface) is an interface that allows different software to interact with each other.

Lets say you have a banking application. And you want other programs to be able to integrate with it. The important code is typically obfuscated and private. While the rest of the code is accessible to the user. These would include methods such as withdrawing and depositing money. The hidden elements would be things like public/private key generation, user accounts, etc.

If this were an SDK, all of this information would typically be public. So you probably wouldnt want to develop a "banking" SDK for a company. Instead, you would create an API.

Kevin Grifo
Kevin Grifo
9,824 Points

Great explanation I truly appreciate the response!