---
title: "Retrieve latest data for a real-time stream"
method: GET
path: "/api/v1/rt/{id}/latest"
tags: ["Real-Time Data"]
---

# Retrieve latest data for a real-time stream

`GET /api/v1/rt/{id}/latest`

## Request

- Base URL: `https://api.phys.ucalgary.ca` (the document declares no server; this is the origin it was published from)
- URL: `https://api.phys.ucalgary.ca/api/v1/rt/{id}/latest`
- Auth: none declared
- TypeScript: <https://skmtc.dev/ucalgary/apis/ucalgary-space-remote-sensing-api/docs/api/v1/rt/:id/latest/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve the latest data for a given real-time data stream.

Notes:
  - The `id` can be determined by using the stream listing endpoint.
  - The response content type depends on the stream's mimetype (e.g., image/jpeg).
  - Data is sourced from the database, populated by the RT ingester services.
  - The response includes an `x-rt-stream-last-updated-utc` header with the ISO 8601 UTC timestamp of when the stream data was last updated.

## Path parameters

- `id` string, required

## Query parameters

- `countdown_clock` boolean: Show countdown clock when not imaging

## Response `200`

Latest stream data

## Other responses

- `404`: Stream ID not found
- `422`: Validation Error
- `500`: No data available or failed to retrieve from data source

---

[API](https://skmtc.dev/ucalgary/apis/ucalgary-space-remote-sensing-api.md) - [All operations](https://skmtc.dev/ucalgary/apis/ucalgary-space-remote-sensing-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ucalgary/apis/ucalgary-space-remote-sensing-api/revisions/e451a425b5eb?raw)
