Developer API documentation

Subtitle merger - glue end-to-end mode

POST
https://subtitletools.com/api/v1/merge-subtitles/glue-end-to-end
This endpoint is the API version of the 'glue end-to-end' mode of the subtitle merger tool.

Request body

Field Type Required Description
subtitle File Required The base subtitle file
second-subtitle File Required The merge subtitle. This file will be glued to the end of the base subtitle.
glueVideoLength String Required The length of the base video in hh:mm:ss format
baseSubtitleColor String Required A hex color, for example #ffff54. This color will be applied to text of the base subtitle. If you don't want to color the text, send null.
mergeSubtitleColor String Required A hex color, for example #ffff54. This color will be applied to text of the merge subtitle. If you don't want to color the text, send null.

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
}