piped_client 0.1.0 copy "piped_client: ^0.1.0" to clipboard
piped_client: ^0.1.0 copied to clipboard

API Client for piped.video

Piped.dart #

Simple api client for piped.video, an alternative frontend for YouTube Supports both Dart and Flutter

Installation #

For flutter

$ flutter pub add piped_client

For dart only,

$ dart pub add piped_client

Usage #

Simply use the exported PipedClient to create an instance for the client

import 'package:piped_client/piped_client.dart';

void main() async {
  final client = PipedClient();

  final result = await client.search('piped');

  for (final item in result.items) {
    if (item is PipedSearchItemStream) {
      print('Stream: ${item.title} => ${item.url}');
    } else if (item is PipedSearchItemChannel) {
      print('Channel: ${item.name} => ${item.url}');
    } else if (item is PipedSearchItemPlaylist) {
      print('Playlist: ${item.name} => ${item.url}');
    }
  }
}

Following endpoints currently implemented:

  • ✅ /search
  • ✅ /streams
  • ✅ instance-list (parses Instance.md)

License #

MIT

3
likes
140
points
748
downloads

Publisher

verified publisherkrtirtho.dev

Weekly Downloads

API Client for piped.video

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, json_annotation

More

Packages that depend on piped_client