YouTube API
Shorts Info
Get details for a YouTube Short.
POST
$0.01/call/v1/youtube/shorts-infoUsage
const res = await fetch('https://api.yepapi.com/v1/youtube/shorts-info', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ id: 'abc123' }),
});
const { data } = await res.json();
console.log(data.title, data.viewCount);curl -X POST https://api.yepapi.com/v1/youtube/shorts-info \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id": "abc123"}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
id | string | Yes | YouTube video/short ID | — |
geo | string | No | Country code for geo-specific results | — |
lang | string | No | Language code | — |
Response
{
"ok": true,
"data": {
"id": "abc123",
"title": "Funny Short",
"channelTitle": "Creator",
"channelId": "UCxyz...",
"viewCount": "5000000",
"likeCount": 250000,
"description": "Wait till the end!",
"publishDate": "2026-03-15"
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.id | string | YouTube Short/video identifier |
data.title | string | Short title as displayed on YouTube |
data.channelTitle | string | Name of the channel that uploaded the Short |
data.channelId | string | Unique identifier for the channel |
data.viewCount | string | Total view count as a numeric string |
data.likeCount | number | Total number of likes |
data.description | string | Short description text |
data.publishDate | string | Publish date in YYYY-MM-DD format |