The database is updated once every day.
Fetch up-to-date database:
let dbResponse = await fetch(`https://raw.githubusercontent.com/qt-kaneko/MALibria/db/mapped.json`);
let db = await dbResponse.json();
To get My Anime List/Shikimori ID from Anilibria ID:
let id = db.find(title => title[`anilibria_id`] === YOUR_ID)?.[`myanimelist_id`];
To get Anilibria ID from My Anime List/Shikimori ID:
let id = db.find(title => title[`myanimelist_id`] === YOUR_ID)?.[`anilibria_id`];