GET
/
movie
/
{tmdbId}
Get Movie Sources
const url = 'http://localhost:3000/movie/{tmdbId}';
const options = {method: 'GET', body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "files": [
    {
      "file": "<string>",
      "type": "hls",
      "lang": "<string>"
    }
  ],
  "subtitles": [
    {
      "url": "<string>",
      "lang": "<string>"
    }
  ],
  "errors": [
    {
      "message": "<string>",
      "response": 123,
      "hint": "<string>",
      "error": true,
      "reportTo": "<string>"
    }
  ]
}
When debug mode is enabled, the array of errors will show that each error.response is 500 (or different). That is NOT the acctuall HTTP status code of the response, but rather a custom error code that is used to indicate what might have gone wrong while scraping the provider.
When debug mode is enabled, CinePro will automatically send the error messages of the different providers to the frontend. The hint field in the error won’t contain a hint about the how to resolve the error, but rather a note to the developers of what might have gone wrong.

Path Parameters

tmdbId
string
required

TMDB ID of the movie

Response

200
application/json

Successful operation

The response is of type object.