invidious 0.1.1 copy "invidious: ^0.1.1" to clipboard
invidious: ^0.1.1 copied to clipboard

Invidious API client for Dart and Flutter.

example/invidious_example.dart

import 'dart:convert';

import 'package:invidious/invidious.dart';

void main() async {
  final invidious = InvidiousClient(server: 'https://inv.nadeko.net');
  final pretty = JsonEncoder.withIndent(' ');

  print((await invidious.instances()).map(pretty.convert));

  print((await invidious.browse.popular()).map(pretty.convert));
  print((await invidious.browse.trending()).map(pretty.convert));

  print(pretty.convert(await invidious.search.suggestions('flutter')));
  print(
    pretty.convert(
      await invidious.search.list('Why Flutter is better than React Native?'),
    ),
  );

  print(pretty.convert(await invidious.videos.get('oBofuVYDoG4')));
  print(pretty.convert(await invidious.videos.captions('oBofuVYDoG4')));
  print(pretty.convert(await invidious.videos.comments('oBofuVYDoG4')));
  print(pretty.convert(await invidious.videos.listByHashtag('flutter')));

  print(pretty.convert(await invidious.stats()));
}
2
likes
120
points
709
downloads

Publisher

verified publisherkrtirtho.dev

Weekly Downloads

Invidious API client for Dart and Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, freezed_annotation, json_annotation

More

Packages that depend on invidious