{"analyzedAt":"2022-07-09T08:33:25.838Z","collected":{"metadata":{"name":"isohunt-api","scope":"unscoped","version":"1.1.1","description":"API to search for torrent files on isohunt.to website","keywords":["torrent","api","isohunt"],"date":"2016-09-23T07:55:20.972Z","author":{"name":"Matthieu Mitrani"},"publisher":{"username":"same31","email":"matthieu.mitrani@gmail.com"},"maintainers":[{"username":"same31","email":"matthieu.mitrani@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/same31/isohunt-api.git"},"links":{"npm":"https://www.npmjs.com/package/isohunt-api"},"license":"MIT","dependencies":{"request":"^2.74.0","request-promise":"^4.1.1"},"releases":[{"from":"2022-06-09T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":1},{"from":"2022-04-10T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":1},{"from":"2022-01-10T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":1},{"from":"2021-07-09T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":1},{"from":"2020-07-09T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":1}],"readme":"isohunt-api\n===========\n\nAPI to search for torrent files on [isoHunt](https://isohunt.to) website.\n\n\nInstallation\n------------\n\nLike every other npm package, run the command\n`npm install isohunt-api`\n\n\nUsage example\n-------------\n\nSearch torrent files for South Park season 19 episode 6.\n\n```javascript\nvar isohuntApi = require('isohunt-api');\nisohuntApi.search('South Park S19E06', { category: 'tv' }).then(torrentList => {\n    torrentList.forEach(torrentInfo => {\n        isohuntApi.getTorrentUrl(torrentInfo.infoUrl).then(torrentUrl => {\n            console.log(torrentInfo);\n            console.log(torrentUrl);\n        });\n    });\n});\n```\n\n\nAPI functions\n-------------\n\n### isohuntApi.search(searchString[, options])\n\nSearches and returns the list of torrent files found by isohunt.to.\n\nThe list is limited to one page of results, 40 items max. It is sorted by seeders count in descending order by default.\n\n#### Parameters\n\n+ **searchString**: The search string\n+ **options** *(optional)*: Object containing following optional properties:\n    - **page** *(optional)*: Integer. Query a specific page of results. Default *1*.\n    - **order** *(optional)*: String. *created_at*, *size*, *seeders*. Default *seeders*.\n    - **by** *(optional)*: String. *ASC* or *DESC*. Default *DESC*.\n    - **category** *(optional)*: String. Limit search to a category. Default not specified, search in all categories.\n    - **verified** *(optional)*: Boolean. Limit search to verified only torrents. Default *false*.\n\nCategory list is the following: *tv*, *movies*, *music*, *games*, *software*, *books*, *adult*, *other*.\n\n\n#### Return value\n\nReturns a promise which is resolved when the search is complete.\n\nThis promise returns a list of objects containing the isohunt torrent info url, title, verified status, size, seeders count and rating.\n\n\n### isohuntApi.getTorrentUrl(torrentInfoUrl)\n\nReturns a torrent file url providing an info url.\n\n\n#### Parameters\n\n+ **torrentInfoUrl**: A torrent info url (This is found in each object of the list returned by isohuntApi.search())\n\n\n#### Return value\n\nReturns a promise which is resolved when the torrent url is found.\n\nThis promise returns the torrent url string.\n\n\n### isohuntApi.getMagnetUrl(torrentInfoUrl)\n\nReturns a magnet url providing an info url.\n\n\n#### Parameters\n\n+ **torrentInfoUrl**: A torrent info url (This is found in each object of the list returned by isohuntApi.search())\n\n\n#### Return value\n\nReturns a promise which is resolved when the magnet url is found.\n\nThis promise returns the magnet url string.\n\n\n### isohuntApi.getDownloadUrls(torrentInfoUrl)\n\nReturns an object containing the magnet and the torrent file urls providing an info url.\n\n\n#### Parameters\n\n+ **torrentInfoUrl**: A torrent info url (This is found in each object of the list returned by isohuntApi.search())\n\n\n#### Return value\n\nReturns a promise which is resolved when the magnet and torrent file urls are found.\n\nThis promise returns an object with *magnetUrl* and *torrentUrl* properties."},"npm":{"downloads":[{"from":"2022-07-08T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":0},{"from":"2022-07-02T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":1},{"from":"2022-06-09T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":14},{"from":"2022-04-10T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":56},{"from":"2022-01-10T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":84},{"from":"2021-07-09T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":166}],"starsCount":0},"github":{"starsCount":0,"forksCount":0,"subscribersCount":2,"issues":{"count":0,"openCount":0,"distribution":{"3600":0,"10800":0,"32400":0,"97200":0,"291600":0,"874800":0,"2624400":0,"7873200":0,"23619600":0,"70858800":0,"212576400":0},"isDisabled":false},"contributors":[{"username":"same31","commitsCount":4}],"commits":[{"from":"2022-07-02T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":0},{"from":"2022-06-09T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":0},{"from":"2022-04-10T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":0},{"from":"2022-01-10T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":0},{"from":"2021-07-09T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":0}]},"source":{"files":{"readmeSize":3017,"testsSize":0}}},"evaluation":{"quality":{"carefulness":0.71,"tests":0,"health":1,"branding":0},"popularity":{"communityInterest":3,"downloadsCount":18.666666666666668,"downloadsAcceleration":0.005936073059360725,"dependentsCount":0},"maintenance":{"releasesFrequency":0.7591609589041095,"commitsFrequency":0,"openIssues":0.7,"issuesDistribution":0.7}},"score":{"final":0.4536815081389568,"detail":{"quality":0.5119267201168272,"popularity":0.027344843980095047,"maintenance":0.8300937048882155}}}