Extract data from YouTube video
This endpoint extracts structured data from any YouTube video transcript using AI.
Endpoint
POST /api/v1/extract-data-from-youtube-video
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
url | string | Yes | The YouTube video URL. Supported formats: youtu.be/[id], youtube.com/watch?v=[id], youtube.com/live/[id] |
columns | array | Yes | Array of field names to extract from the video content (e.g., ["main_topic", "key_statistics", "mentioned_tools"]) |
preferred_language | string | No | Preferred transcript language code (e.g., "en", "es") |
Response
A successful response will return a JSON object with the following properties:
{
"data": {
"video_id": "dQw4w9WgXcQ",
"channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw",
"channel_name": "Channel Name",
"title": "Video Title",
"data": {
"main_topic": "Introduction to Machine Learning",
"key_statistics": "85% accuracy in prediction models",
"mentioned_tools": ["TensorFlow", "PyTorch", "Scikit-learn"]
},
}
}
Example
curl https://nobinge.com/api/v1/extract-data-from-youtube-video \
-X POST \
-H "Authorization: Bearer your_token_here" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"columns": ["main_topic", "key_statistics", "mentioned_tools"]
}'