Skip to content
Vagab0ndPublic

About

.Net library that provides wrapper for AniDB API.

Topics

Resources

Code of conduct

Contributing

Stars

12 stars

Watchers

2 watching

Forks

Repository files navigation

GitHub Actions Workflow Status NuGet Version GitHub Repo stars GitHub Issues or Pull Requests GitHub License


Logo

AniDB.Api

.Net library that provides wrapper for AniDB API!

📥 Getting Started

Install

Download and install library from NuGet Gallery:

dotnet add package AniDb.Api

or install separately nugets for either Http or Udp API:

dotnet add package AniDb.Api.Http
dotnet add package AniDb.Api.Udp

Usage examples

GetAnime

IAniDbHttpApi api = new AniDbHttpApi();

// Pass AniDB anime id.
Response<Anime> anime = await this.api.GetAnime(17709);

GetUserHints

IAniDbHttpApi api = new AniDbHttpApi();

// Pass AniDB username and password.
// This is main password, not the API password specified in the profile.
// Library doesn't store this data.
Response<HintCollection> userHints = await this.api.GetUserHints("MyUsername", "MyPassword");

GetAnimeTitles

IAniDbAnimeTitles animeTitlesDump = new AniDbAnimeTitles();

// Note: Remember to cache results! 
// Best strategy would be to call this method only from wrapper class
// that implements pernament (not in memory) caching.
AnimeTitlesCollection animeTitles = await this.animeTitlesDump.GetAnimeTitles();

Caching

All users of this API should employ heavy local caching. In case of data dumps (Anime titles) requesting the same dataset multiple times on a single day can get you banned. The same goes for Http API request flooding. You should not request more than one page every two seconds.

🔧 Requirements

This library requires .NET 10.0 or later.

Note: Previous versions of this library supported .NET 8.0. If you need .NET 8.0 support, please use library version 0.7.3 or earlier.

☂️ Coverage

Coverage as of right now is:

📝 Roadmap

  • Implement UDP API.
  • Use ISO 639 language codes.
  • Add more comprehensive integration tests that check data mapping/validity

➕ Contributing

See Contributing doc.

⚖ License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0) - see the LICENSE file for more details.

About

.Net library that provides wrapper for AniDB API.

Topics

Resources

Code of conduct

Contributing

Stars

12 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages