๐ŸŒ AIๆœ็ดข & ไปฃ็† ไธป้กต
Skip to content

MusicAPI is a free and powerful API designed to simplify the way you interact with music data. It provides a seamless method to fetch essential song information, including song names, YouTube & Spotify URLs, audio streaming links, durations, thumbnails, and much more.

Notifications You must be signed in to change notification settings

BhaskarPanja93/MusicAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽถ MusicAPI - Your Gateway to All Things Music! ๐ŸŽง

Welcome to MusicAPI โ€“ a free, fast, and easy-to-use API that lets you fetch detailed song data, including song names, YouTube & Spotify URLs, audio files, thumbnails, and more! It's like having your very own personal music assistant, all wrapped up in a neat API package. ๐Ÿš€

Features:

  • ๐ŸŽต Get Song Data: Fetch all essential details like song name, thumbnail, duration, and more.
  • ๐Ÿ”— YouTube & Spotify Integration: Direct links to song videos on YouTube and audio streaming on Spotify.
  • ๐Ÿ“ฆ Audio Streaming/Download: Stream or download the song audio directly via a clean audio URL.
  • โšก Fast & Cached: Once fetched, song data is cached to ensure faster subsequent requests, without relying on third-party APIs each time.
  • ๐ŸŒ Web Interface: No coding required โ€“ use the built-in web interface to search and play songs with a few clicks. ๐ŸŽถ

How it Works:

  1. Request a Song: Send a request with a song ID to the API.
  2. Data Fetching: The backend fetches all song details (YouTube, Spotify, etc.) in real-time and stores them.
  3. Return the Data: The API responds with the songโ€™s data, including URLs, audio file links, and more.
  4. Caching: The data is cached to prevent unnecessary API calls to YouTube and Spotify, making the system super efficient.

๐ŸŽต API Endpoints

1. Request Song ID

  • Endpoint: https://bhindi1.ddns.net/music/api/prepare/{song_name/url}
  • Method: GET
  • Description: Provide the song name, and the API returns a song ID.

2. Request Song Data by ID

  • Endpoint: https://bhindi1.ddns.net/music/api/fetch/{song_id}
  • Method: GET
  • Description: Using the song ID, fetch detailed song information including URLs for YouTube, Spotify, and the audio file.

3. Request Song Audio stream by ID

  • Endpoint: https://bhindi1.ddns.net/music/api/audio/{song_id}
  • Method: GET
  • Description: Using the song ID, fetch the audio data as a stream, incase the default audio_url doesn't work.

๐ŸŒ Web Interface

Want to try out the API without writing code? No problem! Just head to the bundled web interface and start playing songs in seconds.

๐Ÿ‘‰ Visit the Web Interface: MusicAPI Web Interface


โš™๏ธ Technologies Used

  • Backend: Python
  • Database: MySQL (for caching song data)
  • External APIs: YouTube Data API, Spotify Web API
  • Frontend: HTML, CSS, JavaScript (for the web interface)

๐Ÿ’ก Why Use MusicAPI?

  • Speed: Enjoy fast responses due to intelligent caching of song data.
  • Convenience: Fetch everything you need with just one request. No more manual searching on YouTube or Spotify.
  • Free to Use: As an open-source project, MusicAPI is free. ๐ŸŽ‰
  • Fully Integrated: Get all your music info (audio, video, metadata) in a single place.

โšก Support

For any issues or support, feel free to open an issue in the GitHub repository.


With MusicAPI, music just got a whole lot easier to access. Enjoy listening, streaming, and sharing! ๐ŸŽถโœจ

About

MusicAPI is a free and powerful API designed to simplify the way you interact with music data. It provides a seamless method to fetch essential song information, including song names, YouTube & Spotify URLs, audio streaming links, durations, thumbnails, and much more.

Topics

Resources

Stars

Watchers

Forks