Question: are onion and garlic spices?
Answer: Garlic and shallots are actually part of the onion family and, as such, vegetables; at least in the US, you'd find flaked, powdered, and other forms of all three in little jars in the "herbs and spices" section of a supermarket (in addition to their being available fresh in the produce section).