Skip to content
pubscout

genius_lyrics

1.0.1, released 3 years ago by an unverified publisher

A Dart client for the Genius.com API to fetch song, artist, and lyrics data.

$ flutter pub add genius_lyrics
Source repository

What it does

Provides a simple interface to query Genius.com for artists, songs, albums, and their corresponding lyrics. It allows developers to search data and save lyrics to local files.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to fetch song lyrics or artist data from Genius.com in your Dart or Flutter app.
  • You want to search for albums and tracks using the Genius API.

Skip it when

  • You are streaming music or handling actual audio/video playback.
  • You need a backend client for services other than Genius.com.

Strengths

  • Simple interface inspired by the LyricsGenixir Python library.
  • Supports searching by artist, song title, and album with options to include featured tracks.

Weaknesses

  • Requires a free Genius API access token to function.
  • Tied exclusively to the Genius.com platform.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3

Sign up for a free Genius account to obtain an access token for the Genius API.

import 'package:genius_lyrics/genius_lyrics.dart';

void main(List<String> args) async {
  Genius genius = Genius(accessToken: 'YOUR_TOKEN');
  Song? song = await genius.searchSong(artist: 'J. Cole', title: 'KOD');
  if (song != null) {
    print(song.lyrics);
  }
}

Alternatives

Packages that do the same job and could replace genius_lyrics.

  • dio

    If you need a robust HTTP client with advanced features like interceptors for calling the Genius API.

Works with

Packages commonly used together with genius_lyrics: ones it builds on, ones built on it, and its own family.