Get lyrics for English and Hindi songs
View Demo
·
Report Bug
·
Request Feature
The lack of an working open source API that allows users to fetch lyrics for a song without rate limiting led me to build this. I've hosted this API on Heroku temporarily. Since I'm always use up my monthly free Heroku dyno hours, dont be surprised if the the link stops working. I'll find a permanent solution soon.
To get a local copy up and running follow these simple example steps.
- Python 3.7+
- FastApi
- BeautifulSoup4
- Uvicorn
- Clone the repo
git clone https://github.com/radioactive11/the-lyrics-api
- Install requirements
pip3 install -r requirements.txt
- Start FastAPI server(by default at
localhost:8000
)
uvicorn main:app
The request body for English songs is:
curl --location --request GET 'https://the-lyrics-api.herokuapp.com/lyrics' \
--header 'Content-Type: application/json' \
--data-raw '{
"artist": "Taylor Swift",
"song": "State of Grace",
"lang": "eng"
}'
The request body for Hindi songs is:
curl --location --request GET 'https://the-lyrics-api.herokuapp.com/lyrics' \
--header 'Content-Type: application/json' \
--data-raw '{
"artist": "Arijit Singh",
"song": "Darkhaast",
"lang": "hin"
}'
Note: By default, the language parameter is set to English so you can ignore it for English Songs
{
"lyrics": "string"
}
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Arijit Roy - GitHub - roy.arijit2001@gmail.com