{"id":17823338,"url":"https://github.com/purarue/mal-id-cache","last_synced_at":"2025-03-18T16:30:26.645Z","repository":{"id":37330551,"uuid":"198132537","full_name":"purarue/mal-id-cache","owner":"purarue","description":"An cache of MAL database IDs updated whenever something is added to the database","archived":false,"fork":false,"pushed_at":"2025-02-23T06:34:22.000Z","size":18240,"stargazers_count":39,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-16T21:48:21.976Z","etag":null,"topics":["anime","anime-databases","caching","mal","myanimelist"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purarue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-22T02:32:16.000Z","updated_at":"2025-02-28T14:22:54.000Z","dependencies_parsed_at":"2023-10-12T06:33:17.096Z","dependency_job_id":"f768bc96-f458-4e1d-96a2-9eb16794ff96","html_url":"https://github.com/purarue/mal-id-cache","commit_stats":null,"previous_names":["purarue/mal-id-cache","seanbreckenridge/mal-id-cache"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fmal-id-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fmal-id-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fmal-id-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fmal-id-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purarue","download_url":"https://codeload.github.com/purarue/mal-id-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244259786,"owners_count":20424615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anime","anime-databases","caching","mal","myanimelist"],"created_at":"2024-10-27T17:57:35.330Z","updated_at":"2025-03-18T16:30:26.307Z","avatar_url":"https://github.com/purarue.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mal-id-cache\n\nAnime and manga cache information is back filled from [`Hiyori-API/checker_mal`](https://github.com/Hiyori-API/checker_mal). I plan to keep this updated for the foreseeable future, though [`HiyoriDB`](https://github.com/Hiyori-API/HiyoriDB) will eventually be a nicer and more complete replacement.\n\nThis is a cache of anime and manga ids on [MAL](https://myanimelist.net)\n\nSince April 2nd 2020, MAL updated how characters/persons on their site are laid out making the People/Characters much more difficult to check for updates. The `people.json` and `character.json` files will remain unchanged, they are up to date as of March 31st, 2020.\n\nIf you want a (somewhat) random character or person, you can request a random anime/manga using the cache files here, then pick a random character/staff member from that entry.\n\n[cache](./cache) includes anime, and manga IDs\n\nThe JSON files for anime/manga are structured like:\n\n```json\n{\n  \"sfw\": [1, 5, \"...\"],\n  \"nsfw\": [188, 203, \"...\"]\n}\n```\n\n### Raison d'être\n\nThe reason this exists is because there's currently no easy way to get a list of all the approved entries on MAL.\n\nWhenever an entry requested to be added (by a user), it gets an ID and is listed \"on the website\" - unlisted; at this point no one can add it to their list.\n\nIf a moderator approves the entry, it keeps the same ID and becomes an entry that people can view publicly.\n\nIf its denied, the ID disappears and becomes a 404, leaving a 'gap' in the IDs for MAL. At the time of writing this, the most recently approved anime ID is 40134, but there are less than 17000 anime entries on MAL.\n\nThere have been a few cases where IDs are re-used for others, but that is not the common case.\n\nThis uses the [Just Added](https://myanimelist.net/anime.php?o=9\u0026c%5B0%5D=a\u0026c%5B1%5D=d\u0026cv=2\u0026w=1) page on MAL to find new entries, but all that page is is a search on the entire database reverse sorted by IDs. New entries may appear on the 2nd, 3rd, or even 20th page, if a moderator took a long time to get around to it.\n\nThe most obvious application for this cache is to use the cache to choose an entry at random.\n\nThis will be updated whenever a new entry is added.\n\nYou can either clone this repo to your system and set up a script that `git pull`s periodically, or download the raw JSON files directly from [`cache`](./cache) (though that means you have no way of knowing when the file is updated)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Fmal-id-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurarue%2Fmal-id-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Fmal-id-cache/lists"}