# Programmatically retrieve Accession List from NCBI

I would like to programmatically retrieve the file "Accession List" from an NCBI page.

I'm running firefox, so I'm clicking the file and clicking Ctrl + Shift + E to try and figure out what the file endpoint is. But I can't seem to figure it out (I haven't done this much, I just remember doing it once for a previous project).

When I do this, I see two links popping up on my screen, as shown below:

I see that the first one has a field (I'm talking about the panel on the right) called "acc", which varies from one data dump to the next, so I'm presuming this is the link I need to use to retrieve the file (though I'm not sure), and just change the "acc" field depending on the data I want. Assuming this is right, I'm not sure how to go from here. I've included the text on the right below for clarity.

GET

esearch -db sra -query 'PRJNA491191[bioproject]' | efetch -format runinfo