---
title: "Returns a cache time"
method: GET
path: "/cache-times/{id}"
tags: ["cache times"]
---

# Returns a cache time

`GET /cache-times/{id}`

## Request

- Base URL: `/v1` (relative, and the document’s source URL is not known)
- URL: `/v1/cache-times/{id}`
- Auth: none required

Returns a cache time for a given id

## Path parameters

- `id` string, required

## Response `200`

Successfully returned a cache time for a given id

- CacheTime
  - `id` string, required: Unique identifier for a cache time, represented as an MD5 hash of the path
  - `path` string, required: Path for which caching is set
  - `collection_id` string: Collection ID - used for grouping and filtering of cache time objects
  - `release_time` string, date-time: Release time in ISO-8601 format

## Other responses

- `400`: Invalid request, cache time id was in the wrong format
- `404`: No cache time was found using the id provided
- `500`: Failed to process the request due to an internal error

---

[API](https://skmtc.dev/office-of-national-statistics/apis/legacy-cache-api.md) - [All operations](https://skmtc.dev/office-of-national-statistics/apis/legacy-cache-api/llms.txt) - [OpenAPI document](https://skmtc.dev/office-of-national-statistics/apis/legacy-cache-api/revisions/eea11da5c81c?raw)
