If you search "tablebase chess" on google, this link should be the first result:
Once there, scroll down to the table with the columns "Host, "Info", "List". These should give you access to all the possible endgames with seven or fewer pieces. Note that the files for each endgame aren't human readable though. I'm not sure if you program, but if you do there should be ways to work with the files. E.g., see:
for how Stockfish accesses the tablebases in C++. You could start at the probe_dtz function.
Note that the combined file sizes of all the tablebases is a number of terabytes, but if you're only interested in 5 or fewer pieces, this should be exponentially lower (easily stored on a modern computer I'd imagine).