How to Call the YouTube Video API
Simple REST API endpoint. Just make a GET request with your API key and get structured data back.
GETCode Examples
cURL
curl -X GET 'https://api.parseium.com/v1/youtube-video?url=https://www.youtube.com/watch?v=VIDEO_ID&api_key=YOUR_API_KEY'TypeScript
const response = await fetch(`https://api.parseium.com/v1/youtube-video?url=https://www.youtube.com/watch?v=VIDEO_ID&api_key=${process.env.PARSEIUM_API_KEY}`, {
method: 'GET',
});
const data = await response.json();
console.log(data);Python
import requests
import os
api_key = os.environ['PARSEIUM_API_KEY']
response = requests.get(
f'https://api.parseium.com/v1/youtube-video?url=https://www.youtube.com/watch?v=VIDEO_ID&api_key={api_key}'
)
data = response.json()
print(data)Query Parameters
Pass parameters in the URL query string:
url=https://www.youtube.com/watch?v=VIDEO_IDResponse Schema
The API returns structured JSON data with the following schema:
{
"id": {
"type": "string"
},
"thumbnail": {
"type": "string"
},
"type": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"commentCountText": {
"type": "string"
},
"commentCountInt": {
"type": "number"
},
"likeCountText": {
"type": "string"
},
"likeCountInt": {
"type": "number"
},
"viewCountText": {
"type": "string"
},
"viewCountInt": {
"type": "number"
},
"publishDateText": {
"type": "string"
},
"publishDate": {
"type": "string"
},
"channel": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"handle": {
"type": "string"
},
"title": {
"type": "string"
}
},
"durationMs": {
"type": "number"
},
"durationFormatted": {
"type": "string"
},
"watchNextVideos": [
{
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"thumbnail": {
"type": "string"
},
"channel": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"handle": {
"type": "string"
},
"title": {
"type": "string"
}
},
"publishDateText": {
"type": "string"
},
"publishDate": {
"type": "string"
},
"viewCountText": {
"type": "string"
},
"viewCountInt": {
"type": "number"
},
"lengthText": {
"type": "string"
},
"videoUrl": {
"type": "string"
}
}
],
"keywords": [
{
"type": "string"
}
]
}Need more details? Check out our full API documentation for authentication, error handling, rate limits, and advanced options.
Use Cases for YouTube Video
See how developers use this API in production applications.
Content Analysis
Analyze video performance, engagement metrics, and content strategy for competitor or market research.
Video Monitoring
Track video views, likes, comments, and related content to monitor trends and performance over time.
Metadata Extraction
Extract video metadata, keywords, descriptions, and thumbnails for cataloging and search indexing.
Simple, Transparent Pricing
Every API call to YouTube Video costs 1 credit
Choose a plan based on your monthly usage. All plans include access to all APIs.
~150,000 API calls/mo
- 150,000 credits/month
- Email support
- 1,000 requests/day
- Priority processing
~700,000 API calls/mo
- 700,000 credits/month
- Priority support
- 10,000 requests/day
- Advanced features
~3,000,000 API calls/mo
- 3M credits/month
- Dedicated support
- Unlimited requests
- Custom integrations
Need more? Check out our for enterprise options and custom plans.
Frequently Asked Questions
Common questions about the YouTube Video API.
What video data is included?
Full metadata (ID, title, description, keywords), engagement stats (views, likes, comments), channel info (ID, handle, title), duration, publish date, thumbnail, related videos, and video type (video or short).
Does it work with YouTube Shorts?
Yes, the API works with both regular YouTube videos and YouTube Shorts. Just provide the URL and it will automatically detect and extract the data.
How many related videos are returned?
The API returns the watch next videos that YouTube suggests, typically 10-20 related videos with their metadata, thumbnails, and engagement stats.
Related APIs
Explore other ready-to-use APIs that might interest you.