---
title: "Get video by id"
method: GET
path: "/public/youtube/videos/{videoId}"
tags: ["📢 Public APIs"]
---

# Get video by id

`GET /public/youtube/videos/{videoId}`

This API endpoint allows you to retrieve a YouTube video's complete details by passing the `videoId` as a path variable.

When accessing this endpoint with a valid video ID, you will receive a response containing comprehensive information about the specified video.

This includes video statistics such as the number of likes, dislikes, views, and the video's duration, as well as other relevant details like the video title, description, channel name, and publication date.

This functionality enables you to access and display detailed information about specific YouTube videos within your application.

**Disclaimer:**

Data provided by the API is static and not real-time.

This simplifies the process of developing a **YouTube clone**, allowing developers to solely focus on UI design and creativity, without worrying about complex API key configuration.

## Response `200`

Get video by id

- object
  - `data` object
    - `channel` object
      - `info` object
        - `country` string
        - `customUrl` string
        - `description` string
        - `localized` object
          - `description` string
          - `title` string
        - `publishedAt` string
        - `thumbnails` object
          - `default` object
            - `height` number
            - `url` string
            - `width` number
          - `high` object
            - `height` number
            - `url` string
            - `width` number
          - `medium` object
            - `height` number
            - `url` string
            - `width` number
        - `title` string
      - `statistics` object
        - `hiddenSubscriberCount` boolean
        - `subscriberCount` string
        - `videoCount` string
        - `viewCount` string
    - `video` object
      - `items` object
        - `contentDetails` object
          - `caption` string
          - `contentRating` object
          - `definition` string
          - `dimension` string
          - `duration` string
          - `licensedContent` boolean
          - `projection` string
        - `id` string
        - `kind` string
        - `snippet` object
          - `categoryId` string
          - `channelId` string
          - `channelTitle` string
          - `defaultAudioLanguage` string
          - `description` string
          - `liveBroadcastContent` string
          - `localized` object
            - `description` string
            - `title` string
          - `publishedAt` string
          - `tags` string[]
          - `thumbnails` object
            - `default` object
              - …
            - `high` object
              - …
            - `maxres` object
              - …
            - `medium` object
              - …
            - `standard` object
              - …
          - `title` string
        - `statistics` object
          - `commentCount` string
          - `favoriteCount` string
          - `likeCount` string
          - `viewCount` string
      - `kind` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/revisions/a9f3a290e4dc/schema)
