doc_extracted
Demonstrates requesting 5 minutes of seismic waveform data for a specific station and channel
curl 'https://service.earthscope.org/fdsnws/dataselect/1/query?net=IU&sta=ANMO&loc=00&cha=BHZ&starttime=2024-01-15T00%3A00%3A00&endtime=2024-01-15T00%3A05%3A00'
import requests
resp = requests.get(
"https://service.earthscope.org/fdsnws/dataselect/1/query",
params={
'net': 'IU',
'sta': 'ANMO',
'loc': '00',
'cha': 'BHZ',
'starttime': '2024-01-15T00:00:00',
'endtime': '2024-01-15T00:05:00',
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("earthscope")
result = api.fetch("dataselect/1/query", net="IU", sta="ANMO", loc=00, cha="BHZ", starttime="2024-01-15T00:00:00", endtime="2024-01-15T00:05:00")
for item in result:
print(item)
const resp = await fetch("https://service.earthscope.org/fdsnws/dataselect/1/query?net=IU&sta=ANMO&loc=00&cha=BHZ&starttime=2024-01-15T00%3A00%3A00&endtime=2024-01-15T00%3A05%3A00");
const data = await resp.json();