#seo #api #image #autocomplete #events #news #jobs

data-for-seo

DataForSEO API for Rust

1 unstable release

new 0.1.0 Dec 16, 2024

#2 in #news

Download history 127/week @ 2024-12-12

127 downloads per month

MIT license

100KB
2.5K SLoC

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 Content Analysis API Content Generation API Merchant API App Data API Business Data API

Dependencies

~4–15MB
~197K SLoC