---
title: "Get duration of media item"
method: GET
path: "/api/media/{MediaName}/duration"
tags: ["media"]
---

# Get duration of media item

`GET /api/media/{MediaName}/duration`

Returns the duration of a media item.

## Response `200`

Media duration

- object

## Other responses

- `404` — Media file not found

## Changes

- **2026-05-14** `5ae08fa1c880` — 1 info
  - added the media type `text/plain` for the response with the status `404`
- **2026-05-13** `34a577bdabff` — 1 breaking
  - removed the media type `text/plain` for the response with the status `404`

[Change history](https://skmtc.dev/falconchristmas/apis/fpp-api/changes/api/media/:MediaName/duration/get.md)

---

[API](https://skmtc.dev/falconchristmas/apis/fpp-api.md) · [All operations](https://skmtc.dev/falconchristmas/apis/fpp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/falconchristmas/fpp-api/revisions/2d744b175449/schema)
