| Crates.io | shodan-rust |
| lib.rs | shodan-rust |
| version | 1.0.1 |
| created_at | 2025-05-06 07:37:20.77067+00 |
| updated_at | 2025-05-06 10:22:32.171115+00 |
| description | An async Shodan API client written in Rust |
| homepage | https://github.com/gooseyinc/shodan-rust |
| repository | https://github.com/gooseyinc/shodan-rust |
| max_upload_size | |
| id | 1661968 |
| size | 49,224 |
An async-native Rust client for the Shodan.io API.
shodan-rust is a lightweight and modern Rust crate for accessing Shodan's powerful search capabilities over the internet of things.
reqwest and tokio/examples directoryCargo.toml[dependencies]
shodan-rust = { git = "https://github.com/gooseyinc/shodan-rust" }
tokio = { version = "1", features = ["full"] }
use shodan_rust::ShodanClient;
#[tokio::main]
async fn main() {
let client = ShodanClient::new("YOUR_SHODAN_API_KEY");
match client.host_info("8.8.8.8").await {
Ok(info) => println!("{:#?}", info),
Err(e) => eprintln!("Error: {}", e),
}
}
π Check the
examples/folder for more real-world usage.
export SHODAN_API_KEY=your_key_here
cargo test
PRs, ideas and bug reports are welcome.
Want to extend the library or implement more endpoints? Letβs build it together!
Licensed under the MIT License.
Not affiliated with Shodan.io β this is a community-built Rust library.