localStorage and API Call and API parsing