13 releases

new 0.1.12 Jan 7, 2025
0.1.11 Jan 2, 2025
0.1.7 Dec 27, 2024

#466 in Web programming

Download history 147/week @ 2024-12-16 555/week @ 2024-12-23 455/week @ 2024-12-30 149/week @ 2025-01-06

1,306 downloads per month

MIT license

150KB
4K SLoC

rust-data-for-seo

rust-data-for-seo is a client library designed to make interacting with the DataForSEO API simple and efficient in Rust. This library helps you access search engine and market data while leveraging Rust's speed and safety features.

SerpAPI

Google

  • Organic
  • Maps
  • LocalFinder
  • News
  • Events
  • Images
  • SearchByImage
  • Jobs
  • Autocomplete
  • DatasetInfo
  • AdsAdvertises
  • AdsSearch

Example

fn client() -> DataForSeoClient {
    dotenv::dotenv().ok();
    let id = env::var("ID").unwrap();
    let pass = env::var("PASSWORD").unwrap();

    DataForSeoClient::new(id, pass)
}



#[tokio::test]
async fn post() {
    let client = client();
    let mut request = KeywordsDataApiGoogleAdsSearchVolumeTaskPostRequest::new("ja".to_string(), 20636);
    request.keywords = vec!["SEO".to_string()];
    request.search_partners = Some(true);
    let res = client
        .keywords_data()
        .google_ads()
        .search_volume_task_post(vec![request])
        .await;
    println!("{:?}", res);
}

TODO Bing YouTube Yahoo Baidu Naver Seznam

Keyword Data API

Google

  • Search Volume
  • Keywords For Site
  • Keywords For Keywords
  • Ad Traffic By Keywords

Domain Analytics API

TODO

DataForSEO Labs API

TODO

Backlinks API

TODO

OnPage API

  • ID List
  • Errors
  • Force Stop
  • Filters and Thresholds
  • Task Post
  • Tasks Ready
  • Summary
  • Pages
  • Pages By Resource
  • Resource
  • Duplicate Tags
  • Duplicate Content
  • Links
  • Redirect Chains
  • Non-Indexable
  • Waterfall
  • Keyword Density
  • Microdata
  • Raw HTML
  • Page Screenshot
  • Content Parsing
  • Content Parsing(Live)
  • Instant Pages(Live)
  • Lighthouse

TODO Content Analysis API Content Generation API Merchant API App Data API Business Data API

Dependencies

~4–16MB
~199K SLoC