This is a PHP client wrapper for the Anime News Network data API. If you are interested in contributing back to this project, feel free to read the Contributing documentation below.
NOTE: When using this client to retrieve data, you must still abide by the ANN API terms of service:
When using this API to display information on a public website, you must list Anime News Network as the source of the data and link to Anime News Network on every page that incorporates data from the API.
- PHP ^8.0
- Composer (to install this library)
<?php
$client = new sprak3000\AnimeNewsNetworkDataAPI\Client();
$anime = $client->getAnime(['anime' => '16148'])->toArray();
$manga = $client->getManga(['manga' => '4199'])->toArray();
Unfortunately, the ANN API does not return a non 200 HTTP response code for an invalid / not found ID. To check for an
error, look for a warning
key in the result array.
None at this time.
composer require sprak3000/AnimeNewsNetworkDataAPI
This project uses GitHubActions for build and continuous integration.
All documentation can be found in the doc folder.