Resources for defining a market

I’m looking for resources that help define a marketplace. As background, I’m looking to start a business that sells software, and want to define the potential market both inside and outside the USA. What would be the resources to do so? I am familiar with Gartner Group but they can be a bit expensive, are there other resources I should consider?