There are so many so-called one hit artists that if you were to use an internet search engine to look for them, you will see there are one-hit wonders organized by decade, by musical genre, and more.
Since I am a huge rock music fan, I will answer this question with some of my favorite one-hit rock artists and the year they first appeared as hits: Steeler’s Wheel, Stuck in the Middle with You (1972), Norman Greenbaum, Spirit in the Sky (1969), Semisonic, Closing Time (1999), Blues Traveler, Hook (1994), and Ten Years After – I’d Love to Change the World (1971).