formatted the get api