API Reference
YouTube Video Info
API Reference
YouTube Video Info
Retrieves detailed information about a specific YouTube video
POST
/
youtube-video-info
curl --request POST \
--url https://api.growthmarketing.ai/youtube-video-info \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"video_id": "vQXvyV0zIP4",
"language_code": "en",
"location_code": 2840
}'
{
"success": true,
"data": {
"data": {
"api": "serp",
"function": "live",
"se": "youtube",
"se_type": "video_info",
"language_code": "en",
"location_code": 2840,
"video_id": "vQXvyV0zIP4",
"check_url": "https://www.youtube.com/watch?v=vQXvyV0zIP4"
},
"result": {
"type": "youtube_video_info",
"video_id": "vQXvyV0zIP4",
"title": "Video Title",
"url": "https://www.youtube.com/watch?v=vQXvyV0zIP4",
"thumbnail_url": "https://i.ytimg.com/vi/vQXvyV0zIP4/default.jpg",
"channel_id": "UCl1hby9X42xkXUiAVcJS81A",
"channel_name": "Channel Name",
"channel_url": "https://www.youtube.com/channel/UCl1hby9X42xkXUiAVcJS81A",
"channel_logo": "https://yt3.ggpht.com/example",
"description": "Video description...",
"views_count": 1234567,
"likes_count": 12345,
"comments_count": 1234,
"channel_subscribers_count": {
"displayed_count": "100K subscribers",
"count": 100000
},
"publication_date": "2024-01-01",
"timestamp": "2024-01-01 12:00:00 +00:00",
"keywords": [
"keyword1",
"keyword2"
],
"category": "Category Name",
"is_live": false,
"is_embeddable": true,
"duration_time": "10:30",
"duration_time_seconds": 630,
"streaming_quality": [
{
"type": "streaming_quality_element",
"label": "1080p",
"width": 1920,
"height": 1080,
"bitrate": 2500000,
"mime_type": "video/mp4; codecs=\"avc1.640028\"",
"fps": 30
}
]
}
}
}
Authorizations
Body
application/json
YouTube video ID
Example:
"vQXvyV0zIP4"
Language code
Example:
"en"
Location code (2840 for US)
Example:
2840
Response
200 - application/json
Successful response
Example:
true
Example:
"serp"
Example:
"live"
Example:
"youtube"
Example:
"video_info"
Example:
"en"
Example:
2840
Example:
"vQXvyV0zIP4"
Example:
"https://www.youtube.com/watch?v=vQXvyV0zIP4"
Example:
"youtube_video_info"
Example:
"vQXvyV0zIP4"
Example:
"Video Title"
Example:
"https://www.youtube.com/watch?v=vQXvyV0zIP4"
Example:
"https://i.ytimg.com/vi/vQXvyV0zIP4/default.jpg"
Example:
"UCl1hby9X42xkXUiAVcJS81A"
Example:
"Channel Name"
Example:
"https://www.youtube.com/channel/UCl1hby9X42xkXUiAVcJS81A"
Example:
"https://yt3.ggpht.com/example"
Example:
"Video description..."
Example:
1234567
Example:
12345
Example:
1234
Example:
"2024-01-01"
Example:
"2024-01-01 12:00:00 +00:00"
Example:
["keyword1", "keyword2"]
Example:
"Category Name"
Example:
false
Example:
true
Example:
"10:30"
Example:
630
Example:
"streaming_quality_element"
Example:
"1080p"
Example:
1920
Example:
1080
Example:
2500000
Example:
"video/mp4; codecs=\"avc1.640028\""
Example:
30
curl --request POST \
--url https://api.growthmarketing.ai/youtube-video-info \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"video_id": "vQXvyV0zIP4",
"language_code": "en",
"location_code": 2840
}'
{
"success": true,
"data": {
"data": {
"api": "serp",
"function": "live",
"se": "youtube",
"se_type": "video_info",
"language_code": "en",
"location_code": 2840,
"video_id": "vQXvyV0zIP4",
"check_url": "https://www.youtube.com/watch?v=vQXvyV0zIP4"
},
"result": {
"type": "youtube_video_info",
"video_id": "vQXvyV0zIP4",
"title": "Video Title",
"url": "https://www.youtube.com/watch?v=vQXvyV0zIP4",
"thumbnail_url": "https://i.ytimg.com/vi/vQXvyV0zIP4/default.jpg",
"channel_id": "UCl1hby9X42xkXUiAVcJS81A",
"channel_name": "Channel Name",
"channel_url": "https://www.youtube.com/channel/UCl1hby9X42xkXUiAVcJS81A",
"channel_logo": "https://yt3.ggpht.com/example",
"description": "Video description...",
"views_count": 1234567,
"likes_count": 12345,
"comments_count": 1234,
"channel_subscribers_count": {
"displayed_count": "100K subscribers",
"count": 100000
},
"publication_date": "2024-01-01",
"timestamp": "2024-01-01 12:00:00 +00:00",
"keywords": [
"keyword1",
"keyword2"
],
"category": "Category Name",
"is_live": false,
"is_embeddable": true,
"duration_time": "10:30",
"duration_time_seconds": 630,
"streaming_quality": [
{
"type": "streaming_quality_element",
"label": "1080p",
"width": 1920,
"height": 1080,
"bitrate": 2500000,
"mime_type": "video/mp4; codecs=\"avc1.640028\"",
"fps": 30
}
]
}
}
}