# Doogal API reference

> 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…

Source: https://osinttools.io/apis/doogal/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/doogal/

- Base URL: https://www.doogal.co.uk
- Authentication: No key needed.
- Rate limits: No numeric limit stated; the docs ask for no parallel requests and say usage may be limited
- Vendor docs: https://www.doogal.co.uk/APIs
- OpenAPI spec: https://www.doogal.co.uk/OpenAPI/OpenAPI.json

## Overview

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.

## Postcodes

### Details of a UK postcode

`GET /GetPostcode/{postcode}`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `postcode` | path | string | yes | The postcode to get details for Example: KT5 8AN |
| `output` | query | string | no | Format of the returned data; overrides the Accept header Example: json One of: json, text |

Response fields:

- `postcode` (string): The postcode
- `latitude` (number): Latitude
- `longitude` (number): Longitude
- `quality` (string): How well the position matches
- `district` (string): District
- `ward` (string): Ward
- `county` (string): County
- `region` (string): Region
- `country` (string): Country
- `population` (number): Population in 2011
- `households` (number): Number of households in 2011
- `postTown` (string): Post town
- `inUse` (string): Whether the postcode is in use

```bash
curl 'https://www.doogal.co.uk/GetPostcode/KT5%208AN'
```

Example response (200):

```json
{
  "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"
}
```

### Postcodes close to a location or postcode

`GET /GetPostcodesNear/`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `postcode` | query | string | no | A postcode to search around (required if lat and lng are not given) Example: KT1 2SX |
| `lat` | query | number | no | Latitude (required if postcode is not given) Example: 51.4 |
| `lng` | query | number | no | Longitude (required if postcode is not given) Example: -0.3 |
| `distance` | query | number | no | Maximum distance in km (at most 16.09344) Example: 1 |
| `output` | query | string | no | Output format One of: xml, json, csv |
| `active` | query | string | no | If true, only active postcodes One of: true, false |
| `searchType` | query | string | no | What to return One of: postcodes, sectors, districts, BUAs |

Response fields:

- `Postcode` (string): A nearby postcode (CSV column)
- `DistanceKMs` (number): Distance in km (CSV column)
- `DistanceMiles` (number): Distance in miles (CSV column)
- `Latitude` (number): Latitude (CSV column)
- `Longitude` (number): Longitude (CSV column)
- `DateTerminated` (string): When the postcode ended, if it did (CSV column)
- `Population` (integer): Population (CSV column)
- `Households` (integer): Households (CSV column)

```bash
curl 'https://www.doogal.co.uk/GetPostcodesNear/'
```

Example response (200):

```
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/`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `lat` | query | number | yes | Latitude Example: 51.4 |
| `lng` | query | number | yes | Longitude Example: -0.3 |

```bash
curl 'https://www.doogal.co.uk/GetNearestStation/?lat=51.4&lng=-0.3'
```

Example response (200):

```
Example Station
```

### Places inside a latitude/longitude rectangle

`GET /GetPlacesNear/`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `minLat` | query | number | yes | Minimum latitude Example: 51.39 |
| `minLng` | query | number | yes | Minimum longitude Example: -0.31 |
| `maxLat` | query | number | yes | Maximum latitude Example: 51.40 |
| `maxLng` | query | number | yes | Maximum longitude Example: -0.30 |
| `placeTypes` | query | string | no | Comma-separated place types, such as Hospital or Railway Station Example: Hospital,Railway Station |

Response fields:

- `[].name` (string): Name of the place
- `[].lat` (number): Latitude (not for roads)
- `[].lng` (number): Longitude (not for roads)
- `[].lineString` (string): Path of a road
- `[].type` (string): Place type

```bash
curl 'https://www.doogal.co.uk/GetPlacesNear/?minLat=51.39&minLng=-0.31&maxLat=51.40&maxLng=-0.30'
```

Example response (200):

```json
[
  {
    "name": "Example Hospital",
    "lat": 51.395,
    "lng": -0.305,
    "type": "Hospital"
  }
]
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
