Armed police took part in raids across Turkey in a terror crackdown (Lefteris Pitarakis/AP)

Anti-terrorism police in Turkey have detained more than 420 people over alleged links to the Islamic State group, the country's state-run agency said.

Sixty IS suspects, the vast majority of them foreigners, were taken into custody in the capital, Ankara, said the Anadolu Agency.

It says a total of 423 people were detained in simultaneous police operations that spanned several cities, including Istanbul and Gaziantep, near the border with Syria.

The largest operation was in the south-east province of Sanliurfa, where police took into custody more than 100 suspects from multiple addresses and found materials relating to Islamic State militants.

Turkey, which endured a failed coup attempt and dozens of bloody attacks linked to IS or Kurdish militants in 2016, has been stepping up its anti-terrorism efforts.

AP