AutoPostcode
Developers · Sandbox

Address API sandbox — test UK lookups in seconds

Run live UK postcode lookups against Royal Mail PAF right here, then grab a free sandbox key to test in your own code. Same data as production, no credit card.

No card required · Royal Mail PAF-verified data

Trusted UK address intelligence

Free
sandbox keys
Live
demo widget
31M+
PAF addresses
PAF-verified address lookup
Fast REST API & no-code plugins
GDPR-friendly, UK-hosted

The address API sandbox lets you test UK postcode lookups against Royal Mail PAF before writing production code, using free sandbox keys and the live demo below. The sandbox queries the same dataset as production — ~31M UK delivery points across ~1.8M postcodes — so what you test is exactly what you ship.

~31M
UK addresses in PAF
~1.8M
UK postcodes
<1s
typical lookup

Try the live demo now

Type a UK postcode to see a real PAF-style result — no key required:

How do I get sandbox keys?

Create a free account and generate a sandbox key from the dashboard — no card needed:

  • Sign up for a free AutoPostcode account
  • Generate a sandbox API key in the dashboard
  • Run test lookups against real PAF data
  • Swap to a production key when you go live

How do I call the sandbox from code?

The sandbox endpoint mirrors production — only the key differs:

const res = await fetch(
  "https://api.autopostcode.com/v1/lookup?postcode=SW1A1AA",
  { headers: { Authorization: "Bearer " + process.env.AUTOPOSTCODE_SANDBOX_KEY } }
);
const { addresses } = await res.json();
console.log(addresses); // PAF results, same shape as production
Moving to production means swapping one key. Requests and responses are identical, so no code changes are required.

Sandbox vs production keys

AspectSandboxProduction
CostFree test quotaPer lookup
DataReal PAFReal PAF
Rate limitsTest limitsPlan limits

Read the deeper testing & sandbox guide, follow the API quickstart, and see plans on the pricing page when you're ready to go live.

A modern, UK-first alternative

AutoPostcode uses the same Royal Mail PAF data as Loqate, Fetchify and Ideal Postcodes, with a free sandbox and an affordable per-lookup price.

Frequently asked questions

Is there a sandbox for the address API?

Yes. AutoPostcode offers a free address API sandbox with test keys and a live demo widget, so you can run UK postcode lookups against Royal Mail PAF before writing any production code.

How do I get sandbox keys to test the address API?

Sign up for a free account and generate a sandbox key from the dashboard. Sandbox keys let you make lookups against real PAF data without a paid plan, subject to a generous test quota.

Can I test address lookups without signing up?

Yes — the live demo widget on this page runs example UK postcode lookups instantly. For programmatic testing with your own code, generate a free sandbox key.

Does the sandbox return real Royal Mail PAF data?

Yes. The sandbox queries the same Royal Mail PAF dataset as production, covering ~31M UK delivery points across ~1.8M postcodes, so what you test is what you ship.

What's the difference between sandbox and production keys?

Sandbox keys are for testing and carry a test quota; production keys are billed per lookup and carry your live rate limits. The endpoints and response shapes are identical.

How do I move from sandbox to production?

Swap the sandbox key for a production key — no code changes needed, because the request and response formats match exactly.

Ready to get started?

Add Royal Mail PAF-verified UK address lookup to your site in minutes — start free, no card required.