🚧 The Consumet documentation is undergoing reconstruction. Please be patient for all providers to be fully-documented. 🚧
API
Movies
Goku
Get Episode Streaming Links

Get Episode Streaming Links

Technical details regarding the usage of the get streaming links function for the Goku provider can be found below. Example code is provided for both JavaScript and Python, along with a response schema.

Route Schema (URL)

https://api.consumet.org/movies/goku/watch?episodeId={episodeId}&mediaId={mediaId}

Query Parameters

ParameterTypeDescriptionRequired?Default
episodeIdstringThe ID of the selected episodeYesN/A
mediaIdstringThe movie/show info IDYesN/A

Request Samples

import axios from "axios";
 
// Using the example episode ID and media ID
const url = "https://api.consumet.org/movies/goku/watch";
const data = async () => {
    try {
        const { data } = await axios.get(url, { 
          params: { 
            episodeId: "12345", 
            mediaId: "movie/watch-avengers-endgame-19612" 
          } 
        });
        return data;
    } catch (err) {
        throw new Error(err.message);
    }
};
 
console.log(data);

Response Schema

MIME Type: application/json

{
  "headers": {
    "Referer": "string"
  },
  "sources": [
    {
      "url": "string",
      "quality": "string",
      "isM3U8": true
    }
  ],
  "subtitles": [
    {
      "url": "string",
      "lang": "string"
    }
  ]
}