YouTube Video Info

API key Retired v1
Retired on 15 Sep 2026. This endpoint is retired as of 15 September 2026. It receives no further fixes or support and may be switched off without further notice. Remove it from existing integrations; no replacement is offered.

Duration, view counts, metadata and channel details for one video.

Looks up a single YouTube video by its page URL and returns its statistics, description and the channel that published it.

GET https://api.zactonz.com/tuber/v1/yt-fetch.php

Parameters

NameTypeDescription
keyrequired string

Your API key, repeated as a query parameter. Kept for existing integrations; the Authorization: Bearer header is the supported way to authenticate.

urlrequired string

The YouTube video URL.

Send parameters in the query string.

Response

Video statistics and channel information.

FieldTypeDescription
status string

"200" on success (a string). See status codes below.

results object
results.videoId string
results.title string
results.description string
results.publishedAt string

ISO 8601 publish time.

results.thumbnail string

hqdefault thumbnail URL.

results.duration string

H:MM:SS or MM:SS.

results.viewCount string
results.likeCount string
results.dislikeCount null

Always null.

results.commentCount string
results.channel object
results.channel.channelId string
results.channel.channelTitle string
results.channel.subscriberCount string
results.channel.thumbnail string

Channel avatar URL.

results.channel.viewCount string

Lifetime channel views.

Status codes

The outcome is reported in the JSON status field. See Errors & status codes for the general rules.

200 OK

The video was found. An empty results means its statistics are not public.

301 Not a video URL

No video id could be read from url.

400 Missing key

key was absent.

403 Invalid key

key is not recognised.

502 Lookup failed

YouTube's Data API rejected the request. Retry later.

Notes

Accepts watch?v=, youtu.be/ and embed URLs. dislikeCount is always null (retired by YouTube in 2021). Videos whose statistics are private return status 200 with an empty results object.