Parsing the api to something usable