Giter Site home page Giter Site logo

paxsenix0 / musixmatch-lyrics Goto Github PK

View Code? Open in Web Editor NEW
34.0 3.0 2.0 47 KB

Get Lyrics songs by using MusixMatch API. written in PHP!

Home Page: https://paxsenixofc.my.id/

License: GNU General Public License v3.0

PHP 100.00%
lyrics-api musixmatch-api musixmatch-lyrics php

musixmatch-lyrics's Introduction

MusixMatch-Lyrics

Easily get music Synced Lyrics by using MusixMatch API written in PHP!

Examples

Using Alternative Method

To retrieve lyrics using the alternative method, use the /getLyricsMusix.php endpoint with the following parameters:

  • t: The title of the song
  • a: The artist's name
  • d: The duration of the song (you can specify the duration in either mm:ss format or in total seconds)
  • type: The type for search the lyrics, alternative for search it by using metadata and default is only using song title and artist name

Example:

https://paxsenixofc.my.id/server/getLyricsMusix.php?t=Hope&a=XXXTENTACION&d=1:50&type=alternative

Using Default Method

To retrieve lyrics using the default method, use the /getLyricsMusix.php endpoint with the following parameter:

  • q: The query string containing the song title and artist name
  • type: The type for search the lyrics, alternative for search it by using metadata and default is only using song title and artist name

Example:

https://paxsenixofc.my.id/server/getLyricsMusix.php?q=Hope%20XXXTentacion&type=default

Response:

[00:02.80]Yeah
[00:05.56]♪
[00:11.06]Rest in peace to all the kids that lost their lives in the Parkland shooting
[00:13.63]This song is dedicated to you

How to Use

Lyrics Synced Alternative

include_once("./Musixmatch.php");
$musix = new MusixLyricsApi\Musix(); 
echo $musix->getLyricsAlternative("Hope", "XXXTENTACION");

Lyrics Synced Default

include_once("./Musixmatch.php");
$musix = new MusixLyricsApi\Musix();
$track_id = $musix->searchTrack("Hope XXXTENTACION");      
echo $musix->getLyrics($track_id);

Information

I'm sorry if the code looks weird; I'm working only on a phone (I don't have a PC/Laptop) and I'm still a beginner. :)

Idea

I started searching for lyrics APIs because of this repository: Spotify Lyrics API by akashrchandran


musixmatch-lyrics's People

Contributors

paxsenix0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

musixmatch-lyrics's Issues

Is there a usage limit to this?

I want to use this on my personal project, and I'm wondering if there is a usage limit to this. I already forked my own version and currently using it in localhost.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.