get level information from api data