Skip to content

Installation

RubenJ01 edited this page Jan 25, 2026 · 2 revisions

Installation

Maven

Add JitPack repository to your pom.xml:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

Add the dependency:

<dependency>
    <groupId>com.github.RubenJ01</groupId>
    <artifactId>lastfm-java-client</artifactId>
    <version>2.0.0</version>
</dependency>

Gradle

Add JitPack to your build.gradle:

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

Add the dependency:

dependencies {
    implementation 'com.github.RubenJ01:lastfm-java-client:2.0.0'
}

Requirements

  • Java 17 or higher
  • Maven 3.9+ or Gradle 7.0+

Getting an API Key

  1. Visit https://www.last.fm/api/account/create
  2. Fill in your application details
  3. Copy your API Key and Shared Secret
  4. Use them when creating a LastFmClient

Clone this wiki locally