Anime ID Converter – A lightweight microservice for mapping MyAnimeList IDs to AniList IDs, fast and cache‑friendly.
In the anime developer community, one common challenge is dealing with different ID systems across platforms.
MyAnimeList (MAL) and AniList both provide rich APIs, but their identifiers are not interchangeable.
Ani ID Converter solves this problem with a simple, cache‑friendly microservice.
It focuses on one job only: mapping IDs quickly and reliably.
- 🔄 MAL → AniList ID conversion
- ⚡ Fast lookups using JSON cache
- 📂 Split cache files per 100k MAL IDs for scalability
- 🛠️ Developer‑friendly JSON response with
statusandsourcefields - 🧩 Fallback logic using Jikan API if AniList direct lookup fails
👉 Try the Demo Here
Enter a MAL or AniList ID, select the type, and see the JSON response instantly.
/convert?id=59062&type=MAL_ID
{
"mal_id": "59062",
"ani_id": "178025",
"title": "Gachiakuta",
"status": "success",
"source": "cache"
}/convert?id=161645&type=ANI_ID
Response:
{
"mal_id": null,
"ani_id": "161645",
"title": "Gachiakuta",
"status": "success",
"source": "direct"
}<?php
$apiUrl = "https://ancokplayer.win/api/convert?id=59062&type=MAL_ID";
$response = file_get_contents($apiUrl);
$data = json_decode($response, true);
print_r($data);
?>Anime ID Converter focuses on one job only: mapping IDs.
If developers need more details (titles, descriptions, genres), they can query AniList or Jikan directly.
This keeps the converter lightweight and efficient, making it ideal as a microservice in larger projects.
- Clone the repo:
git clone https://github.com/ancoknamhay/anime-id-converter.git
- Configure your server (PHP + JSON cache directory).
- Deploy and test using the demo page.
MIT License – free to use, modify, and share.
Anime ID Converter is a small but powerful tool for anime developers.
By bridging MAL and AniList IDs, it saves time, reduces API calls, and provides a clean foundation for building richer anime portals, apps, or integrations.