<p>Okay so I got the data from
<a href="https://earthquake.usgs.gov" rel="noreferrer">https://earthquake.usgs.gov</a></p>

<p>Since the website only allows to get 20k records at a time I made a little python script that downloads data for each month.</p>

<pre><code>import os
import requests

for x in range(1900,2016):
    for y in range(1,13):
        url='https://earthquake.usgs.gov/fdsnws/event/1/query.csv?starttime='+str(x)+'-'+str(y)+'-31%2023:59:59&amp;endtime='+str(x)+'-'+ str(y+1) +'-31%2023:59:59&amp;minmagnitude=2.5&amp;orderby=time'
        print(url)
        response = requests.get(url)
        with open(os.path.join("C:/Users/kristjag/OneDrive/delo/potresi", "potresi_"+str(x)+"_"+str(y)+".csv"), 'wb') as f:
            f.write(response.content)
</code></pre>

<p>Code above take some time to finish but when completed you get earthquake data for every month from 1900-2016 </p>

CC BY-SA 4.0
2018-06-07T14:27:01.480Z
2018-06-07T14:27:01.480Z
Kristjan
<p>Where can I find a list of all earthquakes that happened on Earth since 1900?<br />I need time, longitude/latitude, and power -- preferably in .csv format.</p>

CC BY-SA 4.0
2018-06-07T12:13:53.580Z
Welcome to EarthScience.SE. Where did you look for these data already on yourself? If you get the information here, you might try [OpenData.SE](https://opendata.stackexchange.com/).
daniel.heydebreck
CC BY-SA 4.0
2018-06-07T14:25:09.780Z
@Universal_learner thanks, I used exactly that website. The only problem I had was that I could get 20000 records at a time only. So I made a little script to get all the relevant data. I'll answer my own question how I did it.
Kristjan
CC BY-SA 4.0
2018-06-07T14:28:05.177Z
I answered myself with a python script so someone else could use it in future... I hope I'm not breaking any rules answering myself.
Kristjan
<earthquakes>
Catalog of all significant earthquakes since 1900?
Kristjan
# Catalog of all significant earthquakes since 1900?

(Asked by: username_0 on 2018-06-07)

Where can I find a list of all earthquakes that happened on Earth since 1900?  
I need time, longitude/latitude, and power -- preferably in .csv format.

**Tags:** earthquakes

> **Comments:**
> **username_1**: Welcome to EarthScience.SE. Where did you look for these data already on yourself? If you get the information here, you might try [OpenData.SE](https://opendata.stackexchange.com/).  
> **username_0**: @Universal_learner thanks, I used exactly that website. The only problem I had was that I could get 20000 records at a time only. So I made a little script to get all the relevant data. I'll answer my own question how I did it.  
> **username_0**: I answered myself with a python script so someone else could use it in future... I hope I'm not breaking any rules answering myself.  

---

## 1 answers

### Answer by username_0 on 2018-06-07. Score: 6 | Accepted answer

Okay so I got the data from
<https://earthquake.usgs.gov>

Since the website only allows to get 20k records at a time I made a little python script that downloads data for each month.

```
import os
import requests

for x in range(1900,2016):
    for y in range(1,13):
        url='https://earthquake.usgs.gov/fdsnws/event/1/query.csv?starttime='+str(x)+'-'+str(y)+'-31%2023:59:59&endtime='+str(x)+'-'+ str(y+1) +'-31%2023:59:59&minmagnitude=2.5&orderby=time'
        print(url)
        response = requests.get(url)
        with open(os.path.join("C:/Users/kristjag/OneDrive/delo/potresi", "potresi_"+str(x)+"_"+str(y)+".csv"), 'wb') as f:
            f.write(response.content)

```

Code above take some time to finish but when completed you get earthquake data for every month from 1900-2016


---

