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

Invidious API client for Dart and Flutter.

Invidious Dart #

A library for interacting with the Invidious API for Dart and Flutter.

Which endpoints are implemented? #

Install #

Run following command to install the package:

flutter pub add invidious

Support this project #

Usage #

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.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()));
}

LICENSE #

MIT

2
likes
120
points
746
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