Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        




NPM info


# 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.