Version DEV, running on subtitle.service.srw.cz
The service is designed to convert subtitles in different formats.
Supported formats are:
/api/v1/conversionsConvert subtitles to specific format. Input/output formats .srt, .vtt and .ass are supported.
POST https://api.example.com/api/v1/conversions
Content-Type: application/json
| Parameter | Type | Presence | Description |
|---|---|---|---|
| subtitle | String | Required | Subtitles to convert. |
| format | String | Required | Output format (srt, vtt or ass). |
| options | Object | Optional | Options |
| input | Object | Optional | Input options. |
| strict | Boolean | Optional | Use strict format. Default is true. |
Example:
{
"subtitle": "...",
"format": "vtt",
"options": {
"input": {
"strict": false
}
}
}
Content-Type: text/plain
Converted subtitles to specific format.
Example:
WEBVTT
00:11.000 --> 00:13.000
First subtile
Content-Type: application/json
| Parameter | Description |
|---|---|
| InvalidRequestBody | Invalid request body json format. |
| MissingParameter | Missing required parameter in request. |
| UnsupportedOuÂtputFormat | Requested unsupported output format. |
| ParseInputError | Parse input format error. |
| ConvertError | Convert error. |
| InputFormat | Detected input format (srt, vtt, ass). |
Example:
{
"InvalidRequestBody": "Unable to parse Json - quoted object property name expected"
}