This function is used by yt.Search in the ytcol package to call the API to get videos related to a search term.
1 2 | yt.GetSearch(term = term, max_results = max_results,
published_after = NULL, published_before = NULL, type = "video", ...)
|
term |
Character. Search term. Required. No default. |
max_results |
Integer. Maximum number of items returned. Can be between 1 and 50. Default is 50. |
published_after |
Date. Optional. RFC 339 Format. Example, "1970-01-01T00:00:00Z" |
published_before |
Date. Optional. RFC 339 Format. Example, "1970-01-01T00:00:00Z" |
type |
Character. Optional. Takes one of three values: |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.