This is a forked repo of a Dart API lib that was not being maintained!

Lemmy Dart API client

A Dart client for the Lemmy API


  • Future-based
  • Works both for Web and Native environments
  • Strictly typed responses
  • Room websocket joins
  • Pictrs endpoints
  • Models have a .instanceHost property that indicate the instance that returned this model


import 'package:lemmy_api_client/v3.dart';

Future<void> main() async {
  // instantiate your lemmy instance with the host uri
  const lemmy = LemmyApiV3('');

  // call methods that are named after op codes from the lemmy docs
  final response =
      await Login(usernameOrEmail: 'asd', password: 'ads'));

  final messages = await lemmy
      .run(GetPrivateMessages(unreadOnly: true, auth: response.jwt!.raw));


check out Lemmur, a mobile Lemmy client in Flutter

Original Lemmy logo made by Andy Cuccaro (@andycuccaro) under the CC-BY-SA 4.0 license. Remixed by Marcin Wojnarowski (@shilangyu) and re-released under the CC-BY-SA 4.0 license.