Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onepiecehung/nyaa-api
https://github.com/onepiecehung/nyaa-api
get-torrent nyaa nyaa-magnet-links nyaa-new nyaa-pantsu nyaa-rss nyaa-sukebei r-18
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/onepiecehung/nyaa-api
- Owner: onepiecehung
- Created: 2019-10-25T03:06:55.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-18T15:32:46.000Z (10 months ago)
- Last Synced: 2024-10-31T17:52:39.285Z (2 months ago)
- Topics: get-torrent, nyaa, nyaa-magnet-links, nyaa-new, nyaa-pantsu, nyaa-rss, nyaa-sukebei, r-18
- Language: JavaScript
- Size: 24.4 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nyaa-api-v2 get new torrent from nyaa
### Support npm: https://discord.gg/TfG5hep
```npm
npm i nyaa-api-v2
yarn add nyaa-api-v2
``````javascript
const nyaa_api = require("nyaa-api-v2");nyaa_api.getNewTorrent().then(res => {
console.log(res); // array, type json
console.log(res[0]); // https://github.com/onepiecehung/nyaa-api/blob/master/data.json
console.log(res.length); // 75
});
```# API
## getNewTorrentR18(): get content R-18 from nyaa.