Send utorrent links over to the utorrent web API with five variables: host, port, user, password, and link. This will take magnetic links, and .torrent links and will add the link into your running utorrent web api.

Usage no npm install needed!

<script type="module">
  import utorrentWeb from 'https://cdn.skypack.dev/utorrent-web';



This module will log into your web API with the username and password you provide, get the web API token, and re-use the username, password, and token on the second request (which is where the module submits the link you provide).

utorrent web API example

var utorrent = require('utorrent-web');
utorrent('localhost', '8080', 'admin', 'password', 'http://torrents.linuxmint.com/torrents/linuxmint-17.3-cinnamon-64bit.iso.torrent');