# Check YouTube video formats and file sizes

**Use case:** 

Get the title, channel, duration and thumbnails of each YouTube video, plus every quality you can download (144p to 4K and audio) with its file size. Use it to show users their options before downloading, or to check which videos exist in 1080p or 4K.

## Input

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=HanBb8FonWs"
  ]
}
```

## Output

```json
{
  "url": {
    "label": "Video URL",
    "format": "link"
  },
  "ok": {
    "label": "OK",
    "format": "boolean"
  },
  "thumbnail": {
    "label": "Thumbnail",
    "format": "image"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "author": {
    "label": "Channel",
    "format": "text"
  },
  "duration": {
    "label": "Duration (s)",
    "format": "number"
  },
  "formats": {
    "label": "Formats",
    "format": "array"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The YouTube Video Info Scraper - Formats, Sizes & Metadata Actor is ready to run with the inputs already set for "Check YouTube video formats and file sizes". [Sign up or log in](https://console.apify.com/create-task-from-example/DFtN5Ax2yAbz9eq3o) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Check YouTube video formats and file sizes" task

The YouTube Video Info Scraper - Formats, Sizes & Metadata Actor will start running based on the input automatically. You can also change all the input fields, like youtube urls, to match your specific use case.

### 3. Receive the "Check YouTube video formats and file sizes" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as video url, OK, thumbnail, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Check YouTube video formats and file sizes" task via API](https://apify.com/coder2077/youtube-video-info.md).

## FAQ

### What does the YouTube video formats task return?

The YouTube video formats task returns the title, channel, duration, thumbnails and a list of every downloadable format with its file size in bytes.

### Does the YouTube video formats task download the video?

The YouTube video formats task only reads metadata and formats. To get the file itself, use YouTube Video Downloader with the format you picked.

### Can the YouTube video formats task check many videos at once?

The YouTube video formats task accepts many YouTube links in one run and returns one row per video with every format and its file size. Run it from the Apify API or on a schedule.

## About this Actor

This example demonstrates how to use [YouTube Video Info Scraper - Formats, Sizes & Metadata](https://apify.com/coder2077/youtube-video-info.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/coder2077/youtube-video-info.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/coder2077/youtube-video-info.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
