Parse responses from api, return ids or entity objects