---
title: "Get one media file with what was measured in it"
description: "One ready file (as in `GET /v1/media`) with the analysis made when it\nwas prepared, by FFmpeg and without any AI model: for footage the hard\ncuts and a contact sheet of numbered, timed stills (`frames_url`, valid\nfor a short time); for anything with sound the silences of 0.3 s or\nmore and the integrated loudness. Speech is transcribed automatically\n(whisper.cpp, run by Mosio) by a job of its own once the file is\nready: `transcript` has the language, the phrases and every word with\nits start and end; it can mishear names and prices. Times are seconds\ninto the file. Files prepared before the analysis existed are measured\nonce (`analysis_status: processing`). Needs the `videos:read` permission.\n"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.mosio.me/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Mosio REST API › Videos

`GET /v1/media/{id}`

One ready file (as in `GET /v1/media`) with the analysis made when it
was prepared, by FFmpeg and without any AI model: for footage the hard
cuts and a contact sheet of numbered, timed stills (`frames_url`, valid
for a short time); for anything with sound the silences of 0.3 s or
more and the integrated loudness. Speech is transcribed automatically
(whisper.cpp, run by Mosio) by a job of its own once the file is
ready: `transcript` has the language, the phrases and every word with
its start and end; it can mishear names and prices. Times are seconds
into the file. Files prepared before the analysis existed are measured
once (`analysis_status: processing`). Needs the `videos:read` permission.

## Authentication

- `apiKey`, apiKey, in header, header `x-api-key`

## Path parameters

- `id` (`getMedia.path.id`; string, required) — The file's id (`upl_…`) or its path (`assets/media/upl_….mp4`).

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://app.mosio.me/v1/media/<id>' \
  --header 'x-api-key: <x-api-key>'
```

### TypeScript

```typescript
const url = 'https://app.mosio.me/v1/media/<id>';
const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://app.mosio.me/v1/media/<id>"

