<p>barrycarter provided the answer:</p>

<p>Using curl, I got 61240 lines total, but that includes some headers, so I think 61237 is correct and your browser may just be timing out. In particular, the last file on my list is "GaiaSource_999922404314639104_1000172126596665472.csv.gz", which seems correct, since the first number increases with each file and seems to finally "wrap around" with the last file. – barrycarter Apr 29 at 3:54</p>

CC BY-SA 4.0
2018-05-03T11:13:42.300Z
2018-05-03T11:13:42.300Z
Ags1
<p>There are 61,234 data files in the directory. There are three additional (non-data) files:</p>

<pre><code>MD5SUM.txt     
_citation.txt  
_disclaimer.txt
</code></pre>

<p>If you include those, the total number is 61,237.</p>

CC BY-SA 4.0
2019-12-01T13:37:36.377Z
Proofs: `curl -s 'http://cdn.gea.esac.esa.int/Gaia/gdr2/gaia_source/csv/MD5SUM.txt' | grep 'GaiaSource_' | wc -l` for the terminal or `[...document.querySelectorAll("a")].filter((el) => /GaiaSource/.test(el.href)).length` for the browser console (F12) in a modern browser.
try-catch-finally
CC BY-SA 4.0
2019-11-26T11:37:38.623Z
2019-11-26T11:37:38.623Z
Demitri
<p>I am using this index page to download GDR2 data files.</p>

<p><a href="http://cdn.gea.esac.esa.int/Gaia/gdr2/gaia_source/csv/" rel="nofollow noreferrer">http://cdn.gea.esac.esa.int/Gaia/gdr2/gaia_source/csv/</a></p>

<p>But it keeps giving a different number of links. Sometimes it shows 16,000 files, sometimes 31,000 and the max I have seen is 61,237. What is the correct number I should download? GAIA GDR2 documentation does not list the total number of files available.</p>

<p>Interestingly, if the index lists less than 60k files, it still has the closing /html tag so it would appear I have a complete index file, but the contents are not complete.</p>

CC BY-SA 3.0
2018-04-30T10:04:52.693Z
Thanks, I did more tests and 61237 seems to be the correct number. Add this as an answer and i will accept it.
Ags1
<gaia>
How many GAIA Data Release 2 files are there?
Ags1
# How many GAIA Data Release 2 files are there?

(Asked by: username_0 on 2018-04-28)

I am using this index page to download GDR2 data files.

<http://cdn.gea.esac.esa.int/Gaia/gdr2/gaia_source/csv/>

But it keeps giving a different number of links. Sometimes it shows 16,000 files, sometimes 31,000 and the max I have seen is 61,237. What is the correct number I should download? GAIA GDR2 documentation does not list the total number of files available.

Interestingly, if the index lists less than 60k files, it still has the closing /html tag so it would appear I have a complete index file, but the contents are not complete.

**Tags:** gaia

> **Comments:**
> **username_0**: Thanks, I did more tests and 61237 seems to be the correct number. Add this as an answer and i will accept it.  

---

## 2 answers

### Answer by username_0 on 2018-05-03. Score: 0 | Accepted answer

barrycarter provided the answer:

Using curl, I got 61240 lines total, but that includes some headers, so I think 61237 is correct and your browser may just be timing out. In particular, the last file on my list is "GaiaSource\_999922404314639104\_1000172126596665472.csv.gz", which seems correct, since the first number increases with each file and seems to finally "wrap around" with the last file. – barrycarter Apr 29 at 3:54


---

### Answer by username_1 on 2019-11-26. Score: 4

There are 61,234 data files in the directory. There are three additional (non-data) files:
MD5SUM.txt     
_citation.txt  
_disclaimer.txt

If you include those, the total number is 61,237.

> **Comments:**
> **username_2**: Proofs: `curl -s 'http://cdn.gea.esac.esa.int/Gaia/gdr2/gaia_source/csv/MD5SUM.txt' | grep 'GaiaSource_' | wc -l` for the terminal or `[...document.querySelectorAll("a")].filter((el) => /GaiaSource/.test(el.href)).length` for the browser console (F12) in a modern browser.  

---

