Developer API documentation

Convert to vtt

POST
https://subtitletools.com/api/v1/convert-to-vtt
This endpoint is the API version of the convert to vtt tool.

This endpoint can be used for validating and fixing vtt files. Posting an invalid vtt file will return an error. Posting a valid vtt file will return 200 response. The tool automatically fixes common mistakes in the uploaded vtt file.

Request body

Field Type Required Description
subtitle File Required The input file that should be converted to vtt

Example responses

{
    errors: null,
    download_url: "https://subtitletools.com/api/v1/download/6436c844e3"
}

Or, when a validation error occurs:

{
    errors: [
        "The subtitle field is required."
    ],
    download_url: null
}