urlscan-rs
Rust wrapper for URLScan.io API
Provides an abstraction over the URLScan.io API. This library supports the following tasks:
- Get Quota
- Submit URL to be scanned
- Get JSON Result of scan as String
- Get DOM of previously scanner URL by UUID
- Get Screenshot of page
- Search functionality
Examples
Get your current quota with limits:
let client = new;
let response = client.get_quota;
match response
Submitting a URL to be scanned:
let client = new;
let response = client.scan_url;
match response
Example Output:
Submission successful.
UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
View Result: https://urlscan.io/result/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/
Getting the DOM:
let client = new;
// submit a URL to get a "submission" back or directly add the UUID:
let uuid = submission.uuid;
let response = client.get_dom;
match response
FAQs
- How do I get a URLScan.io API Key? Create an URLScan.io account and then go to Settings & API to get your API key.
- Is the URLScan.io API key free? Yes, URLScan.io has free API keys that are limited by time. If you reach the limit you can pay for unlimited requests.
License: MIT