YTS Movie Torrents Search

The YTS Movie Torrents Search allows you to search for and retrieve detailed information about movies on YTS (YIFY Torrents).

Base URL

"https://openapi-idk8.onrender.com/"

Search Endpoint

GET `/yts?title=movie_title`

Description: Searches for a movie on YTS based on the provided movie title.

Query Parameters

  • title (required): The title of the movie to search for on YTS.

Sample Request

GET `https://openapi-idk8.onrender.com/yts?title=Inception`

Sample Response

[
  {
      "title": "Inception",
      "url": "https://yts.mx/movies/inception-2010",
      "year": "2010",
      "rating": "8.8",
      "thumbnailURL": "https://yts.mx/assets/images/movies/inception_2010/medium-cover.jpg"
  },
  ...
]

The response includes an array of movie objects with details like title, URL, year, rating, and thumbnail URL.

Error Handling

400 Bad Request: Returned when the required title query parameter is missing.

{
  "error": "Title query is required."
}

404 Not Found: Returned when no results are found for the provided movie title.

{
  "error": "No results found."
}

500 Internal Server Error: Returned when there is an issue processing the request.

{
  "error": "Internal server error."
}

YTS Movie Download API

The YTS Movie Download API allows you to extract detailed information and torrents for a specific movie based on the provided YTS URL.

Download Endpoint

GET `/yts/download?url=yts_movie_url`

Description: Extracts detailed movie information and torrents for a specific movie based on the provided YTS URL.

Query Parameters

  • url (required): The YTS URL of the movie for which information is requested.

Sample Request

GET `https://openapi-idk8.onrender.com/yts/download?url=https://yts.mx/movies/inception-2010`

Sample Response

{
  "title": "Inception",
  "year": "2010",
  "thumbnailURL": "https://yts.mx/assets/images/movies/inception_2010/medium-cover.jpg",
  "movieSubInfo": {
      "synopsis": "A thief who enters the dreams of others to steal their secrets from their subconscious.",
      "director": "Christopher Nolan",
      "cast": [
          { "name": "Leonardo DiCaprio" },
          { "name": "Joseph Gordon-Levitt" },
          ...
      ]
  },
  "torrents": [
      {
          "quality": "720p",
          "size": "1.00 GB",
          "downloadLink": "https://yts.mx/torrent/download/inception-2010/720p",
          "magnetLink": "https://yts.mx/torrent/download/inception-2010/720p"
      },
      ...
  ]
}

The response includes detailed movie information, including title, year, thumbnail URL, synopsis, director, cast, and torrents.

Error Handling

400 Bad Request: Returned when the required URL query parameter is missing.

{
  "error": "URL query is required."
}

500 Internal Server Error: Returned when there is an issue processing the request.

{
  "error": "Internal server error."
}