Skip to content
OSINTtools.io

Doogal API

UK postcode and mapping toolkit with postcode lookups, batch geocoding, distance and radius tools, KML viewer and UK datasets.

Base URL
https://www.doogal.co.uk
Sign-in
No key
Format
REST
Endpoints
4

Compiled by OSINTtools.io editors from doogal.co.uk · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

Doogal publishes a few web services that its own site uses, for UK postcodes and places. Given a UK postcode they return its coordinates, administrative areas, population and nearby postcodes; given coordinates they return the nearest station and places in a bounding box. An investigator uses them to place a UK postcode on a map or to see what is near it.

Calls are plain HTTP GET requests on the base URL below with no key. The site's API page says it can give no uptime guarantee, may limit usage, asks that you do not issue parallel requests, and says not to use the APIs for a production website or application.

Quick start

  1. No key needed

    The Doogal API answers without an account or key.

  2. Make your first request

    Details of a UK postcode. Replace the example values and run it in a terminal, or use Try it on the endpoint.

    curl 'https://www.doogal.co.uk/GetPostcode/KT5%208AN'
  3. Read the response

    A 200 response looks like this.

    {
      "postcode": "AB1 2CD",
      "latitude": 51.5,
      "longitude": -0.1,
      "quality": "Within the building of the matched address closest to the postcode mean",
      "district": "Example District",
      "ward": "Example Ward",
      "county": "Example County",
      "region": "London",
      "country": "England",
      "population": 75,
      "households": 31,
      "postTown": "Example Town",
      "inUse": "Yes"
    }

Authentication

No key or account: every endpoint answers without one.

Rate limits and pricing

No numeric limit stated; the docs ask for no parallel requests and say usage may be limited

Postcodes

Details of a UK postcode

GET/GetPostcode/{postcode}

  • Passive: the target is not contacted

Returns latitude, longitude, quality, constituency, district, ward, county, region, country, population (2011), households (2011), post town and more. Some values can be empty. Postcode districts and sectors return only latitude, longitude, population and households. Tab-separated text by default; output=json gives JSON.

Path parameters

postcodestringrequired

The postcode to get details for

Example: KT5 8AN

Query parameters

outputstring

Format of the returned data; overrides the Accept header

Example: jsonOne of: json, text
Response fields · 13Show

postcodestring

The postcode

latitudenumber

Latitude

longitudenumber

Longitude

qualitystring

How well the position matches

districtstring

District

wardstring

Ward

countystring

County

regionstring

Region

countrystring

Country

populationnumber

Population in 2011

householdsnumber

Number of households in 2011

postTownstring

Post town

inUsestring

Whether the postcode is in use

curl 'https://www.doogal.co.uk/GetPostcode/KT5%208AN'
No key needed
Response
{
  "postcode": "AB1 2CD",
  "latitude": 51.5,
  "longitude": -0.1,
  "quality": "Within the building of the matched address closest to the postcode mean",
  "district": "Example District",
  "ward": "Example Ward",
  "county": "Example County",
  "region": "London",
  "country": "England",
  "population": 75,
  "households": 31,
  "postTown": "Example Town",
  "inUse": "Yes"
}
  • Passive: the target is not contacted

Gets UK postcodes near a latitude/longitude or near a postcode. Give lat and lng, or postcode. Output is XML by default.

Query parameters

postcodestring

A postcode to search around (required if lat and lng are not given)

Example: KT1 2SX
latnumber

Latitude (required if postcode is not given)

Example: 51.4
lngnumber

Longitude (required if postcode is not given)

Example: -0.3
distancenumber

Maximum distance in km (at most 16.09344)

Example: 1
outputstring

Output format

Default: xmlOne of: xml, json, csv
activestring

If true, only active postcodes

Default: falseOne of: true, false
searchTypestring

What to return

Default: postcodesOne of: postcodes, sectors, districts, BUAs
Response fields · 8Show

Postcodestring

A nearby postcode (CSV column)

DistanceKMsnumber

Distance in km (CSV column)

DistanceMilesnumber

Distance in miles (CSV column)

Latitudenumber

Latitude (CSV column)

Longitudenumber

Longitude (CSV column)

DateTerminatedstring

When the postcode ended, if it did (CSV column)

Populationinteger

Population (CSV column)

Householdsinteger

Households (CSV column)

curl 'https://www.doogal.co.uk/GetPostcodesNear/'
No key needed
Response
Postcode,DistanceKMs,DistanceMiles,Latitude,Longitude,DateTerminated,Population,Households
AB1 2CD,0.2,0.12,51.4,-0.3,,125,37

Places

Nearest station to a location

GET/GetNearestStation/

  • Passive: the target is not contacted

Returns the name of the station nearest to the given latitude and longitude, as plain text.

Query parameters

latnumberrequired

Latitude

Example: 51.4
lngnumberrequired

Longitude

Example: -0.3
curl 'https://www.doogal.co.uk/GetNearestStation/?lat=51.4&lng=-0.3'
No key needed
Response
Example Station
  • Passive: the target is not contacted

Returns places of the chosen types inside a bounding box. For roads, lineString holds the path; for everything else lat and lng give the position.

Query parameters

minLatnumberrequired

Minimum latitude

Example: 51.39
minLngnumberrequired

Minimum longitude

Example: -0.31
maxLatnumberrequired

Maximum latitude

Example: 51.40
maxLngnumberrequired

Maximum longitude

Example: -0.30
placeTypesstring

Comma-separated place types, such as Hospital or Railway Station

Example: Hospital,Railway Station
Response fields · 5Show

namestring

Name of the place

latnumber

Latitude (not for roads)

lngnumber

Longitude (not for roads)

lineStringstring

Path of a road

typestring

Place type

curl 'https://www.doogal.co.uk/GetPlacesNear/?minLat=51.39&minLng=-0.31&maxLat=51.40&maxLng=-0.30'
No key needed
Response
[
  {
    "name": "Example Hospital",
    "lat": 51.395,
    "lng": -0.305,
    "type": "Hospital"
  }
]