The word "thriving" means to be in a state of vigorous growth or activity. It is often used to describe something that is healthy and successful. The word "endangered" means to be in danger of becoming extinct or rare. It is often used to describe species of animals or plants that are at risk of dying out.
Therefore, the word "thriving" is an antonym of the word "endangered" because they represent two opposite states of being.