get the goods on
To find out true and, often, bad information about; discover what is wrong with; be able to prove the guilt of.
Tell the truth, Johnny. We know who your girl is because we've got the goods on you.
The police had the goods on the burglar before he came to trial.
Compare: HAVE SOMETHING ON.