headers = {"x-api-key": "<x-api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The file and its analysis.

#### Example

```json
{
  "media": {
    "id": "upl_3f2a9c1e-7b4d-4e8a-9c21-5d6e7f8a9b0c",
    "kind": "image",
    "filename": "string",
    "path": "assets/media/upl_3f2a9c1e-7b4d-4e8a-9c21-5d6e7f8a9b0c.mp4",
    "duration_seconds": 0,
    "width": 0,
    "height": 0,
    "has_audio": true,
    "created_at": "2019-08-24T14:15:22Z"
  },
  "analysis": {
    "scenes": [
      0
    ],
    "frames": [
      {
        "index": 0,
        "t": 0
      }
    ],
    "sheet": {
      "columns": 0,
      "rows": 0,
      "tile_width": 0,
      "tile_height": 0
    },
    "silences": [
      [
        0,
        0
      ]
    ],
    "audio": {
      "floor_db": 0,
      "speech_db": 0,
      "threshold_db": 0,
      "reliable": true
    },
    "loudness_lufs": 0
  },
  "analysis_status": "ready",
  "transcript": {
    "language": "string",
    "model": "whisper-large-v3-turbo-q5_0",
    "word_count": 0,
    "dropped": 0,
    "phrases": [
      {
        "start": 0,
        "end": 0,
        "text": "string"
      }
    ],
    "words": [
      {
        "text": "string",
        "start": 0,
        "end": 0,
        "p": 0
      }
    ]
  },
  "transcript_status": "ready",
  "cutouts": [
    {
      "id": "cut_6f1d2c3b-0a4e-4b8f-9c21-5d6e7f8a9b0c",
      "media_id": "string",
      "path": "assets/media/cut_6f1d2c3b-0a4e-4b8f-9c21-5d6e7f8a9b0c.webm",
      "from": 0,
      "to": 0,
      "duration_seconds": 0,
      "status": "processing",
      "error": "string",
      "poster_url": "string",
      "width": 0,
      "height": 0,
      "snippet": "string",
      "created_at": "2019-08-24T14:15:22Z"
    }
  ],
  "frames_url": "string"
}
```

- `media` (`getMedia.response.200.media`; object, required)
  - `id` (`getMedia.response.200.media.id`; string, required)
    - example `"upl_3f2a9c1e-7b4d-4e8a-9c21-5d6e7f8a9b0c"`
  - `kind` (`getMedia.response.200.media.kind`; string, required)
    - one of `"image"`, `"video"`, `"audio"`
  - `filename` (`getMedia.response.200.media.filename`; string, required)
  - `path` (`getMedia.response.200.media.path`; string, required) — Where a composition loads it.
    - example `"assets/media/upl_3f2a9c1e-7b4d-4e8a-9c21-5d6e7f8a9b0c.mp4"`
  - `duration_seconds` (`getMedia.response.200.media.duration_seconds`; number | null, required)
  - `width` (`getMedia.response.200.media.width`; integer | null, required)
  - `height` (`getMedia.response.200.media.height`; integer | null, required)
  - `has_audio` (`getMedia.response.200.media.has_audio`; boolean, required)
  - `created_at` (`getMedia.response.200.media.created_at`; string, required)
    - format `date-time`
- `analysis` (`getMedia.response.200.analysis`; one of, required)
  - one of: `MediaAnalysis`, `null`
- `analysis_status` (`getMedia.response.200.analysis_status`; string, required) — `none`: a photo, or a file not measured yet.
  - one of `"ready"`, `"processing"`, `"failed"`, `"none"`
- `transcript` (`getMedia.response.200.transcript`; one of, required) — What was said; null for photos, silent footage, and until transcribed.
  - one of: `object`, `null`
- `transcript_status` (`getMedia.response.200.transcript_status`; string, required) — `none`: no sound (a photo, silent footage), or not queued yet.
  - one of `"ready"`, `"processing"`, `"failed"`, `"none"`
- `cutouts` (`getMedia.response.200.cutouts`; array<object>, required) — People cut out of stretches of this video (`POST /v1/media/{id}/cutouts`), newest first.
  - `id` (`getMedia.response.200.cutouts.id`; string, required)
    - example `"cut_6f1d2c3b-0a4e-4b8f-9c21-5d6e7f8a9b0c"`
  - `media_id` (`getMedia.response.200.cutouts.media_id`; string, required) — The video it was cut from.
  - `path` (`getMedia.response.200.cutouts.path`; string, required) — The path a composition uses for the cutout clip.
    - example `"assets/media/cut_6f1d2c3b-0a4e-4b8f-9c21-5d6e7f8a9b0c.webm"`
  - `from` (`getMedia.response.200.cutouts.from`; number, required)
  - `to` (`getMedia.response.200.cutouts.to`; number, required)
  - `duration_seconds` (`getMedia.response.200.cutouts.duration_seconds`; number, required)
  - `status` (`getMedia.response.200.cutouts.status`; string, required)
    - one of `"processing"`, `"ready"`, `"failed"`
  - `error` (`getMedia.response.200.cutouts.error`; string | null, required) — Why it failed, for the user.
  - `poster_url` (`getMedia.response.200.cutouts.poster_url`; string | null, required) — A still from the middle, transparent around the person (short-lived URL).
  - `width` (`getMedia.response.200.cutouts.width`; integer | null, required)
  - `height` (`getMedia.response.200.cutouts.height`; integer | null, required)
  - `snippet` (`getMedia.response.200.cutouts.snippet`; string | null, required) — A ready-to-paste base clip, text and cutout clip for this stretch.
  - `created_at` (`getMedia.response.200.cutouts.created_at`; string, required)
    - format `date-time`
- `frames_url` (`getMedia.response.200.frames_url`; string | null, required) — The contact sheet (JPEG), when there is one.

### 401

The API key is missing or not valid.

#### Example

```json
{
  "error": "unauthorized",
  "message": "Kirim API key di header x-api-key."
}
```

- `error` (`getMedia.response.401.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`getMedia.response.401.message`; string, required) — A message for people, in Indonesian.
- `details` (`getMedia.response.401.details`; unknown, optional) — More about the error, such as the fields to fix.

### 404

No such video or file in this workspace.

#### Example

```json
{
  "error": "unauthorized",
  "message": "string",
  "details": null
}
```

- `error` (`getMedia.response.404.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`getMedia.response.404.message`; string, required) — A message for people, in Indonesian.
- `details` (`getMedia.response.404.details`; unknown, optional) — More about the error, such as the fields to fix.

### 409

The file is still being prepared, or its preparation failed (`media_not_ready`).

#### Example

```json
{
  "error": "unauthorized",
  "message": "string",
  "details": null
}
```

- `error` (`getMedia.response.409.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`getMedia.response.409.message`; string, required) — A message for people, in Indonesian.
- `details` (`getMedia.response.409.details`; unknown, optional) — More about the error, such as the fields to fix.


Source: https://docs.mosio.me/api/media/retrieve/index.md
