cURL
curl --request POST \ --url https://api.weblinq.dev/v2/web/yt-captions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "videoId": "<string>", "lang": "en", "includeVideoDetails": false } '
{ "success": true, "data": { "videoId": "<string>", "language": "<string>", "captions": [ { "start": "<string>", "dur": "<string>", "text": "<string>" } ], "metadata": { "totalCaptions": 123, "extractionTime": 123, "timestamp": "<string>" }, "videoDetails": { "title": "<string>", "description": "<string>" } }, "requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "timestamp": "2023-11-07T05:31:56Z", "creditsCost": 123 }
Extract captions/subtitles from a YouTube video using video ID
Enter your API token or session token
YouTube caption extraction parameters
YouTube video ID
1 - 100
Language code for subtitles (e.g., "en", "fr", "de")
2 - 5
Whether to include video details along with captions
Captions extracted successfully
true
false
Show child attributes
Unique request identifier for tracing
ISO timestamp when the response was generated
Credits consumed by this operation