Skip to content

Latest commit

 

History

History
106 lines (88 loc) · 1.91 KB

readme.md

File metadata and controls

106 lines (88 loc) · 1.91 KB

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