What you have is a 1709 2 Grote (1/36 thaler) coin made for/in the German free state of Bremen in Northern Germany. As Germany is a federated republic made of 16 states of which several are referred to as city states like the Free Hanseatic City of Bremen (Bremen and Bremerhaven are both contained within). The name "Ioseph" refers most likely to Joseph I who was part of the Austrian Habsburg empire and was Holy Roman Emperor from 1705 until his death in 1711 and who unsuccessfully tried to claim the Spanish crown for the House of Habsburg.
Here is a pic of a front/back cleaner version
View attachment 1220434