I've done it a few different ways, but lately have used brokers to find items. Tried to use the rules in Xanathar's Guide for a while, but it left a bit to be desired. My players didn't love it.
So now I think Brokers will have a random list of items (Uncommon and Rare) they can source...