youtube_integration 1.0.1 copy "youtube_integration: ^1.0.1" to clipboard
youtube_integration: ^1.0.1 copied to clipboard

A Dart package that provides an easy-to-use interface for accessing the YouTube Data API. Fetch videos, playlists, channel details, comments, and more with minimal setup.

๐Ÿ“บ youtube_integration #

A Dart package that simplifies integration with the YouTube Data API.
Easily fetch videos, playlists, channel details, comments, and more โ€” all in a clean and developer-friendly way.


โœจ Features #

  • ๐Ÿ” Search for YouTube videos.
  • ๐Ÿ“บ Fetch videos from a specific channel.
  • ๐Ÿ“‚ Retrieve playlists of a channel.
  • ๐ŸŽž๏ธ Get all videos from a playlist.
  • ๐Ÿงพ Fetch video details (statistics, title, etc).
  • ๐Ÿ’ฌ Fetch comments on a video.
  • ๐Ÿ“Š Get full channel details.

๐Ÿš€ Getting Started #

1. Add dependency to pubspec.yaml: #

dependencies:
  youtube_integration: <LATEST_VERSION>

2. Enable the YouTube Data API: #

Go to Google Cloud Console
โ†’ Enable the YouTube Data API v3.

3. Create an API key: #

Generate an API key from API Credentials Page.


๐Ÿงช Usage #

import 'package:youtube_integration/youtube_integration.dart';

final youtube = YouTubeIntegration(apiKey: 'YOUR_API_KEY');

// Fetch videos from a channel
final videos = await youtube.fetchChannelVideosByID(channelId: 'CHANNEL_ID');

// Search videos
final results = await youtube.searchVideos(query: 'flutter tutorials');

You can also:

  • Fetch channel details
  • Get playlist videos
  • Get video details
  • Fetch video comments

๐Ÿ“˜ Documentation #

Check the full documentation in the GitHub repo.


๐Ÿ’ก Tip #

You can paginate results using nextPageToken available in the API responses.


๐Ÿ“„ License #

This package is open-source and licensed under the MIT License.


๐Ÿ™Œ Contributing #

Pull requests and issues are welcome!
Feel free to open an issue or submit a PR on GitHub.

10
likes
140
points
74
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package that provides an easy-to-use interface for accessing the YouTube Data API. Fetch videos, playlists, channel details, comments, and more with minimal setup.

Repository (GitHub)
View/report issues

Topics

#youtube #api #video #dart #integration

Documentation

API reference

License

MIT (license)

Dependencies

build_runner, dio, mockito

More

Packages that depend on youtube_integration