OK. Shutting down on its own requires communication between the UPS and the iMac, so you'll want an "intelligent" one.
An iMac wants a UPS with "PFC," that is Power Factor Correction, and it likes a pure sine wave also.
I do see a Cyberpower CyberPower CP1000PFCLCD on Amazon, for $135. I have two of the 1500 VA models, and both have performed well -- one for 3 years, or maybe 4, and the other for 3.
I don't know the APC line well, but they are a first-tier UPS manufacturer and have a lot of models.
Again, have a look at some of the UPS threads here on MacRumors. I remember seeing a couple that were very informative and useful.