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

Libraries

invidious