YouTube Video Info
API key Retired v1Duration, 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.
https://api.zactonz.com/tuber/v1/yt-fetch.php
Parameters
| Name | Type | Description |
|---|---|---|
keyrequired |
string |
Your API key, repeated as a query parameter. Kept for existing integrations; the |
urlrequired |
string |
The YouTube video URL. |
Send parameters in the query string.
Response
Video statistics and channel information.
| Field | Type | Description |
|---|---|---|
status |
string |
|
results |
object | |
results.videoId |
string | |
results.title |
string | |
results.description |
string | |
results.publishedAt |
string | ISO 8601 publish time. |
results.thumbnail |
string |
|
results.duration |
string |
|
results.viewCount |
string | |
results.likeCount |
string | |
results.dislikeCount |
null | Always |
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 |
301 |
Not a video URL | No video id could be read from |
400 |
Missing key |
|
403 |
Invalid key |
|
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.