All glock mags of the same caliber and of the same or higher capacity of the Glock you own will work.
There is one exception to this rule. There is a single stack 45 that has slimmer mags.
For example, I have a G19 and 17. I buy only 17 rd G17 mags as they work in both guns. I also have a G30 and G21. I only buy G21 mags as they work in both.