The extort ability resolves before the spell that caused it to trigger. The ability resolves even if that spell is countered.

Artwork
Loading artwork…
Basilica Screecher
Ravnica: Clue Edition · #105 · EN
Nonfoil—Foil—
Card rules
Flying
Extort (Whenever you cast a spell, you may pay
. If you do, each opponent loses 1 life and you gain that much life.)
1/2
A screech in the night is all it takes for Orzhov debtors to clutch at their coin purses.
Common · Illustrated by Christine Choi
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
The amount of life you gain from extort is based on the total amount of life lost, not necessarily the number of opponents you have. For example, if your opponent's life total can't change (perhaps because that player controls Platinum Emperion), you won't gain any life.
You may pay
a maximum of one time for each extort triggered ability. You decide whether to pay when the ability resolves.
The extort ability doesn't target any player.