NOIRLab has a tool called SPARCL that lets you find and retrieve spectra from SDSS DR16 and DESI EDR! There's a Jupyter notebook that shows you how to use it here: https://github.com/astro-datalab/notebooks-latest/blob/master/04_HowTos/SPARCL/How_to_use_SPARCL.ipynb
And this is the SPARCL...