API Documentation
REST API for interacting with TorrentX torrents. All responses are JSON unless noted.
/api/torrentsList all torrents with pagination
Query Parameters
page(number)Page number (default: 1)limit(number)Results per page (default: 50)category(string)Filter by category/api/searchSearch torrents by title or description
Query Parameters
q(string)Search querycat(string)Category filtersort(string)Sort field (title, size, seeds, leeches)order(string)Sort order (asc, desc)/api/torrentsCreate a new torrent (auth required)
Request Body
{ title, category, size, magnetLink, description?, source?, subcategory? }/api/commentsGet comments for a torrent
Query Parameters
torrentId(string)Torrent ID/api/commentsAdd a comment to a torrent
Request Body
{ torrentId, author, content }/api/comments/voteVote on a comment
Request Body
{ commentId, direction: "up" | "down" }/api/bookmarksList user bookmarks (auth required)
/api/bookmarksToggle bookmark on a torrent (auth required)
Request Body
{ torrentId }/api/notificationsList user notifications (auth required)
/api/notificationsMark a notification as read (auth required)
Request Body
{ notificationId }/rssRSS feed of latest 50 torrents