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

# Returns a cache time

`GET /cache-times/{id}`

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.net/office-of-national-statistics/apis/legacy-cache-api.md) · [All operations](https://skmtc.net/office-of-national-statistics/apis/legacy-cache-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/office-of-national-statistics/legacy-cache-api/versions/eea11da5c81c/schema)
