Divendo API 2.0

We’ve rebuilt our API from the ground up to be easier than ever to integrate our platform with your favourite software

Retrieve all postcodes

GET/data/ukpostcodes

Gets information about all UK postal codes within your data library.

Querystring count The number of records to return
offset The number of records from a collection to skip

Example response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "total": 1813082,
  "count": 5,
  "offset": 0,
  "results": [
    {
      "postcode": "AB101AA",
      "longitude": -2.096647896,
      "latitude": 57.14823188
    },
    {
      "postcode": "AB101AB",
      "longitude": -2.097262456,
      "latitude": 57.1493033629
    },
    {
      "postcode": "AB101AF",
      "longitude": -2.097806027,
      "latitude": 57.14870708
    },
    {
      "postcode": "AB101AG",
      "longitude": -2.096647896,
      "latitude": 57.14823188
    },
    {
      "postcode": "AB101AH",
      "longitude": -2.094664297,
      "latitude": 57.14808068
    }
  ]
}

Lookup a specific postcode

GET/data/ukpostcodes/{postcode}

Gets information about a specific UK postal code from within your data library.

Parameters postcode The postal code to search

Example response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "postcode": "AB101AA",
  "longitude": -2.096647896,
  "latitude": 57.14823188
}