Fetch profiles from the API