---
title: "Get what reflab measured"
description: "The reference video's rhythm and look as numbers (shots, median and longest shot, cuts per minute, on-screen text, palette, pace, loudness), once the recipe is ready. Recipes written before this was kept have none. Needs the `videos:read` permission."
---

> 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 › Own recipes

`GET /v1/user-recipes/{id}/analysis`

The reference video's rhythm and look as numbers (shots, median and longest shot, cuts per minute, on-screen text, palette, pace, loudness), once the recipe is ready. Recipes written before this was kept have none. Needs the `videos:read` permission.

## Authentication

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

## Path parameters

- `id` (`getUserRecipeAnalysis.path.id`; string, required)

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://app.mosio.me/v1/user-recipes/<id>/analysis';
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/user-recipes/<id>/analysis"

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

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

print(response.text)
```

## Responses

### 200

The analysis.

#### Example

```json
{
  "id": "string",
  "status": "analyzing",
  "analysis": {
    "seconds": 0,
    "shots": -9007199254740991,
    "median_shot_seconds": 0,
    "longest_shot_seconds": 0,
    "cuts_per_minute": 0,
    "on_screen_text": {
      "events": -9007199254740991,
      "median_height_share": 0
    },
    "palette": [
      "string"
    ],
    "speech_language": "string",
    "pace": null,
    "loudness": null,
    "brightness": null,
    "picture_vs_voice": null
  }
}
```

- `id` (`getUserRecipeAnalysis.response.200.id`; string, required)
- `status` (`getUserRecipeAnalysis.response.200.status`; string, required)
  - one of `"analyzing"`, `"writing"`, `"ready"`, `"failed"`
- `analysis` (`getUserRecipeAnalysis.response.200.analysis`; any of, required)
  - any of: `object`, `null`

### 401

The API key is missing or not valid.

#### Example

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

- `error` (`getUserRecipeAnalysis.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` (`getUserRecipeAnalysis.response.401.message`; string, required) — A message for people, in Indonesian.
- `details` (`getUserRecipeAnalysis.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` (`getUserRecipeAnalysis.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` (`getUserRecipeAnalysis.response.404.message`; string, required) — A message for people, in Indonesian.
- `details` (`getUserRecipeAnalysis.response.404.details`; unknown, optional) — More about the error, such as the fields to fix.


Source: https://docs.mosio.me/api/get-user-recipe-analysis/index.md
