Skip to content

Latest commit

 

History

History
325 lines (313 loc) · 16 KB

API.md

File metadata and controls

325 lines (313 loc) · 16 KB

API Documentation

API Endpoints

  • List Movies
  • Movie Details
  • Movie Suggestions
  • Movie Comments
  • Movie Reviews
  • Movie Parental Guides
  • List Upcoming

status The returned status for the API call, can be either 'ok' or 'error' ok status_message Either the error message or the successful message Query was successful data If 'status' is returned as 'ok' the API query results will be inside 'data' data

List Movies HTTP GET https://yts.am/api/v2/list_movies.json https://yts.am/api/v2/list_movies.jsonp https://yts.am/api/v2/list_movies.xml

Endpoint Parameters limit Integer between 1 - 50 (inclusive) 20 The limit of results per page that has been set page Integer (Unsigned) 1 Used to see the next page of movies, eg limit=15 and page=2 will show you movies 15-30 quality String (720p, 1080p, 3D) All Used to filter by a given quality minimum_rating Integer between 0 - 9 (inclusive) 0 Used to filter movie by a given minimum IMDb rating query_term String 0 Used for movie search, matching on: Movie Title/IMDb Code, Actor Name/IMDb Code, Director Name/IMDb Code genre String All Used to filter by a given genre (See http://www.imdb.com/genre/ for full list) sort_by String (title, year, rating, peers, seeds, download_count, like_count, date_added) date_added Sorts the results by choosen value order_by String (desc, asc) desc Orders the results by either Ascending or Descending order with_rt_ratings Boolean false Returns the list with the Rotten Tomatoes rating included

Examples URL Description https://yts.am/api/v2/list_movies.json?quality=3D Returns the latest 20 3D movies using JSON format https://yts.am/api/v2/list_movies.xml?sort=seeds&limit=15 Returns maximum 15 movies which are sorted by seeds Response Data Key Name Description Example movie_count The total movie count results for your query 2131 limit The limit of results per page that has been set 20 page_number The current page number you are viewing 1 movies An array which will hold multiple movies and their relative information ARRAY To get Magnet URLs you need to construct this yourself like so:

magnet:?xt=urn:btih:TORRENT_HASH&dn=Url+Encoded+Movie+Name&tr=http://track.one:1234/announce&tr=udp://track.two:80

You can add as many trackers as you want, we recommend the following:

magnet:?xt=urn:btih:TORRENT_HASH&dn=Url+Encoded+Movie+Name&tr=http://track.one:1234/announce&tr=udp://track.two:80

You can add as many trackers as you want, we recommend the following: