Back to explore

logistics

Postcode

Credits: 0.000001

Lookup

POST /v1/postcode/Lookup

Lookup a postcode to retrieve the related region, county, etc

Request

postcodestring

UK postcode e.g SW1A 2AA

Response

countrystring

country e.g United Kingdom

districtstring

e.g Westminster

latitudenumber

e.g 51.50354

longitudenumber

e.g -0.127695

postcodestring

UK postcode e.g SW1A 2AA

regionstring

related region e.g London

wardstring

e.g St James's

Request

Response

{
    "postcode": "SW1A 2AA",
    "country": "England",
    "region": "London",
    "district": "Westminster",
    "ward": "St James's",
    "latitude": 51.50354,
    "longitude": -0.127695
}

Credits: 0.000001

Random

POST /v1/postcode/Random

Return a random postcode and its related info

Request

{}

Response

countrystring

country e.g United Kingdom

districtstring

e.g Westminster

latitudenumber

e.g 51.50354

longitudenumber

e.g -0.127695

postcodestring

UK postcode e.g SW1A 2AA

regionstring

related region e.g London

wardstring

e.g St James's

Request

Response

{
    "postcode": "OX26 2HA",
    "country": "England",
    "region": "South East",
    "district": "Cherwell",
    "ward": "Bicester West",
    "latitude": 51.907678,
    "longitude": -1.163954
}

Credits: 0.000001

Validate

POST /v1/postcode/Validate

Validate a postcode.

Request

postcodestring

UK postcode e.g SW1A 2AA

Response

validboolean

Is the postcode valid (true) or not (false)

Request

Response

{
    "valid": true
}