An API for https://myanimelist.net for searching animes and mangas up to date! For additional documentation, visit: https://myanimelist.net/modules.php?go=api
Add this line to your application's Gemfile:
gem 'myanimelist', '~> 0.0.6'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install myanimelist
MyAnimeList API requires authentication from the actual site, so you need to sign up first here
After signing up and verifying your email, you need to assign the username and password on your respective myanimelist API,
here's what you need to do,
If you are using Rails: setup config/initializers/myanimelist.rb
:
MyAnimeList.configure do |config|
config.username = "username"
config.password = "password"
end
If you are not using rails make sure to set this up before you can start searching.
#####For Anime:
MyAnimeList.search_anime("Anime name here.")
####For Manga:
MyAnimeList.search_manga("Manga name here.")
Simple isn't it?
##Example
MyAnimeList.search_anime('Fairy Tail')
#will result to the followinghash
=> [{"id"=>"6702",
"title"=>"Fairy Tail",
"english"=>nil,
"synonyms"=>nil,
"episodes"=>"175",
"score"=>"8.57",
"type"=>"TV",
"status"=>"Finished Airing",
"start_date"=>"2009-10-12",
"end_date"=>"2013-03-30",
"synopsis"=>
"Set in an imaginary world, the Earth Land, there exists a Mage Guild called Fairy Tail...",
"image"=>"https://cdn.myanimelist.net/images/anime/5/18179.jpg"}
}]
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
MyAnimeList for the API.
myanimelist © 2013+, Harvey Ico. Released under the MIT License.
Authored and maintained by Harvey Ico with help from contributors (list).