Get the goods on (someone)

To find out true but often negative information about someone.

I finally got the goods on the man and I will talk to the police soon.