usgs-earthquake-api 0.1.0

A Rust client library for querying the USGS Earthquake API. Provides request validation, error handling, and data models for earthquake events.
Documentation

usgs-earthquake-api

Crates.io Docs.rs

A Rust client library for querying the USGS Earthquake API.
It provides request validation, error handling, and data models for earthquake events.
You can filter by time, magnitude, alert level, ordering, and even by country boundaries.


✨ Features

  • Query the USGS Earthquake API with customizable filters
  • Convert local times to UTC automatically
  • Validate input parameters (start/end time, magnitudes, etc.)
  • Filter earthquake results by country code (using country-boundaries)
  • Strongly typed response models (EarthquakeResponse, EarthquakeFeatures, EarthquakeProperties)
  • Rich error handling with thiserror::Error

🚀 Installation

Add to your Cargo.toml:

[dependencies]
usgs-earthquake-api = "0.1.0"

📜 License

This project is licensed under the MIT License.


👨‍💻 Author

Mert Bölükbaşı

Founder of Kaizenium Foundation
Email: kaizenium@kaizeniumfoundation.com