Product updates

Changelog

A running record of what we ship across the API, address verification tools, dashboard, and integrations. Updated regularly.

Category

Ruby SDK

ideal_postcodes 3 is our new Ruby SDK for the Ideal Postcodes API. It has one method for every API operation, has no runtime dependencies and runs on Ruby 3.3 or later.

Details

  • Every operation: Postcode lookup, address search and autocomplete, UPRN lookup, address cleanse, places, email and phone validation, plus key, licensee and configuration management
  • No dependencies: Requests go through Net::HTTP and the standard library's JSON. Pass your own transport to use another HTTP client
  • Typed responses: Every response is an object generated from the OpenAPI spec, with one reader per field, and each dataset's native record has its own class, from PafAddress to UspsAddress
  • RBS signatures: The gem ships a signature for every method and reader, for Steep, Ruby LSP and other tools that read RBS
  • Clear errors: An HTTP error raises IdealPostcodes::ApiError with the HTTP status and the API's error code and message. A failed connection raises TransportError
  • Upgrading from 2.x: Version 3 is a new client. Module methods such as IdealPostcodes::Postcode.lookup give way to methods on a client object
  • Agent skill: npx skills add ideal-postcodes/skills gives coding agents the ideal-postcodes-ruby-sdk skill

Install with gem install ideal_postcodes, then start with the Ruby SDK documentation.

PHP SDK

ideal-postcodes/sdk is our PHP SDK for the Ideal Postcodes API. It has one typed method for every API operation, sends requests through the PSR-18 HTTP client already in your project and runs on PHP 8.2 or later. A Symfony bundle and a Laravel package wire it into each framework.

Details

  • Every operation: Postcode lookup, address search and autocomplete, UPRN lookup, address cleanse, places, email and phone validation, plus key, licensee and configuration management
  • Any HTTP client: Guzzle, Symfony HttpClient or any other PSR-18 client, found by php-http/discovery. There is no bundled transport to configure
  • Typed responses: Every response is a read-only object generated from the OpenAPI spec, and each dataset's native record has its own class, from PafAddress to UspsAddress
  • Static analysis friendly: Parameters are PHPStan array shapes and enums are literal types, so a misspelt argument fails analysis before the code runs
  • Typed errors: An HTTP error throws ApiException, with the HTTP status from getStatusCode() and the API error code from getCode()
  • Symfony bundle: ideal-postcodes/symfony-bundle configures your keys once and injects the client into your services. Symfony 6.4, 7 or 8
  • Laravel package: ideal-postcodes/laravel reads your keys from .env and provides the client through the container or an IdealPostcodes facade. Laravel 12 or 13
  • Agent skill: npx skills add ideal-postcodes/skills gives coding agents the ideal-postcodes-php-sdk skill

Install with composer require ideal-postcodes/sdk, then start with the PHP SDK documentation.

MCP Server

The Ideal Postcodes API is now an MCP server at https://api.ideal-postcodes.co.uk/mcp. Connect an AI agent to it and the model can verify and correct addresses, search for ones it is unsure of, look up postcodes and UPRNs and validate emails and phone numbers itself, with no integration code.

Details

  • Seven tools: cleanse_address, suggest_address, resolve_address, lookup_postcode, lookup_uprn, validate_email and validate_phone, each mirroring an existing API endpoint
  • Cleanse first: cleanse_address is the main tool. Give it a full address and it returns the verified, corrected version
  • Suggest when unsure: when an address is partial, mistyped or garbled, suggest_address searches speculatively and returns several candidates, narrowed by filters and biases. resolve_address returns the full address for the one chosen
  • Same billing as the API: Each tool costs what its endpoint costs. Suggestions are free, a resolve is one lookup and an unknown postcode costs nothing. BR8 7RE is a free test postcode
  • Your API key: Send it as Authorization: Bearer <key>. Use a backend key with no Allowed URLs; keys restricted to URLs are refused
  • Errors the model can read: A refusal such as no balance or a limit reached comes back as a tool result with the API's error code, so the agent can tell the user what to do
  • Protocol 2026-07-28: Claude Code connects out of the box and Codex CLI behind its mcp_2026_07_28 feature flag. Cursor and VS Code use an older protocol version and cannot connect yet
  • Agent skill: npx skills add ideal-postcodes/skills teaches coding agents the endpoint, the tools and when to use MCP rather than the HTTP API

Setup for each client is in the MCP server guide.

Python SDK

ideal-postcodes is our Python SDK for the Ideal Postcodes API. It has one typed method for every API operation, returns each response as a Pydantic model and runs on Python 3.12 or later.

Details

  • Every operation: Postcode lookup, address search and autocomplete, UPRN lookup, address cleanse, email and phone validation, plus key, licensee and configuration management
  • Typed arguments: Each method takes the API's parameters as keyword arguments, so Pyright and mypy catch a misspelt argument before the code runs
  • Inputs checked before sending: Ranges, lengths and allowed values are validated against the OpenAPI spec before a request leaves your machine
  • Responses checked on arrival: Each response is validated against the spec. A mismatch raises ProtocolError, which still carries the raw result
  • Typed errors: Failed requests raise APIError subclasses such as NotFoundError and RateLimitError, with the HTTP status, API error code and message
  • No silent retries: The SDK never retries on its own, so a billable lookup repeats only when your code repeats it
  • Two dependencies: HTTPX and Pydantic, nothing else
  • Agent skill: npx skills add ideal-postcodes/skills gives coding agents the ideal-postcodes-python-sdk skill

