Torrent info

class Tribler.Core.Modules.restapi.torrentinfo_endpoint.TorrentInfoEndpoint(session)[source]

This endpoint is responsible for handing all requests regarding torrent info in Tribler.

render_GET(request)[source]
GET /torrentinfo

A GET request to this endpoint will return information from a torrent found at a provided URI. This URI can either represent a file location, a magnet link or a HTTP(S) url. - torrent: the URI of the torrent file that should be downloaded. This parameter is required.

Example request:

curl -X PUT http://localhost:8085/torrentinfo?torrent=file:/home/me/test.torrent

Example response:

{"metainfo": <torrent metainfo dictionary>}