Extract structured data from an online video’s transcript using a custom schema.
Provide a video_url and a JSON schema describing the fields to extract. Optionally include what_to_extract to guide the extraction.
Schema format: Each field must have type and description. Supported types: String, Number, Boolean, Integer, Object, Array, Enum. Max 10 root fields, max 3 nesting levels.
Content-Type: Accepts application/json or YAML (application/x-yaml, text/yaml).
Token usage: Set include_usage=true to include prompt/completion token counts in the response.
video_url and a schema defining the fields to extracttype and descriptionString, Number, Boolean, Integer, Object, Array, Enumwhat_to_extract to provide additional context to the AI about what to focus on:
usage field is only included when include_usage=true in the request.API key authentication. Include your VidNavigator API key in the X-API-Key header.
URL of the video to extract data from
"https://youtube.com/watch?v=dQw4w9WgXcQ"
Custom extraction schema defining the fields to extract. Max 10 root-level fields, max 3 nesting levels. Each field must have type and description.
{
"main_topics": {
"type": "Array",
"description": "List of main topics discussed",
"items": {
"type": "String",
"description": "A topic"
}
},
"sentiment": {
"type": "Enum",
"description": "Overall sentiment of the video",
"enum": ["positive", "negative", "neutral"]
},
"key_takeaway": {
"type": "String",
"description": "The single most important takeaway"
}
}
Optional guidance for what to extract from the transcript
"Extract the main topics and any product names mentioned"
When true, includes token usage statistics in the response