events array built from api call