Some 300,000 people took part in a Pride march in Germany's northern city of Hamburg on Saturday, a week after a jihadist attack on a similar march in Berlin left one dead and several dozen injured.

Under clear skies, people of all ages waved rainbow flags as they marched on foot or rode in floats through the city, according to an AFP photographer.

"Solidarity among LGBT people, take a stand for a future without fear," read some of the placards.

Both police and march organisers put the turnout at around 300,000.

Police were out in force, one week after a man who had reportedly pledged allegiance to the Islamic State group in a video ploughed a minivan into a crowd near the parade in Berlin.