Musixmatch

Musixmatch

Music

The fastest, most powerful and legal way to display lyrics on your website or in your application. The world’s largest lyrics database with more than 14 million lyrics in over 50 distinct languages.

Visit API🔁 Alternatives

📚 Documentation & Examples

Everything you need to integrate with Musixmatch

🚀 Quick Start Examples

Musixmatch Javascript Examplejavascript
// Musixmatch API Example
const response = await fetch('https://developer.musixmatch.com/', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

Discovering Musixmatch API for Javascript Developers

Musixmatch offers a rich set of APIs for developers to integrate their application with the powerful lyrics platform. This service is used by millions of music enthusiasts around the world who want to connect with lyrics from various artists and bands.

In this blog post, we will explore the essential APIs that you need to know as a Javascript developer, which can be accessed using the Musixmatch Developer Platform.

How to Get a Musixmatch API Key

  1. Go to the Musixmatch developer portal and create a free account.
  2. Your API key is generated instantly on signup — find it in your developer dashboard/account page.

The free Developer plan allows up to 2,000 API calls per day. Note it returns only lyric previews (a portion of the lyrics) and is intended for development and non-commercial use; full and synced lyrics require a commercial licensed plan.

Authenticate by adding your key as the apikey query parameter on every call:

const apiKey = 'YOUR_API_KEY';
fetch(`https://api.musixmatch.com/ws/1.1/track.search?q_track=yesterday&apikey=${apiKey}`)
  .then(res => res.json())
  .then(data => console.log(data));

Check the developer portal's plans page for current commercial pricing and higher rate limits.

Sample APIs using JavaScript

To give you a better idea of how to use Musixmatch APIs with Javascript, here are some examples.

Search API

The Search API enables you to perform a search using artist, track, or lyrics as the primary search criteria. You can use the following code to utilize this API.

fetch(
  `https://api.musixmatch.com/ws/1.1/track.search?q_artist=${artistName}&page_size=10&page=1&s_track_rating=desc&apikey=${apiKey}`
)
  .then((res) => res.json())
  .then((data) => {
    console.log(data);
  });

Lyrics API

The Lyrics API enables you to retrieve the full lyrics of a song. Here's how to get the lyrics of a specific track.

fetch(
  `https://api.musixmatch.com/ws/1.1/track.lyrics.get?track_id=${trackId}&apikey=${apiKey}`
)
  .then((res) => res.json())
  .then((data) => {
    console.log(data);
  });

Album API

The Album API enables you to get information about an album. Here's how to get an album's details.

fetch(
  `https://api.musixmatch.com/ws/1.1/album.get?album_id=${albumId}&apikey=${apiKey}`
)
  .then((res) => res.json())
  .then((data) => {
    console.log(data);
  });

Artist API

The Artist API retrieves the details about the artist like name, artist Id, and social network links.

fetch(
  `https://api.musixmatch.com/ws/1.1/artist.get?artist_id=${artistId}&apikey=${apiKey}`
)
  .then((res) => res.json())
  .then((data) => {
    console.log(data);
  });

Conclusion

With the Musixmatch Developer Platform, Javascript developers can easily integrate their application with the power of this platform. The platform offers a range of APIs to choose from, depending on their application's need.

In short, Musixmatch is an excellent platform for developers looking to build music-based applications with lyrics and related information. We hope this brief introduction has helped you get started with Musixmatch's powerful API platform.

Explore More

Best Musixmatch alternatives (2026)Best Music APIs

Related APIs in Music