# SDKs

To add address search to a web form, use a library rather than an SDK. [Address Finder](/docs/address-finder.md) adds address autocomplete and [Postcode Lookup](/docs/postcode-lookup.md) adds a postcode search. Both come in React versions: [Address Finder for React](/docs/address-finder/react.md) and [Postcode Lookup for React](/docs/postcode-lookup/react.md). The libraries provide the interface, keyboard support and accessibility, then fill in your address fields.

## When to use an SDK

Use an SDK when you need:

* **Every current API endpoint.** Address search, postcode and UPRN lookup, address cleanse, email and phone validation, plus key, licensee and configuration management.
* **Programmatic access.** Call the API from your own code, such as a server, a script or a data pipeline.
* **A custom integration.** Build your own interface or workflow where the libraries do not fit.

For a one-off call, `fetch` with the [API reference](/docs/api.md) is enough.

## Coverage

Every SDK covers every public API operation, including key, licensee and configuration management.

Each is generated from the [Ideal Postcodes OpenAPI spec](https://openapi.ideal-postcodes.co.uk), the same contract the API reference is built from. Their methods, parameters and response types come from it, not from hand-written code.

## Available SDKs

### Python

[`ideal-postcodes`](https://pypi.org/project/ideal-postcodes/) has a typed method for each API operation and returns Pydantic models. It runs on Python 3.12 or later.

```bash
pip install ideal-postcodes
```

[Get started with Python](/docs/sdks/python.md)

### TypeScript

[`@ideal-postcodes/sdk`](https://www.npmjs.com/package/@ideal-postcodes/sdk) has a typed function for each API operation, over native `fetch`. It runs in browsers and Node.js 22 or later.

```bash
npm install @ideal-postcodes/sdk
```

[Get started with TypeScript](/docs/sdks/typescript.md)

### PHP

[`ideal-postcodes/sdk`](https://packagist.org/packages/ideal-postcodes/sdk) wraps every current API operation in a typed method over any PSR-18 HTTP client. It needs PHP 8.2 or later.

```bash
composer require ideal-postcodes/sdk
```

[Get started with PHP](/docs/sdks/php.md)

### Go

[`go.ideal-postcodes.co.uk/sdk`](https://github.com/ideal-postcodes/go-sdk) has a typed method for each API operation and uses only the Go standard library. It needs Go 1.26 or later.

```bash
go get go.ideal-postcodes.co.uk/sdk
```

[Get started with Go](/docs/sdks/go.md)

### Ruby

[`ideal_postcodes`](https://rubygems.org/gems/ideal_postcodes) wraps every current API operation in a method with keyword arguments, with RBS signatures and no runtime dependencies. It needs Ruby 3.3 or later.

```bash
gem install ideal_postcodes
```

[Get started with Ruby](/docs/sdks/ruby.md)
