Categorygithub.com/rl404/mal-api
module
1.0.21
Repository: https://github.com/rl404/mal-api.git
Documentation: pkg.go.dev

# README

mal-api

REST API to scrap and parse MyAnimeList to get information.

Powered by my go-malscraper.

Features

  • Get anime information (details, characters, episodes, pictures, etc)
  • Get manga information (details, characters, pictures, recommendations, etc)
  • Get character information (details, pictures, etc)
  • Get people information (details, pictures, etc)
  • Get list of all anime/manga's genres
  • Get list of all anime/manga's producers/studios/licensors/magazines/serializations
  • Get anime/manga's recommendations
  • Get anime/manga's reviews
  • Search anime, manga, character and people
  • Get seasonal anime list
  • Get anime, manga, character and people top list
  • Get user information (profile, friends, histories, recommendations, reviews, etc)
  • Get news list and details
  • Get featured article list and details
  • Get club list and details
  • Caching (in-memory, redis, or memcache)
  • Logging (elasticsearch)
  • Swagger
  • Docker

More will be coming soon...

Installation

  1. Clone the repo.
git clone github.com/rl404/mal-api
  1. Update the .env.
  2. Build and run
# With Go
make

# With Docker
make docker

# To stop docker container
make docker-stop

Or just pull docker image.

docker pull rl404/mal-api:latest

Config

All env are optional. Use what you have and what you want.

EnvDefaultDescription
MAL_WEB_PORT8005HTTP port
MAL_WEB_READ_TIMEOUT5HTTP read timeout (in seconds)
MAL_WEB_WRITE_TIMEOUT5HTTP write timeout (in seconds)
MAL_WEB_GRACEFUL_TIMEOUT10HTTP server shutdown timeout (in seconds)
MAL_CLEAN_IMAGEtrueCleaning MyAnimelist image URL
MAL_CLEAN_VIDEOtrueCleaning MyAnimelist image URL
MAL_CACHE_DIALECTinmemoryCache type (nocache, inmemory, redis, memcache)
MAL_CACHE_ADDRESSCache address
MAL_CACHE_PASSWORDCache password
MAL_CACHE_TIME86400Cache time (in seconds)
MAL_LOG_LEVEL4Log all
MAL_LOG_COLORtrueLog color
MAL_ES_ADDRESSElasticsearch address
MAL_ES_USERElasticsearch user
MAL_ES_PASSWORDElasticsearch password

Log Level

LevelTraceDebugInfoWarnErrorFatal
0:x::x::x::x::x::x:
1:x::x::x::x::heavy_check_mark::heavy_check_mark:
2:x::x::heavy_check_mark::x::heavy_check_mark::heavy_check_mark:
3:x::heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark:
4:heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark:

Disclamer

mal-api is meant for educational purpose and personal usage only. Although there is no limit in using the API, do remember that every scraper method is accessing MyAnimeList page so use it responsibly according to MyAnimeList's Terms Of Service.

All data (including anime, manga, people, etc) belong to their respective copyrights owners. mal-api does not have any affiliation with content providers.

License

MIT License

Copyright (c) 2021 Axel

# Packages

No description provided by the author
No description provided by the author