UsgsClient is a .NET Standard 1.1
library for querying the USGS Earthquake APIs.
Install the UsgsClient from Nuget by executing the following command.
Install-Package UsgsClient
Retrieving all significant earthquakes for the past week.
var svc = Usgs
.Quakes
.Feed();
var features = await svc
.Summary(
Magnitude.Significant,
Timeframe.Week);
For documentation on the USGS Earthquake GeoJSON Summary Feed read the associated documentation at https://earthquake.usgs.gov
Retrieving detail information for earthquake id ak16139649
.
var svc = Usgs
.Quakes
.Feed();
var quakeId = "us20009jd6";
var quake = await svc.Detail(quakeId);
For documentation on the USGS Earthquake GeoJSON Detail Feed read the associated documentation at https://earthquake.usgs.gov
- Introduce support for USGS Earthquake Catalog.
The software is not associated or maintained by USGS. The use of all USGS APIs should adhere to the rules defined in USGS's own Feed Lifecycle Policy .
UsgsClient is licensed under MIT. Refer to LICENSE for more information.