getting data from API and can render a single point