[][src]Crate yt_api

yt-api

With the yt-api crate you can interact asynchronously with the youtube-api.

Performing a search query

To perform a search query, you can use the search shortcut function.

let search_list = SearchList::new(ApiKey::new("your-youtube-api-key")).q("rust lang".to_string());

let future = async move {
    let result = yt_api::search(&search_list).await.unwrap();
};

tokio::run(future.unit_error().boxed().compat());

Modules

search

Structs

ApiKey

Functions

search

shortcut function to search for a video, channel or playlist