A Go package for interacting with YouTube's search functionality and retrieving video, channel, and playlist data. Based on https://github.com/damonwonghv/youtube-search-api.
- Search for videos, channels, and playlists
- Get video details
- Get channel information
- Get playlist data
- Retrieve short video data
- Get suggested videos
Install
go get -u github.com/yourusername/youtube-search-api-goImport the package in your Go code:
import "github.com/yourusername/youtube-search-api-go/pkg/youtubesearchapi"Use the provided functions to interact with YouTube data. For example:
result, err := youtubesearchapi.GetData("golang tutorial", true, 5, nil)
if err != nil {
// Handle error
}
// Process the resultThis project is licensed under the MIT License.