Skip to main content

Available Formats

ScriptBase supports four transcript formats, each optimized for different use cases.

Format Comparison

FormatTimestampsStructureBest ForFile Extension
JSONSeparate fieldsStructuredAnalysis, search, processing.json
TextNonePlain textSimple extraction, LLMs.txt
SRTInlineTimed blocksVideo editors, subtitles.srt
VTTInlineTimed blocksWeb video players.vtt

JSON Format

Best for programmatic processing and analysis. Request:
curl "https://api.scriptbase.app/api/v1/transcripts/dQw4w9WgXcQ?format=json" \
  -H "X-API-Key: sk_your_key"
Response:
{
  "success": true,
  "data": {
    "videoId": "dQw4w9WgXcQ",
    "format": "json",
    "segments": [
      {
        "text": "We're no strangers to love",
        "start": 0.0,
        "duration": 2.5
      },
      {
        "text": "You know the rules and so do I",
        "start": 2.5,
        "duration": 3.0
      }
    ]
  }
}
Use Cases:
  • Search and analysis
  • Text processing with timestamps
  • Building custom applications
  • Training machine learning models

Text Format

Clean, plain text without timestamps. Request:
curl "https://api.scriptbase.app/api/v1/transcripts/dQw4w9WgXcQ?format=text" \
  -H "X-API-Key: sk_your_key"
Response:
{
  "success": true,
  "data": {
    "videoId": "dQw4w9WgXcQ",
    "format": "text",
    "content": "We're no strangers to love\nYou know the rules and so do I\nA full commitment's what I'm thinking of..."
  }
}
Use Cases:
  • Feeding to LLMs (GPT, Claude, etc.)
  • Simple text search
  • Content summarization
  • Quick reading

SRT Format

Standard subtitle format for video editors. Request:
curl "https://api.scriptbase.app/api/v1/transcripts/dQw4w9WgXcQ?format=srt" \
  -H "X-API-Key: sk_your_key"
Response:
{
  "success": true,
  "data": {
    "videoId": "dQw4w9WgXcQ",
    "format": "srt",
    "content": "1\n00:00:00,000 --> 00:00:02,500\nWe're no strangers to love\n\n2\n00:00:02,500 --> 00:00:05,500\nYou know the rules and so do I..."
  }
}
Use Cases:
  • Video editing software (Premiere, Final Cut, etc.)
  • Adding subtitles to videos
  • Translation workflows
  • Accessibility compliance

VTT Format

Web standard for HTML5 video players. Request:
curl "https://api.scriptbase.app/api/v1/transcripts/dQw4w9WgXcQ?format=vtt" \
  -H "X-API-Key: sk_your_key"
Response:
{
  "success": true,
  "data": {
    "videoId": "dQw4w9WgXcQ",
    "format": "vtt",
    "content": "WEBVTT\n\n00:00:00.000 --> 00:00:02.500\nWe're no strangers to love\n\n00:00:02.500 --> 00:00:05.500\nYou know the rules and so do I..."
  }
}
Use Cases:
  • HTML5 video players
  • Web-based video platforms
  • Browser-native subtitles
  • Streaming services

Choosing the Right Format

Use text format - clean, no timestamps, ready for GPT/Claude
Use JSON format - structured data with timestamps for precise analysis
Use SRT format - industry standard, works with all major editing tools
Use VTT format - HTML5 native, best for web video