Wyzie Subs

Directly Fetching Wyzie Subs#

I strongly recommend using the NPM package as it is easier and more reliable.

If you have decided against using the NPM package, then let's get started. I will only be going over API parameters and data returned by the API. How you request the API is entirely up to you.

Example#

{
  "id": "1955015532",
  "url": "https://dl.opensubtitles.org/en/download/subencoding-utf8/src-api/vrf-19990c4d/file/1955015532",
  "flagUrl": "https://flagsapi.com/US/flat/24.png",
  "format": "srt",
  "encoding": "UTF-8",
  "display": "English",
  "language": "en",
  "media": "The Martian",
  "isHearingImpaired": false
}

Parameters#

ParameterExampleDescription
id/search?id=tt3659388 or /search?id=286217The TMDB or IMDB ID of the show or movie (id is required).
season & episode/search?id=tt0121955&season=1&episode=1The season and episode of the media if it's a show. (Both season and episode are required.)
language/search?id=tt3659388&language=enThe language of the subtitles that will be returned (must be in an ISO 3166-2 code).
format/search?id=tt3659388&format=srtThe format of subtitles returned.
hi/search?id=tt3659388&hi=trueDetermines if the subtitles are for the hearing impaired.
encoding/search?id=tt3659388&encoding=utf-8The character encoding of the subtitle files.
source`/search?source=subdlDesired source of the subtitle (defaults to open-subtitles).

When using an IMDB ID, ensure that the first two characters ('tt') are included at the beginning of the ID.

Data Returned#

ObjectDescription
idThe ID of the subtitle file.
urlThe URL to the subtitle file.
flagUrlURL to the flag of the language's locale.
formatThe format of the subtitle file.
encodingThe character encoding of the subtitle file.
displayThe language of the subtitle, capitalized.
languageThe ISO 3166-2 code of the language.
mediaThe name of the media that the subtitles are for.
isHearingImpairedBoolean representing if the subtitle is hearing impaired accessible.
sourceWhich source the subtitle was scraped from.