Skip to main content

Programming concepts

What is an SDK?

Definition

An SDK is a bundle of tools, libraries, documentation and samples for building software on a particular platform or against a particular service.

Also known as: Software Development Kit, Devkit

SDK in more detail

Where an API is the interface and a library is code you call, an SDK is the whole kit for a target: the client libraries, but also the command-line tools, emulators, debuggers, compilers, project templates and reference material you need to build, test and ship for that platform. The Android SDK, the iOS SDK and the .NET SDK are the canonical examples — you cannot build for those platforms without them.

The service sense is looser but far more common today. When a company advertises an SDK for its API, it usually means an idiomatic client library for each language that handles authentication, request signing, retries with backoff, pagination, error types and response parsing, so you are not assembling HTTP requests by hand. That is a library with a marketing name, and there is nothing wrong with that — the retry and pagination logic alone is worth not rewriting.

Choosing one has real consequences. An official SDK usually tracks the API closely and encodes the provider's own guidance on retries and rate limits, but it adds a dependency, can lag behind new endpoints, and may bundle far more than you use. Calling the HTTP API directly is always available as a fallback, and for a single endpoint it is often the smaller choice.

SDK example

Platform SDK — the whole toolchain
  Android SDK   compiler, build tools, emulator, platform
                libraries, adb, profiler, docs
  .NET SDK      dotnet CLI, compilers, MSBuild, templates,
                the base class library

Service SDK — an idiomatic client for an API
  # without: you build the HTTP call yourself
  requests.post("https://api.stripe.com/v1/charges",
                auth=(key, ""), data={...})

  # with: auth, retries, pagination and types handled
  import stripe
  stripe.api_key = key
  charge = stripe.Charge.create(amount=4900, currency="usd")

  API  = the contract
  SDK  = the kit for working against it in your language

SDK — common questions

What is the difference between an API and an SDK?
An API is the interface a service or platform exposes. An SDK is the toolkit you use to build against it — libraries, tooling, docs and samples. One API commonly has SDKs in a dozen languages.
Is an SDK the same as a library?
Not quite. Every SDK contains libraries, but a full SDK also brings tools such as compilers, emulators, CLIs and templates. Many things marketed as SDKs today are, strictly, just client libraries.
Should I use the official SDK or call the API directly?
The SDK is usually better for anything non-trivial, since it encodes authentication, retry and pagination behaviour the provider recommends. Direct HTTP calls are reasonable for one or two endpoints, or when the SDK is unmaintained or too heavy.

Keep reading

Every definition in the set is indexed A-Z in the developer glossary, and the cheat sheets cover the syntax once you know what you are looking for.

Browse the A-Z glossary