# youtube video info api: formats and sizes - fastsaver api

youtube video info api. GET /youtube/info returns the title, author, duration, thumbnails and every format with its file size. 2 credits a call.

> source: https://api.fastsaver.io/docs/youtube/info

`GET https://api.fastsaver.io/v1/youtube/info` - video formats, or a community post with its media

metadata for a youtube video, including every downloadable format with its file size. use it to show the user what they are about to download. a community post link (`youtube.com/post/...`) works too, at the same price: then `is_post` is `true` and the body describes the post (see below). check `is_post` first.

Credits: 2 credits. A failed call costs 0.1 credit.
Every request carries `X-Api-Key`.

## Parameters

- `url` (string, required) - youtube video or community post url (example: `https://www.youtube.com/watch?v=6dG1WWjew8s`)

## Request

```http
GET https://api.fastsaver.io/v1/youtube/info?url=https://www.youtube.com/watch?v=HanBb8FonWs
```

## Response

```json
{
  "ok": true,
  "is_post": false,
  "video_id": "HanBb8FonWs",
  "title": "Snails - Frogbass",
  "author": "DubstepGutter",
  "author_url": "https://www.youtube.com/channel/UCG6QEHCBfWZOnv7UVxappyw",
  "thumbnail": "https://i.ytimg.com/vi/HanBb8FonWs/sddefault.jpg",
  "duration": 234,
  "thumbnails": {
    "low": "https://i.ytimg.com/vi/HanBb8FonWs/mqdefault.jpg",
    "max": "https://i.ytimg.com/vi/HanBb8FonWs/maxresdefault.jpg"
  },
  "formats": [
    {
      "type": "video",
      "format": "144p",
      "filesize": 6967209
    },
    {
      "type": "video",
      "format": "360p",
      "filesize": 21096358
    },
    {
      "type": "video",
      "format": "720p",
      "filesize": 60448393
    }
  ]
}
```

## response for a post

`is_post` is `true` and the body has its own shape: no `title` or `formats`, and `author` is an object here, not a string. `type` is one of `image`, `video`, `text`, `poll`, `quiz`, `playlist` or `shared`. every image in `media`, and in the `choices` of an image poll, has a direct `download_url`: no key, no headers. a video in `media` with `available: true` gives its watch page in `url` instead - pass that to `/youtube/download`; one with `available: false` has only a `title` and cannot be downloaded. a repost carries the original post in `shared_post`, and its media is in the top-level `media` too.

```json
{
  "ok": true,
  "is_post": true,
  "post_id": "UgkxB7POmB4C7U0I3kIEWRZpYfE2t-ieP9CA",
  "url": "https://www.youtube.com/post/UgkxB7POmB4C7U0I3kIEWRZpYfE2t-ieP9CA",
  "type": "image",
  "author": {
    "name": "MrBeast",
    "channel_id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
    "handle": "@MrBeast",
    "url": "https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA",
    "avatar": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s900-c-k-c0x00ffffff-no-rj-mo"
  },
  "text": "Some more fun wedding photos 🥰",
  "links": [],
  "hashtags": [],
  "published_at": "2026-07-23T17:56:09Z",
  "published_text": "2 months ago",
  "edited": false,
  "likes": 3432414,
  "media": [
    {
      "type": "image",
      "download_url": "https://lh3.googleusercontent.com/bFmb7RbyvsNTUS3otE4oc2tqI5CZyl3apwKmjnqnTjFuv1mwxWG7hWlZCuiWlRYrd3oCd_nAtBWVsw=s0",
      "preview_url": "https://yt3.ggpht.com/bFmb7RbyvsNTUS3otE4oc2tqI5CZyl3apwKmjnqnTjFuv1mwxWG7hWlZCuiWlRYrd3oCd_nAtBWVsw=s1024-rj",
      "width": 2641,
      "height": 3734
    },
    {
      "type": "image",
      "download_url": "https://lh3.googleusercontent.com/1Oxcyk2wshlCOoZYiTWUFoixDaomfdtlcIKiGv_ozoT4Lfs9CZx-3VTxbNeQlJOOV_h7CdWjWF8QIA=s0",
      "preview_url": "https://yt3.ggpht.com/1Oxcyk2wshlCOoZYiTWUFoixDaomfdtlcIKiGv_ozoT4Lfs9CZx-3VTxbNeQlJOOV_h7CdWjWF8QIA=s1024-rj",
      "width": 1536,
      "height": 2048
    }
  ],
  "poll": null,
  "playlist": null,
  "shared_post": null
}
```
