npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

emg-api

v1.0.0

Published

The EMG Song API provides Extrinsic Music Group (EMG) and their clients with secure access to detailed Spotify playlist data. Users can generate unique API keys to retrieve comprehensive track information, including titles, artists, albums, release dates,

Downloads

76

Readme


title: EMG Spotify Playlist API description:The EMG Spotify Playlist API provides Extrinsic Music Group (EMG) and their clients with secure access to detailed Spotify playlist data. Users can generate unique API keys to retrieve comprehensive track information, including titles, artists, albums, release dates, durations, and BPM, by specifying a playlist ID.

Features

  • Secure API Key Generation: Obtain unique, time-limited API keys for accessing playlist data.
  • Detailed Track Information: Retrieve in-depth details about tracks, including title, artist, album, release date, duration, and BPM.
  • Flexible Playlist Access: Fetch data for any Spotify playlist using its playlist ID.

Installation

Prerequisites

  • Node.js (>= 14.x.x)
  • npm (>= 6.x.x)

Install Dependencies

Clone the repository and navigate to the project directory:

git clone https://github.com/ExtrinsicMusicGroup/EMG-SONG-API.git
cd my-node-api

Install the required dependencies:

npm install

Usage

Generate API Key

To generate an API key, send a POST request to /api/generate-key:

curl -X POST http://localhost:3000/api/generate-key

The response will include a unique API key:

{
  "key": "your-api-key"
}

Fetch Playlist Details

Use the generated API key to fetch playlist details by sending a GET request to /api/playlist-details with the id query parameter:

curl -X GET "http://localhost:3000/api/playlist-details?id=<playlist-id>" -H "Authorization: Bearer <your-api-key>"

Replace <playlist-id> with the ID of the Spotify playlist you want to query and <your-api-key> with your generated API key.

Testing

To run tests for the API, use the following command:

npm test

Ensure your tests are correctly defined in the __tests__ directory.

Contributing

Contributions are welcome! If you find a bug or want to add a new feature, please open an issue or submit a pull request. Follow the CONTRIBUTING.md guidelines for more details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any inquiries, please contact EMG.


Tips:

  • Replace placeholders (like <repository-url>, <your-api-key>, and [Your Name](mailto:[email protected])) with actual values relevant to your project.
  • Include any additional configuration steps if needed for your API.
  • Ensure links to files like CONTRIBUTING.md and LICENSE are accurate and accessible in your project.