The front-end can access JSON APIs, which are generated using tools/build_metadata_json.py during the deployment workflow.
GET /json/subtitles.json
The array of video IDs.
[<video_id>, ...]GET /json/reviewed.json
The array of video IDs.
[<video_id>, ...]GET /json/<video_id>.json
| Parameter | Type | Description |
|---|---|---|
video_id |
string |
Required. Youtube video id |
{
"id": string <Youtube video id>,
"title": string <Youtube video title>,
"length": number <The length of video in minutes>,
"subtitle": string <The file path of video subtitle>,
"reviewed": boolean <The subtitle is reviewed or not>,
"translation": {
"<language>": string,
...
},
}
GET /json/titles.json
{
"<video_id>" : <video_title>,
...
}