The United States Geological Survey (USGS) provides continuously-updated datasets with earthquake data (location, time, magnitude, etc.) during recent time periods:
https://earthquake.usgs.gov/earthquakes/feed/v1.0/csv.php
First, I downloaded a dataset providing all earthquakes with magnitudes of at least 2.5 that have occurred globally over the past 30 days:
URL <- "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_month.csv"
global.quake.data <- read.table(URL, sep = ",", header = TRUE)
head(global.quake.data)
## time latitude longitude depth mag magType nst gap
## 1 2023-05-01T07:59:37.624Z 25.93560 128.54660 10.000 5.40 mww 89 62
## 2 2023-05-01T07:54:05.629Z -9.42880 148.63740 10.000 4.90 mb 47 117
## 3 2023-05-01T05:28:23.530Z 19.40800 -155.26183 0.170 2.56 md 21 85
## 4 2023-05-01T05:18:12.647Z -6.12820 -81.38310 18.864 4.90 mb 58 135
## 5 2023-05-01T04:28:48.050Z 18.09483 -67.01317 21.210 3.02 md 22 61
## 6 2023-05-01T04:15:33.120Z 18.82933 -67.28850 52.980 3.00 md 9 282
## dmin rms net id updated
## 1 0.93000 0.43 us us7000jxba 2023-05-01T08:45:23.137Z
## 2 1.45800 0.64 us us7000jxb8 2023-05-01T08:40:09.040Z
## 3 NA 0.09 hv hv73385282 2023-05-01T05:47:18.730Z
## 4 2.87900 0.98 us us7000jxax 2023-05-01T05:32:27.040Z
## 5 0.01665 0.15 pr pr71407408 2023-05-01T05:07:07.350Z
## 6 0.47800 0.18 pr pr71407403 2023-05-01T05:58:07.220Z
## place type horizontalError
## 1 80 km ESE of Katsuren-haebaru, Japan earthquake 4.98
## 2 eastern New Guinea region, Papua New Guinea earthquake 8.10
## 3 Hawaii region, Hawaii earthquake 0.15
## 4 88 km SW of Sechura, Peru earthquake 8.35
## 5 3 km ENE of San Germán, Puerto Rico earthquake 0.34
## 6 Mona Passage earthquake 1.86
## depthError magError magNst status locationSource magSource
## 1 1.775 0.08600000 13 reviewed us us
## 2 1.892 0.06500000 74 reviewed us us
## 3 0.200 0.08025229 4 reviewed hv hv
## 4 5.181 0.04200000 181 reviewed us us
## 5 0.570 0.01793368 5 reviewed pr pr
## 6 2.650 0.19080496 5 reviewed pr pr