An American man who made threats against Taylor Swift on social media was detained ahead of her first concert in the German city of Gelsenkirchen and will be kept in custody until her shows there are over.

The suspected stalker, a 34-year-old whose name wasn’t released, had a ticket to Swift’s concert at Gelsenkirchen’s Veltins-Arena on Wednesday, police said in a statement on Thursday.

They said that, because an initial investigation couldn’t entirely rule out a risk, he was detained during entry checks to the event.

After Gelsenkirchen, Swift plans concerts in two other German cities, Hamburg and Munich. (AP)

Police said the man had made threats against Swift and her partner on social media.

They said he had been detained following tips from organisers of the event.

The American superstar has shows in Gelsenkirchen on Wednesday, Thursday and Friday as part of her Eras Tour.

A local court ordered the suspected stalker kept in detention until Saturday, police said.

They added that there was no danger at any point to Swift or to the audience. Wednesday evening’s concert, attended by about 60,000 people, went peacefully.

Spectators film with their smartphones during singer Taylor Swift’s concert in the Veltins Arena in Gelsenkirchen, Germany. (AP)

Ahead of the concerts, Gelsenkirchen put up signs temporarily renaming itself “Swiftkirchen” and honoured the singer on a “Walk of Fame” that commemorates local celebrities.

After Gelsenkirchen, Swift plans concerts in two other German cities, Hamburg and Munich.

You May Also Like

'Waste of money': Aussie influencers enlisted for anti-vaping campaign

The federal government has launched an anti-vaping campaign using popular online influencers…

Report: Iranian Parliament Votes to Close Strait of Hormuz

The Iranian parliament has reportedly voted to close the Strait of…

Homegrown rock legends AC/DC to tour Australia

Homegrown rock legends AC/DC will bring their tour to Australia later this…

Armed intruders allegedly assault man before burning his home to the ground

Armed intruders allegedly stormed a home in regional Victoria and assaulted a…