zyte-api-rs 0.1.6

Use the Zyte API Proxy -- Unofficial & Unstable
Documentation

zyte-api-rs

Allows access to the Zyte API proxy service.

This is an unofficial, unstable, unfinished crate. However normal usage with HTTP GET should work fine.

Prerequisites

Installation

cargo add zyte-api-rs

Example

use zyte_api_rs::ZyteApi;

#[tokio::main]
async fn get_google() {
    let zyte_api = ZyteApi::new("<MY_ZYTE_API_KEY>");
    let response = zyte_api.get("https://www.google.com/").await.unwrap();
    if response.status_code.is_success() {
        println!("{}", response.http_response_body);
    }
}