# Read a YouTube link's title, thumbnail and available heights

- **Method:** `POST`
- **Path:** `/api/v1/clips/youtube-preview`
- **Operation ID:** `clips_youtube_preview_api_v1_clips_youtube_preview_post`
- **Tags:** Clips

## Effective servers

- `http://127.0.0.1:8100`

  Voice Creator Pro on this computer

## Request body

**Required:** `true`

**Content type:** `application/json`

schema: `ClipsYoutubeRequest`

- **`url` (required)**: `string`

  YouTube video URL to download
- **`max_height`**: `integer | null`

  Cap video resolution (e.g. 1080); None keeps best quality
- **`name`**: `string | null`

  Project name (falls back to the video title)

**Example:**

```json
{
  "name": "",
  "url": "",
  "max_height": 1
}
```

## Responses

### 200 Successful Response

**Content type:** `application/json`

`any`

**Example:**

```json
null
```

### 422 Validation Error

**Content type:** `application/json`

schema: `HTTPValidationError`

- **`detail`**: `array`

  **Items:**

  schema: `ValidationError`
  - **`loc` (required)**: `array of (string | integer)`
  - **`msg` (required)**: `string`
  - **`type` (required)**: `string`
  - **`ctx`**: `object`
  - **`input`**: `any`

**Example:**

```json
{
  "detail": [
    {
      "loc": [
        ""
      ],
      "msg": "",
      "type": "",
      "input": null,
      "ctx": {}
    }
  ]
}
```

## Schemas

- `ClipsYoutubeRequest` — shown above.
- `HTTPValidationError` — shown above.
- `ValidationError` — shown above.
