usgs-earthquake-api

Crates.iousgs-earthquake-api
lib.rsusgs-earthquake-api
version0.1.0
created_at2025-10-03 22:05:32.635758+00
updated_at2025-10-03 22:05:32.635758+00
descriptionA Rust client library for querying the USGS Earthquake API. Provides request validation, error handling, and data models for earthquake events.
homepage
repositoryhttps://github.com/mertbolukbasi/usgs-earthquake-api
max_upload_size
id1867248
size62,735
Mert (mertbolukbasi)

documentation

https://docs.rs/usgs-earthquake-api

README

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

Commit count: 0

cargo fmt