SkillAgentSearch skills...

Postcodes.io

UK postcode & geolocation API, serving up open data

Install / Use

/learn @ideal-postcodes/Postcodes.io
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<h1 align="center"> <img src="https://img.ideal-postcodes.co.uk/Postcodes.io%20Logo@3x.png" alt="Postcodes.io"> </h1>

UK postcode & geolocation API, serving up open data

CI DOI

Query for UK postcodes and geolocations over HTTP.

Postcodes.io regularly ingests and serves the ONS Postcode Directory and Ordnance Survey Open Names datasets.

Features

  • Postcode lookup, resolve administrative and location data for postcodes and outward codes
  • Postcode search & autocomplete
  • Reverse geocode postcodes
  • Nearest postcode search
  • Terminated postcode search
  • Outward code lookup
  • Bulk postcode lookup and reverse geocoding

Usage

Quick Start

Start querying UK postcode data immediately on your local machine with Docker

docker-compose up
<p align="center"> <img src="https://img.ideal-postcodes.co.uk/postcodesio-docker-compose-demo.gif" alt="Docker Compose Demo"> </p>

Testing

# Run entire test suite
make test

# Launch test application container and services, and run tests from container
make test-up
make test-shell
$api-container> npm test

# Fast iteration: create DB once, then run tests without rebuilding
npm run test:create   # Run once
npm run mocha         # Reuse existing DB (sets NO_RELOAD_DB=true)

# Execute command in test container
make test-exec npm run mocha

License

MIT

View on GitHub
GitHub Stars1.4k
CategoryDevelopment
Updated3d ago
Forks276

Languages

HTML

Security Score

95/100

Audited on Mar 24, 2026

No findings