Core rule
Sneak Attack
Sneak Attack adds damage to qualifying Finesse or ranged weapon attacks.
Ordinary requirements include Advantage or an eligible nearby ally without Disadvantage. Attacking from hiding is not the only way to qualify.
Check the use limit and target requirements. It does not apply again to every Extra Attack, and not every melee weapon qualifies.