Skip to main content

A local MyAnimeList API

Project description

Python MAL API

Here is an unofficial MyAnimeList API in response to the MyAnimeList's API shutdown.

Hold on, this API is in early stages and is unstable.

Currently, the API does not feature any kind of rate limiting. Use the API in moderation and rate limit your queries (0.5 seconds is sufficient to my knowledge). This API uses cached webpage data to increase efficiency and save bandwidth. If you want to refresh your data, you must create a new object (a refresh option will most likely come in the future; no plans for dynamically updating info).

Notice

I am in the process of rewriting the whole API, some functionality is currently missing. More features are to come.

If there are any features that you wish to be supported, please raise an issue. Any feedback is also appreciated.

Usage

To install the required packages: pip install requirements.txt

To import the library: from mal import *

API Documentation

To call the API, you need to create an object.

from mal import Anime

anime = Anime(1) # Cowboy Bebop

print(anime.score) # prints 8.82

anime.reload() # reload object

print(anime.score) # prints 8.81

List of properties currently supported:

Anime

Anime.mal_id
Anime.title
Anime.title_english
Anime.title_japanese
Anime.title_synonyms
Anime.url
Anime.image_url
Anime.type
Anime.episodes
Anime.status
Anime.aired
Anime.premiered
Anime.broadcast
Anime.producers
Anime.licensors
Anime.studios
Anime.source
Anime.genres
Anime.duration
Anime.rating
Anime.score
Anime.scored_by
Anime.rank
Anime.popularity
Anime.members
Anime.favorites
Anime.synopsis
Anime.background
Anime.related_anime
Anime.opening_themes
Anime.ending_themes
Manga

Manga.mal_id
Manga.title
Manga.title_english
Manga.title_japanese
Manga.title_synonyms
Manga.url
Manga.image_url
Manga.type
Manga.status
Manga.genres
Manga.score
Manga.scored_by
Manga.rank
Manga.popularity
Manga.members
Manga.favorites
Manga.synopsis
Manga.background
Manga.favorites
Manga.synopsis
Manga.background
Manga.volumes
Manga.chapters
Manga.published
Manga.authors
Manga.related_manga

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mal-api-0.0.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

mal_api-0.0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file mal-api-0.0.1.tar.gz.

File metadata

  • Download URL: mal-api-0.0.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for mal-api-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1388d5398529f1ca08da2bc33bc18feed1de48efad0175c5f9c1042c5987d8b9
MD5 5240a06d010f71db369b1e35e880b6d2
BLAKE2b-256 a7ec1ba50426b971f8bf77837529571f52d53b2374f9dd7d50f22c9853e10d27

See more details on using hashes here.

File details

Details for the file mal_api-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: mal_api-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for mal_api-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a86f832fb63cef765ee52bc6192d23a55202a36b539ad57dd7646052ca8a5f92
MD5 35f1842cb59831f2188f49879983814c
BLAKE2b-256 9a72107fa6fa8a1487a4efe3e0cb8028c59c26b9e6ed0bbc1286eeeb3fece3f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page