Programmatically retrieve Accession List from NCBI I would like to programmatically retrieve the file &quot;Accession List&quot; 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 &quot;acc&quot;, 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 &quot;acc&quot; 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
    https://www.google-analytics.com/collect?v=1&amp;_v=j83&amp;a=1402353855&amp;t=event&amp;_s=4&amp;dl=https://www.ncbi.nlm.nih.gov/Traces/study/?acc=PRJNA491191&amp;o=acc_s%3Aa&amp;ul=en-us&amp;de=UTF-8&amp;dt=Run Selector :: NCBI&amp;sd=24-bit&amp;sr=1280x720&amp;vp=1232x601&amp;je=0&amp;ec=Link Click&amp;ea=Metadata  &amp;el=NONE&amp;_u=SACAAEAB~&amp;jid=&amp;gjid=&amp;cid=1350895533.1590937485&amp;tid=UA-68648221-3&amp;_gid=391407234.1594002343&amp;cd1=run_selector&amp;cd2=sra&amp;cd3=&amp;cd5=NO&amp;cd6=run_selector:sra:&amp;cd8=&amp;cd9=&amp;cd10=&amp;cd11=&amp;cd12=&amp;cd13=&amp;cd14=&amp;cd15=&amp;cd16=&amp;cg1=run_selector&amp;cg2=sra&amp;cg3=&amp;cg4=run_selector:sra:&amp;z=508671370
Which accessions are you trying to get to? In the page you refer to, there is an option to download the list of accessions - one SRR run accession per line - by clicking the 'Accessions' button or the entire table by clicking the 'Metadata' button as highlighted in the screenshot below:

You can get the same data from the command line using the Entrez Direct. The command for that would be something like:
esearch -db sra -query 'PRJNA491191[bioproject]' | efetch -format runinfo

to download the table in CSV format.