MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=timedtext

(main | timedtext)
  • This module is internal or unstable. Its operation may change without notice.
  • This module requires read rights.
  • Source: TimedMediaHandler
  • License: GPL-2.0-or-later

Provides timed text content for usage by <track> elements

Parameters:
title

The media file title for which to retrieve timed text

pageid

The pageid of the media file for which to retrieve timed text

Type: integer
trackformat

The file format in which to return timed text

One of the following values: srt, vtt
lang

The language of the timed text to retrieve

Example:
Fetch an SRT subtitle file in German for the file Example.ogv
api.php?action=timedtext&title=File:Example.ogv&lang=de&trackformat=vtt [open in sandbox]