YTS.am Torrent

FREE
By theapiguy
Updated 3 months ago
Media
7/10
Popularity Score
111ms
Latency
16%
Success Rate

YTS.am Torrent API Documentation

This is a lightweight web service, (REST interface), which provides an easy way to access the YTS website. An API (Application programming interface) is a protocol intended to be used as an interface by software components to communicate with each other. Our API supports many methods, so there should not be a problem coding some nice applications.

View API Details
XML
POSTLike Movie (XML)
POSTEdit User Settings (XML)
GETMovie Parental Guides (XML)
GETMovie Comments (XML)
GETUser Details (XML)
GETList Movies (XML)
GETMovie Reviews (XML)
GETMovie Details (XML)
POSTRegister User (XML)
GETMovie Suggestions (XML)
POSTGet User Key (XML)
POSTForgot User Password (XML)
GETList Upcoming (XML)
JSONP
GETMovie Comments (JSONP)
POSTReset User Password (JSONP)
GETMovie Parental Guides (JSONP)
POSTRegister User (JSONP)
POSTReset User Password (XML)
POSTEdit User Settings (JSONP)
GETMovie Details (JSONP)
GETList Movies (JSONP)
GETMovie Reviews (JSONP)
GETUser Details (JSONP)
GETMovie Suggestions (JSONP)
POSTLike Movie (JSONP)
POSTGet User Key (JSONP)
POSTForgot User Password (JSONP)
GETList Upcoming (JSONP)
JSON
GETMovie Details (JSON)
GETList Movies (JSON)
POSTReset User Password (JSON)
GETMovie Parental Guides (JSON)
POSTRegister User (JSON)
POSTLike Movie (JSON)
GETUser Details (JSON)
POSTGet User Key (JSON)
GETMovie Suggestions (JSON)
GETMovie Reviews (JSON)
GETList Upcoming (JSON)
POSTForgot User Password (JSON)
GETMovie Comments (JSON)
POSTEdit User Settings (JSON)
POSTLike Movie (XML)

Endpoint is used to send a like (heart) for a specific movie

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
user_keySTRING
REQUIREDThe key that you get from authenticating using the API (Get User Key endpoint)
application_keySTRING
REQUIREDTo make any POST requests to our API you must use your developer's 'application_key', if you do not have one please apply HERE: https://yts.am/contact
movie_idNUMBER
REQUIREDThe ID of the movie
Code Snippet
unirest.post("https://yts-am-torrent.p.rapidapi.com/like_movie.xml?movie_id=<required>")
.header("X-RapidAPI-Host", "yts-am-torrent.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://yts-am-torrent.p.rapidapi.com/like_movie.xml
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://yts-am-torrent.p.rapidapi.com/like_movie.xml?movie_id=<required>")
.header("X-RapidAPI-Host", "yts-am-torrent.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication