Where to Get an Windows 10 Operating System

Hi guys

I've just bought my first gaming PC and am waiting on the parts to arrive. Obviously I'm not going to pay $339 for windows 10 pro from the Microsoft website and I see windows keys on eBay and websites like g2deal.com for about $10-20. Has anyone used websites like this or have any advice on the cheapest way to get an OS?