SDKs
To add address search to a web form, use a library rather than an SDK. Address Finder adds address autocomplete and Postcode Lookup adds a postcode search. Both come in React versions: Address Finder for React and Postcode Lookup for React. 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 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, 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 has a typed method for each API operation and returns Pydantic models. It runs on Python 3.12 or later.
pip install ideal-postcodesTypeScript
@ideal-postcodes/sdk has a typed function for each API operation, over native fetch. It runs in browsers and Node.js 22 or later.
npm install @ideal-postcodes/sdkPHP
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.
composer require ideal-postcodes/sdkGo
go.ideal-postcodes.co.uk/sdk has a typed method for each API operation and uses only the Go standard library. It needs Go 1.26 or later.
go get go.ideal-postcodes.co.uk/sdkRuby
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.
gem install ideal_postcodes