import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
subtitle = client.streaming.videos.subtitles.get(
id=0,
video_id=0,
)
print(subtitle)
{
"id": 1000,
"name": "German (AI-generated)",
"language": "ger",
"vtt": "WEBVTT\n\n1\n00:00:07.154 --> 00:00:12.736\nWir haben 100 Millionen registrierte Benutzer oder aktive Benutzer, die mindestens einmal pro Woche spielen.\n\n2\n00:00:13.236 --> 00:00:20.198\nWir haben vielleicht 80 oder 100.000, die auf einem bestimmten Cluster spielen."
}
Subtitles
Get subtitle
Returns information about a specific subtitle for a video.
GET
/
streaming
/
videos
/
{video_id}
/
subtitles
/
{id}
Python
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
subtitle = client.streaming.videos.subtitles.get(
id=0,
video_id=0,
)
print(subtitle)
{
"id": 1000,
"name": "German (AI-generated)",
"language": "ger",
"vtt": "WEBVTT\n\n1\n00:00:07.154 --> 00:00:12.736\nWir haben 100 Millionen registrierte Benutzer oder aktive Benutzer, die mindestens einmal pro Woche spielen.\n\n2\n00:00:13.236 --> 00:00:20.198\nWir haben vielleicht 80 oder 100.000, die auf einem bestimmten Cluster spielen."
}