Blackmail is an act of coercion using the threat of revealing or publicizing either substantially true or false information about a person or people unless certain demands are met (from Wikipedia), Extortion is the more general concept of threatening someone to get them to give you something. They are often discussed together as a reference class.