Nexus 5X

If the phone is bootlooping, you can try a battery, but with this phone the NAND has probably popped off the board partly and applying pressure over the chip will normally get it booted long enough for data recovery. Methods such as heating up or freezing the motherboard and keeping it cool with an ice pack might also give enough time to boot into bootloader and recover the data.