Expand description
§ScrapeBadger
Async Rust SDK for the ScrapeBadger web-scraping
API. It mirrors the official Python/Node SDKs: one ScrapeBadger client
with a namespace per platform.
use scrapebadger::ScrapeBadger;
// Reads SCRAPEBADGER_API_KEY from the environment.
let client = ScrapeBadger::from_env()?;
let account = client.account().get_account_info(Default::default()).await?;
let flights = client
.google()
.flights_search(scrapebadger::google::FlightsSearchParams {
departure_id: Some("DEL".into()),
arrival_id: Some("BOM".into()),
outbound_date: Some("2026-07-01".into()),
..Default::default()
})
.await?;Most endpoint inputs are plain structs implementing Default; set the
fields you need and spread the rest with ..Default::default(). Required
parameters are documented per method.
Re-exports§
pub use crate::core::Config;pub use crate::core::Error;pub use crate::core::Result;pub use crate::core::DEFAULT_BASE_URL;pub use account::Account;pub use amazon::Amazon;pub use google::Google;pub use reddit::Reddit;pub use twitter::Twitter;pub use vinted::Vinted;pub use web::Web;
Modules§
- account
- Account, credit balance, and plan information.
- amazon
- Amazon product, review, offer, and seller data across 20 marketplaces.
- cli_
reference - Full
scrapebadgerCLI command reference — every endpoint as a nested subcommand. Generated fromspecs/*.json(the same source as this SDK), so it never drifts. This module has no code; it exists to render the CLI tree on docs.rs alongside the library API. - core
- Transport core shared by every platform namespace: configuration, the
reqwest-backed
Client, the typedErrormodel, query assembly, and pagination helpers. - Google product APIs: Search, Maps, Flights, Hotels, News, Shopping, Scholar, Trends, Jobs, Patents, Images, Videos, Finance, Lens, AI Mode, Shorts, Local, and Products.
- Reddit posts, comments, subreddits, users, and wiki content.
- Twitter/X tweets, users, communities, lists, spaces, geo, trends, and real-time Stream Monitors / Filter Rules.
- vinted
- Vinted listings, user profiles, and catalog reference data across 26 markets.
- web
- General-purpose website scraping with anti-bot bypass, JS rendering, and AI-powered extraction.
Structs§
- Scrape
Badger - The ScrapeBadger API client. Cheap to clone (reference-counted inside).
- Scrape
Badger Builder - Builder for
ScrapeBadger.