What’s the minimum number of people needed to survive an apocalypse?

What’s the minimum number of people needed to survive an apocalypse?

SEMrush
There are many ways the world could end, from all-out nuclear war to a giant asteroid strike. How many people would need to survive such an apocalypse for humans to avoid extinction?
[automaticbacklinks]