legendaryapi wrapper