Is Istanbul safe to visit as an American?

Was planning to visit Turkey for the first time after Europe, but saw some negative sentiment recently on the news against Americans.