v1

latestOpenAPI 3.0.0Open Government Licence v3.02026-07-23567.2 KB
Private

Get a redirect

get/redirects/{id}

Path parameters

idstring required

Unique identifier for a redirect, represented as the base64 encoding of the from path

Example:a1b2c3d4e5f67890123456789abcdef0

Response

A single redirect

fromstring
tostring
idstring

Unique identifier for a redirect, represented as the base64 encoding of the from path

Example response

{
  "from": "/economy",
  "to": "/business",
  "id": "a1b2c3d4e5f67890123456789abcdef0",
  "links": {
    "self": {
      "href": "https://api.beta.ons.gov.uk/v1/redirects/a1b2c3d4e5f67890123456789abcdef0",
      "id": "a1b2c3d4e5f67890123456789abcdef0"
    }
  }
}