jikan-rest/README.MD

86 lines
4.1 KiB
Plaintext
Raw Normal View History

2018-12-17 11:53:13 +05:00
![Jikan](http://i.imgur.com/ctoJ3Jp.png)
# Jikan - Unofficial MyAnimeList.net REST API
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/jikan-me/jikan-rest.svg)](http://isitmaintained.com/project/jikan-me/jikan-rest "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/jikan-me/jikan-rest.svg)](http://isitmaintained.com/project/jikan-me/jikan-rest "Percentage of issues still open") [![stable](https://img.shields.io/badge/PHP-^%207.1-blue.svg?style=flat)]() [![Discord Server](https://img.shields.io/discord/460491088004907029.svg?style=flat&logo=discord)](https://discord.gg/4q8E4Gg)
2018-04-21 13:28:44 +05:00
2018-12-17 11:53:13 +05:00
Jikan is a REST API for [MyAnimeList.net](https://myanimelist.net). It scrapes the website to satisfy the need for an API - which MyAnimeList lacks.
2018-04-21 13:28:44 +05:00
2018-12-17 11:53:13 +05:00
The raison d'être of Jikan is to assist developers easily get the data they need for their apps and projects without having to depend on the lackluster official API, unstable APIs, or sidetracking their projects to develop parsers.
2018-04-21 13:28:44 +05:00
2018-12-17 11:53:13 +05:00
The word _Jikan_ literally translates to _Time_ in Japanese (**時間**). And that's what this API saves you of. ;)
2018-04-21 13:28:44 +05:00
2018-12-17 11:53:13 +05:00
**Notice**: Jikan does not support authenticated requests. You can not update your lists.
## Getting Started
### Requirements
- PHP 7.1+
2019-03-03 14:48:08 -08:00
- [Composer](https://getcomposer.org/download/)
2018-12-17 11:53:13 +05:00
- [Redis](https://redis.io)
### Installation
2019-05-08 01:08:25 +05:00
#### 🐳 Docker
2019-05-08 01:11:40 +05:00
- [JikanREST Docker](https://github.com/fethica/jikan-rest-docker) by Fethi El Hassasna
2019-05-08 01:08:25 +05:00
#### Linux
This is specifically for Ubuntu, but other distributions should work similarly.
1. Install requirements:
- Add PHP related packages: `sudo add-apt-repository -y ppa:ondrej/php`
- If `add-apt-repository` is not installed, you can install it by doing `sudo apt install python-software-properties` or `sudo apt install software-properties-common`
- `sudo apt update && sudo apt upgrade`
- Install requirements: `sudo apt install curl git php redis-server unzip`
- Verify that PHP 7.1+ is installed: `php -v`
- Install the corresponding `php-xml` and `php-mbstring` packages for your version, e.g:
- PHP 7.1: `sudo apt install php7.1-xml php7.1-mbstring`
- PHP 7.3: `sudo apt install php7.3-xml php7.3-mbstring`
- Install composer: `curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer`
2. Start the redis server: `sudo service redis start`
#### Mac
1. Install [brew](https://brew.sh/)
2. Install requirements: `brew install php composer redis`
3. Start the redis server: `brew services start redis`
### Run
2018-12-17 11:53:13 +05:00
1. `git clone https://github.com/jikan-me/jikan-rest.git`
2. `cd jikan-rest`
3. Rename `.env.dist` to `.env`: `mv .env.dist .env`
4. `composer update`
5. `composer install`
To start the server, create a virtual host and point it to `/public`:
`php -S localhost:8000 -t public`
Jikan is now hosted on `http://localhost:8000/v3/`
2018-12-17 11:53:13 +05:00
## Information
If you don't want to host your instance, there's a public API available.
- **[REST DOCUMENTATION](https://jikan.docs.apiary.io)**
- **[Apps/Projects using JikanREST](https://jikan.moe/showcase)**
2019-05-08 01:11:40 +05:00
### Wrappers
2018-12-17 11:53:13 +05:00
- **[.NET]** [Jikan.net](https://github.com/Ervie/jikan.net) by Ervie
- **[Python]** [JikanPy](https://github.com/AWConant/jikanpy) by Andrew Conant & Abhinav Kasamsetty
- **[Ruby]** [Jikan.rb](https://github.com/Zerocchi/jikan.rb) by Zerocchi
- **[JavaScript]** [JikanJS](https://github.com/zuritor/jikanjs) by Zuritor
- **[Java]** [Jikan4java](https://github.com/Doomsdayrs/Jikan4java) by Doomsdayrs
2019-02-14 09:34:30 +01:00
- **[PHP]** [jikan-php](https://github.com/janvernieuwe/jikan-jikanPHP) by Jan Vernieuwe
2019-02-16 03:14:00 -08:00
- **[Node.js]** [jikan-node](https://github.com/xy137/jikan-node) by xy137
2019-05-08 01:11:40 +05:00
- **[Dart]** [jikan-dart](https://github.com/charafau/jikan-dart) by Rafal Wachol
- **[TypeScript]** [jikants](https://github.com/Julien-Broyard/jikants) by Julien Broyard
2018-12-17 11:53:13 +05:00
2019-05-08 01:11:40 +05:00
[Add your wrapper here](https://github.com/jikan-me/jikan/edit/master/readme.md)
2018-12-17 11:53:13 +05:00
## DISCLAIMER
- Jikan is not affiliated with MyAnimeList.net
- You are responsible for the usage of this API. Please be respectful towards MyAnimeList's [Terms Of Service](https://myanimelist.net/about/terms_of_use)