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>"
}
],
"videoDetails": {
"title": "<string>",
"description": "<string>"
},
"metadata": {
"totalCaptions": 123,
"extractionTime": 123,
"timestamp": "<string>"
}
},
"creditsCost": 123,
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z"
}
Extract captions/subtitles from a YouTube video using video ID
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>"
}
],
"videoDetails": {
"title": "<string>",
"description": "<string>"
},
"metadata": {
"totalCaptions": 123,
"extractionTime": 123,
"timestamp": "<string>"
}
},
"creditsCost": 123,
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z"
}
Enter your API token or session token
YouTube caption extraction parameters
The body is of type object
.
Captions extracted successfully
The response is of type object
.