Install with pip install ideal-postcodes, then start with the Python SDK documentation.

International Address Cleanse

Cleanse Address now matches addresses outside the UK. Pass context with an ISO 3166-1 alpha-3 country code, such as context=USA or context=FRA, and the API returns the closest matching address from that country's dataset. Requests without context cleanse against the UK, as before.

Details

  • One response shape: Every country returns a standardised address in match, the source record in match.native, and the same confidence score and Match Level indicators
  • Coverage follows your key: The address datasets your API key is licensed for decide which countries it can cleanse
  • Rebuilt matching: A new ranking model improves match accuracy for UK and international addresses, particularly AddressBase Premium and Royal Mail PAF records
  • Recalculated confidence scores: Matches, scores and Match Levels may differ from earlier responses. If your integration accepts matches above a fixed confidence threshold, re-check that threshold against current results
  • No charge for no match: A cleanse that returns a match costs a lookup. A no-match response is free

See the Cleanse Address API reference.

TypeScript SDK

@ideal-postcodes/sdk is our new TypeScript SDK for the Ideal Postcodes API. It supersedes @ideal-postcodes/core-axios and @ideal-postcodes/core-node with one package that runs in browsers and Node.js 22 or later, has no runtime dependencies and covers every current API operation with generated types.

Details

  • Native fetch: Requests use the runtime's own fetch, so there is no Axios or Node-specific client to install or keep up to date
  • No runtime dependencies: Installing the SDK adds nothing else to your dependency tree
  • Tree-shakeable: Each operation is a named export, so bundlers keep only what you import. A client and findAddress come to about 4.4 kB minified and gzipped
  • Every current operation: Postcode lookup, address search, UPRN lookup, address cleanse, email and phone validation, plus key, licensee and configuration management
  • Types from the OpenAPI spec: Every request and response is typed, including Royal Mail PAF fields and each dataset's native record
  • Autocomplete helper: createAutocomplete debounces keystrokes and exposes find and resolve, ready to wire to your own search box. A search superseded by newer typing resolves undefined rather than throwing, so fast typists produce no unhandled rejections
  • Postcode lookup helper: lookupPostcode returns a postcode's addresses and total, the count across all pages. For an unknown postcode it returns the closest matching postcodes instead of throwing
  • Client options: timeoutMs rejects any request that runs too long with a TimeoutError, and headers sends default headers, such as User-Agent, with every request
  • React and Preact: Optional TanStack Query adapters provide query options for every operation
  • Typed errors: HTTP failures throw an ApiError with the status, API error code and message. Pass throwOnError: false to get { data, error } instead
  • Management Key kept out of URLs: Account operations send your Management Key in the Authorization header, so it never appears in request URLs, proxy logs or browser history
  • Agent skill: npx skills add ideal-postcodes/skills gives coding agents setup guides and a reference for each operation

Start with the TypeScript SDK documentation. Moving from core-axios, core-node or core-browser? The migration guide maps each old call to its SDK equivalent.

Go SDK

go.ideal-postcodes.co.uk/sdk is our Go SDK for the Ideal Postcodes API. It has one typed method for every API operation, uses only the standard library and runs on Go 1.26 or later.

Details

  • Every operation: Postcode lookup, address search and autocomplete, UPRN lookup, address cleanse, places, email and phone validation, plus key, licensee and configuration management
  • No dependencies: Requests go through net/http and encoding/json. Pass your own *http.Client with WithHTTPClient to control timeouts and transport
  • Typed responses: Every response is a struct generated from the OpenAPI spec. A field that holds one of several shapes has As<Variant>() accessors, and each dataset's native record has its own type, from PafAddress to UspsAddress
  • Context first: Every method takes a context.Context, for deadlines and cancellation
  • Clear errors: An HTTP error returns *idealpostcodes.APIError with the HTTP status and the API's error code and message
  • No hidden retries: A billable lookup repeats only when your code repeats it
  • Agent skill: npx skills add ideal-postcodes/skills gives coding agents the ideal-postcodes-go-sdk skill

Install with go get go.ideal-postcodes.co.uk/sdk, then start with the Go SDK documentation.

Shopify 2 with Native Checkout Address Autocomplete

Shopify 2 rebuilds our Shopify app on Shopify's native Address Autocomplete API. Suggestions now appear inside Shopify's own address fields at checkout, with no injected search box, and selecting one fills line 1, city, and postcode in a single step. Address blocking, postcode lookup, and the classic search box all ship in the same release.

Read more

France Coverage with the Base Adresse Nationale

French address searches now run on the Base Adresse Nationale (BAN), France's official national address database. Authoritative, localised address data across mainland France and the overseas territories.

Details

  • Official source: The BAN is France's government-maintained national address base, giving standardised coverage nationwide
  • Localised formatting: Addresses are parsed and formatted to French conventions, with province and province_code derived from the INSEE code
  • New dataset flag: Enable BAN on an API key with the ban dataset flag; France (FRA) is available as a search context