Skip to content

Commit d5f85c7

Browse files
authored
Update listing-3.12.js
Limit search results to the API-defined max number (20k) so we avoid 400 error
1 parent 1eb9be1 commit d5f85c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

listing-3.12.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const importCsvFromRestApi = require('./toolkit/importCsvFromRestApi.js');
44

5-
const url = "https://earthquake.usgs.gov/fdsnws/event/1/query.csv?starttime=2017-01-01&endtime=2017-03-02";
5+
const url = "https://earthquake.usgs.gov/fdsnws/event/1/query.csv?starttime=2017-01-01&endtime=2017-03-02&limit=20000";
66
importCsvFromRestApi(url)
77
.then(data => {
88
console.log(data);

0 commit comments

Comments
 (0)