Nyaa API is an Unofficial Nyaa.si API. It just scrapes the website to satisfy the need for an API.
The API is closed source for now. I might make it open source in the near future. Documentation.
The API is available at: https://nyaaapi.onrender.com/
Search
- Nyaa Endpoint:
https://nyaaapi.onrender.com/nyaa - Sukebei Endpoint:
https://nyaaapi.onrender.com/sukebei
Examples
https://nyaaapi.onrender.com/nyaa?q={query}&category={torrent_category}https://nyaaapi.onrender.com/sukebei?q={query}&category={torrent_category}
Note: These endpoints also take optional query parameters. For more info, visit here.
User search
- Nyaa Endpoint:
https://nyaaapi.onrender.com/nyaa/user/{user_name} - Sukebei Endpoint:
https://nyaaapi.onrender.com/sukebei/user/{user_name}
Examples
https://nyaaapi.onrender.com/nyaa/user/{user_name}?q={query}&category={torrent_category}https://nyaaapi.onrender.com/sukebei/user/{user_name}?q={query}&category={torrent_category}
Note: These endpoints also take optional query parameters. For more info, visit here.
Search using torrent ID
- Nyaa Endpoint:
https://nyaaapi.onrender.com/nyaa/id/{torrent_id} - Sukebei Endpoint:
https://nyaaapi.onrender.com/sukebei/id/{torrent_id}
Examples
https://nyaaapi.onrender.com/nyaa/id/{torrent_id}https://nyaaapi.onrender.com/sukebei/id/{torrent_id}
Note: For more info, visit here.
-
Nyaa
Category Sub-Category animeamv,eng,non-eng,rawmangaeng,non-eng,rawaudiolossy,losslesspicturesphotos,graphicslive_actionpromo,eng,non-eng,rawsoftwareapplication,games -
Sukebei
Category Sub-Category artanime,doujinshi,games,manga,picturesrealphotos,videos -
Sorting
sort:id,leechers,seeders,size,downloads -
Ordering
order:asc,desc
Note: sort and order params are common for both endpoints.
I do not host any of the torrents fetched by the API. The API is just meant to scrape the website and return the results. I do not promote piracy, if you guys can afford legal methods, then use them and support the industry :).
Use it at your own risk!