I would like to download a number of SARS-CoV-2 fastas from NCBI/Genbank using a web endpoint. I looked on their website but it's confusing.
I have the accession numbers, but can't figure out how to use the NCBI/Genbank Entrez API.
This is how I would do it using cov-spectrum: https://lapis.cov-spectrum.org/open/v1/sample/fasta?genbankAccession=MZ039713,MZ039682,OV522182
Is there something similar for NCBI/Genbank?
There must be a way, I just can't figure it out. The whole entrez thing is overwhelming to me, all I want is a simple API, like covSpectrum offers, for example. I scanned this but didn't help: https://www.ncbi.nlm.nih.gov/sars-cov-2/
E.g. how could I download all these SARS-CoV-2 nucleotide sequences with accession numbers:
OV522182 using a URL?
Some command line tools are advertised, but I don't want to have to use a CLI tool. Just a simple URL, does that not exist? CLI tools: https://www.ncbi.nlm.nih.gov/datasets/docs/v1/quickstarts/command-line-tools/
I also don't want to do any clicking through a web interface, just a URL so that other web apps can download it behind the scenes.