Skip to main content

Extract lyrics from MusicXMatch API, for free.

Project description

MusicXMatch API

Musixmatch is the world's largest catalog of song lyrics and translations. The service is used by millions of people around the world to find lyrics for songs playing around them, to translate lyrics, and to get the facts behind the songs.

What is this?

This is a Python wrapper for the Musixmatch API. It uses the community API key to make requests to the API. These requests have the the same access as a Plus plan but for free.

What can I access?

You can basically query for any lyrics and translation from their API, a more detailed list can be viewed here: Musixmatch API Documentation.

How do I use it?

First, you need to install the package:

pip install musicxmatch_api

Examples

Search for artists

    # If you need to make a high volume of requests, consider using proxies
    from musicxmatch_api import MusixMatchAPI
    api = MusixMatchAPI(proxies=proxies)
    search = api.search_artist("adele")

Search for songs

    # If you need to make a high volume of requests, consider using proxies
    import json
    from musicxmatch_api import MusixMatchAPI
    api = MusixMatchAPI()
    search = api.search_tracks("skyfall")
    print(json.dumps(search, indent=4))

Search for a specific song to get its lyrics

    # If you need to make a high volume of requests, consider using proxies
    from musicxmatch_api import MusixMatchAPI
    track_id = 103149239 # Skyfall by Adele
    api = MusixMatchAPI(proxies=proxies)
    search = api.get_track_lyrics(track_id=track_id)
    # The lyrics are in the "lyrics_body" key
    lyrics = search["message"]["body"]["lyrics"]["lyrics_body"]

License

Strvm/musicxmatch-api: a reverse engineered API wrapper for MusicXMatch  
Copyright (c) 2025 Strvm

Permission is hereby granted, free of charge, to any person obtaining a copy  
of this software and associated documentation files (the "Software"), to deal  
in the Software without restriction, including without limitation the rights  
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell  
copies of the Software, and to permit persons to whom the Software is  
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all  
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR  
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,  
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE  
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER  
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,  
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE  
SOFTWARE.

MusicXMatch Copyright

For more information tied to the copyright of the Musixmatch API, please refer to the Musixmatch Copyright.

Disclaimer

The content provided herein is intended strictly for educational purposes. Any misuse or abuse of this information that contradicts this purpose, including but not limited to the unauthorized distribution, reproduction, or alteration of content, or the use of information for illicit activities, is strictly prohibited and may constitute a violation of applicable laws and regulations. This could lead to serious consequences including legal action. Educational resources are to be used responsibly, ethically, and with integrity. We reserve the right to restrict access to these resources for anyone found violating these terms.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

musicxmatch_api-1.0.7.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

musicxmatch_api-1.0.7-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file musicxmatch_api-1.0.7.tar.gz.

File metadata

  • Download URL: musicxmatch_api-1.0.7.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for musicxmatch_api-1.0.7.tar.gz
Algorithm Hash digest
SHA256 a0a7b3446ba9554109fd5c54362825c490ae3e714ab0eb22a89e20a8267f4eb7
MD5 94d7060fe0381bdbd242c2f09faaee43
BLAKE2b-256 92360fd31f0bd01dabe5f12d154f97e2683b98ebd4ca82e420c1a9daa43a3e03

See more details on using hashes here.

File details

Details for the file musicxmatch_api-1.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for musicxmatch_api-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 103649a94f004f12cd0080326dd014133dc90dc22c3eb3b23e16feca40ea5611
MD5 b79b197e5e6e192ad4c56d11918b5a39
BLAKE2b-256 a1af1a6c37e91da8cf65bf3406dd9b2f0ec4d141d54a930c1f14605aaeb2cf8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page