API vs SDK
People think an SDK is the API, and it is not. The API is the set of requests a service will answer, and the replies it sends back. An SDK is a library you add to your code that sends those requests for you. You can always call the API without the SDK, but not the other way round.
Application Programming Interface (API)
Rules that let one program ask another for data or work. A menu for code.
An API is a set of rules that lets one program ask another for data or work. It lists what you can ask for and what you will get back. You never see the code inside; you only use the doors it offers. A weather app asks a weather API for today's forecast. Most APIs today are reached over the web with HTTP.
Software Development Kit (SDK)
A box of tools, code and guides for building on one service.
An SDK is a box of tools for building on one platform or service. It usually holds libraries, sample code, guides and sometimes a test device on screen. A payment company gives out an SDK so apps can take payments with a few lines. Phone makers give out one so people can build apps for their phones. The SDK hides the hard parts behind simple functions.
In one line
- Application Programming Interface (API)
- Rules that let one program ask another for data or work. A menu for code.
- Software Development Kit (SDK)
- A box of tools, code and guides for building on one service.