v1

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

Get a list of unordered redirects

get/redirects

Query parameters

countinteger

The approximate number of redirects requested, defaulted to 10 and limited to 1000.

cursorinteger

The cursor value returned from a previous response. 0 should be used for the first request

Response

Paginated list of unordered redirects

countinteger

How many redirects are present in the response

cursorstring

The cursor we're returning items for.

next_cursorstring

Cursor to use for the next page. "0" means end of iteration.

total_countinteger

How many redirects are available in total

Example response

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