use reqwest::impersonate::Impersonate; use reqwest_impersonate as reqwest; use std::error::Error; #[tokio::main] async fn main() -> Result<(), Box> { // Build a client to mimic Chrome126 let client = reqwest::Client::builder() .impersonate(Impersonate::Chrome126) .enable_ech_grease() .permute_extensions() .cookie_store(true) .build()?; // Use the API you're already familiar with let resp = client.get("https://tls.peet.ws/api/all").send().await?; println!("{}", resp.text().await?); Ok(()) }