
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
@green-code/music-track-data
Advanced tools
A music API. Provides you an array of music track data including lyrics, album, artist and title, simply by performing a fuzzy search on the lyrics or title.
A simple JavaScript music track data search API.
npm install @green-code/music-track-data
const {getTracks} = require("@green-code/music-track-data");
getTracks("Times Like These")
.then(console.log)
.catch(console.log);
The method returns an array of objects in the format below. Each object is data of a track found by the Deezer API. If the API doesn't find any data, you will get an empty array.
You don't require an API key to use this method.
[
{
"id": 0,
"artist": "Foo Fighters",
"title": "Times Like These",
"preview": "http://cdn-preview-9.deezer.com/stream/c-9516e9507adaaf3f0fa2354c816adeb8-5.mp3",
"album": {
"title": "Greatest Hits",
"artwork": "http://e-cdn-images.dzcdn.net/images/cover/266f01f1c7a04843d11cd08f9c07d11f/1000x1000-000000-80-0-0.jpg"
}
}
]
const {getLyrics} = require("@green-code/music-track-data");
getLyrics("Foo Fighters", "Times Like These")
.then(console.log)
.catch(console.log);
The method returns an object in the format below or null
if no lyrics were found.
This method call uses MusicMatch and requires an API key. Set yours with the var name of MUSICMATCH_API_KEY
{
"explicit": false,
"lyrics": "I, I'm a one way motorway\nI'm the one that drives away\nThen follows you back home\nI, I'm a street light shining\nI'm a wild light blinding bright\nBurning off alone..."
}
FAQs
A music API. Provides you an array of music track data including lyrics, album, artist and title, simply by performing a fuzzy search on the lyrics or title.
The npm package @green-code/music-track-data receives a total of 4,308 weekly downloads. As such, @green-code/music-track-data popularity was classified as popular.
We found that @green-code/music-track-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.