Cookie

Cookie consent

We use some essential cookies to make this website work. We'd like to set additional cookies to help us measure your experience when you view and interact with the website.

Cookie policy

Quick start guide for using Postcoder

This guide is for developers and integrators who want to add one or more Postcoder features to their website or app. You can be up and running within 15 minutes. Contact us if you need any help.

1. Get an API key

Sign up for a free trial and you'll receive an API key with 300 trial credits for testing. No payment details required - and you can request more trial credits if you need them.

Start a free trial
What can I do with 300 credits? A standard UK address lookup costs 2 credits, so 300 credits gives you 150 lookups - plenty to build and test a working integration. See the full credit costs breakdown.

2. Make your first API call

Your API key follows this format: PCW45-12345-12345-1234X

Address autocomplete shows real-time suggestions as a user starts typing their address. Here's a simple request using the autocomplete/find endpoint, searching for "123 foxglove":

"https://ws.postcoder.com/pcw/autocomplete/find?query=123%20foxglove&country=uk&apikey={apikey}&singlesummary=true&format=json"

You should get a JSON response like this:

[
    {
        "id": "20463404",
        "type": "ADD",
        "summaryline": "123 Foxglove Road, South Ockendon, Essex, RM15 6EU",
        "count": 1
    },
    {
        "id": "20544890",
        "type": "ADD",
        "summaryline": "123 Foxglove Road, Sheffield, South Yorkshire, S5 6FP",
        "count": 1
    },
  	...
  	...
]

Each suggestion includes a unique ID, a summary and a type - which tells you what to do next:

  • Type: ADD - this is an address. Pass the ID to the autocomplete/retrieve endpoint to get the full address details (number, street, town, postcode, etc.).
  • Any other type - this is a broader location such as a street. Pass the ID back to the autocomplete/find endpoint via the pathfilter querystring parameter to let the user drill down into it.

That's it - you're making live API calls.

Heads up: default rate limit By default, your API key allows up to 5 requests from any one IP address per 5 minutes. If you're running tests, you may hit a 403 Browser direct lookups exceeded error sooner than expected. Head to your API key security settings to increase the limit or add trusted IP addresses.

3. Choose your integration path

Pick the feature you want to integrate:

Address lookup

A popular way to integrate address lookup is using address autocomplete - real-time suggestions as users type. If you prefer a single-step lookup - where a user types a postcode or address fragment and hits a search button - that's also supported.

Not sure which address endpoint to use? For address autocomplete, start with the autocomplete/find endpoint. For single-step lookup, start with the address endpoint. See the API reference for the full range of endpoints.

Bank validation

Verify UK sort codes and account numbers in real time.

Email validation

Check whether email addresses can receive emails.

Mobile validation

Check whether mobile phone numbers can receive calls and texts.

OTP verification

Send and verify one-time passwords via SMS.

4. Test your integration

Use your trial credits to test your integration end to end. You can monitor usage and check your remaining credits at any time:

View your credit usage

If you run low on trial credits, contact us and we'll top you up.

5. Review security before going live

Before deploying to production, review our API key security guidance and update your settings. You can:

  • Rate-limit requests to protect your credits
  • Lock your API key to trusted IP addresses (recommended for server-side integrations)
  • Restrict to trusted website URLs (recommended for client-side integrations)
Review your API key security settings

6. Buy credits and go live

To go live, simply buy a credit pack or set up a monthly plan. Prices start from £27 and there are no subscription commitments for credit packs.

Troubleshooting

Getting a 403 error? The most common cause during testing is hitting the default rate limit (5 requests per IP address per 5 minutes). See Resolve 403 errors for how to fix this.

Getting a 400 error? Check that all required parameters are present and correctly formatted. See the relevant API reference for parameter details.

For anything else, visit the Troubleshooting page or contact us.