Skip to main content

Crate scrapebadger

Crate scrapebadger 

Source
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 scrapebadger CLI command reference — every endpoint as a nested subcommand. Generated from specs/*.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 typed Error model, query assembly, and pagination helpers.
google
Google product APIs: Search, Maps, Flights, Hotels, News, Shopping, Scholar, Trends, Jobs, Patents, Images, Videos, Finance, Lens, AI Mode, Shorts, Local, and Products.
reddit
Reddit posts, comments, subreddits, users, and wiki content.
twitter
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§

ScrapeBadger
The ScrapeBadger API client. Cheap to clone (reference-counted inside).
ScrapeBadgerBuilder
Builder for ScrapeBadger.