The United States embassy in Turkey on Thursday warned against the risk of attacks against its citizens in the country after a rise in anti-American rhetoric.

Turkey has been hit by a slew of attacks over the last months claimed by jihadists and Kurdish militants that have left the country on edge.

In the latest strikes, 39 people were gunned down in an attack on New Year’s night claimed by Islamic State jihadists at an Istanbul nightclub.

Just three weeks earlier, 46 people were killed in a double suicide bombing claimed by Kurdish militants close to the stadium of the Besiktas football club.

Damaged police vehicles and cars are pictured on December 10, 2016 on the site where a car bomb exploded near the stadium of football club Besiktas in central Istanbul. (AFP PHOTO / OZAN KOSE)

Damaged police vehicles and cars are pictured on December 10, 2016 on the site where a car bomb exploded near the stadium of football club Besiktas in central Istanbul. (AFP PHOTO / OZAN KOSE)

The attacks prompted claims in the radical conservative press that the United States had a hand in the violence, although the allegations have been repeatedly and angrily denied by the embassy.

“An increase in anti-American rhetoric has the potential to inspire independent actors to carry out acts of violence against US citizens,” the embassy said in a travel warning.

It said new attacks could occur at major events, tourist sites, restaurants, nightclubs, shopping centres, places of worship, and transportation hubs.

An October order for family members of employees posted to the US Consulate in Istanbul to depart Turkey temporarily remains in place, it added.

Meanwhile, all US government travel to Istanbul is subject to State Department approval, it said.

This is based on intelligence “indicating extremist groups are continuing frequent and aggressive efforts to attack US citizens and foreign expatriates in areas of Istanbul where they reside or frequent,” it said.

Several Turkish officials and media outlets blamed the United States for the failed July 15 coup aimed at toppling President Recep Tayyip Erdogan, allegations ridiculed by Washington.

Turkish cleric Fethullah Gülen at his residence in Saylorsburg, Pennsylvania on July 18, 2016. (AFP/Thomas Urbain)

Turkish cleric Fethullah Gülen at his residence in Saylorsburg, Pennsylvania on July 18, 2016. (AFP/Thomas Urbain)

The alleged mastermind of the plot, the preacher Fethullah Gulen, lives in the United States but has denied any links to the putsch.

Washington has so far not yielded to persistent Turkish requests to extradite Gulen, increasing tensions in relations and raising the hackles of Erdogan’s supporters.

In another sign of the poor atmosphere, Erdogan on December 27 accused the United States of supporting “terror groups” in Syria, even including Islamic State jihadists.