---
title: "Search for Media"
method: GET
path: "/admin/medias"
tags: ["Audio"]
---

# Search for Media

`GET /admin/medias`

## Request

- Base URL: `http://localhost:4550`
- URL: `http://localhost:4550/admin/medias`
- Auth: none declared

Returns a representation of the media table which match the supplied search criteria.

## Query parameters

- `transformed_media_id` integer
- `hearing_ids` integer[]
- `start_at` string, date-time
- `end_at` string, date-time

## Response `200`

OK

- GetAdminMediaResponseItem[]
  - `id` integer, required: med_id
  - `channel` integer, required: Channel number of the audio recording
  - `start_at` string, date-time, required
  - `end_at` string, date-time, required
  - `is_hidden` boolean, required
  - `is_current` boolean, required
  - `case` GetAdminMediaResponseCase
    - `id` integer
    - `case_number` string
  - `hearing` GetAdminMediaResponseHearing
    - `id` integer
    - `hearing_date` string, date
  - `courthouse` GetAdminMediaResponseCourthouse
    - `id` integer
    - `display_name` string
  - `courtroom` GetAdminMediaResponseCourtroom
    - `id` integer
    - `display_name` string

## Other responses

- `400`: Bad Request Error
- `401`: Unauthorised Error
- `422`: Business Validation Error

## Changes

- **2026-07-20** `f273786fb018`: 12 info
  - added the optional property `detail` to the response with the `400` status
  - added the optional property `detail` to the response with the `401` status
  - added the optional property `detail` to the response with the `422` status
  - added the optional property `status` to the response with the `400` status
  - …8 more
- **2025-04-09** `6900b24c5e87`: 1 info
  - added the non-success response with the status `422`
- **2024-11-26** `0d3e84c9f63e`: 6 info
  - the response property `items/channel` became required for the status `200`
  - the response property `items/end_at` became required for the status `200`
  - the response property `items/id` became required for the status `200`
  - the response property `items/is_hidden` became required for the status `200`
  - …2 more
- **2024-09-09** `b3cc8c1bb39f`: 1 info
  - added the optional property `items/is_hidden` to the response with the `200` status
- **2024-06-25** `191acb8f2f11`: 4 info
  - added the new optional `query` request parameter `end_at`
  - added the new optional `query` request parameter `hearing_ids`
  - added the new optional `query` request parameter `start_at`
  - the `query` request parameter `transformed_media_id` became optional

[Operation history](https://skmtc.dev/hm-courts-and-tribunals-service/apis/modernised-darts/changes/admin/medias/get.md)

---

[API](https://skmtc.dev/hm-courts-and-tribunals-service/apis/modernised-darts.md) - [All operations](https://skmtc.dev/hm-courts-and-tribunals-service/apis/modernised-darts/llms.txt) - [OpenAPI document](https://skmtc.dev/hm-courts-and-tribunals-service/apis/modernised-darts/revisions/f273786fb018?raw)
