Table of Contents
I came across multiple projects which displayed your recently songs on your GitHub readme but found none for Apple Music. Since the Apple Music API kit is paid, I found an easy hack to get the recently added albums to Apple Music library for free.
If you want to use this project, just follow the steps below
You will need two things to set-up this project for your own GitHub readme:
- Apple Music Account
- Vercel Account
- A web brower (with dev tools)
-
Login to Apple Music in a broswer
-
Open Dev Tools and switch to the
Network Tab
. Select Fetch/XHR filter -
Click on the Recently Added section in the side navbar
-
From the request headers, copy and keep the values of these keys for future use:
Cookie
Authorization
(Copy the code after the wordBearer
, excluding the space)media-user-token
-
Head to https://vercel.com and Login/Signup
-
Goto
Add New
->Project
->Continue with GitHub
-
Select the forked repo from the list of repositories
-
In the configure project section, add the Environment Variable as follows with values from step 5
- COOKIE:
Cookie
- AUTH_TOKEN:
Authorization
- MEDIA_USER_TOKEN:
MEDIA_USER_TOKEN
-
Click deploy 🚀
-
In your GitHub readme, add the card using the following tag:
<img src="https://DOMAIN_OF_YOUR_VERCEL_APP.vercel.app/?">
Note: DO NOT FORGET TO ADD THE '/?' IN THE END OF THE URL
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- 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
Distributed under the MIT License. See LICENSE.txt
for more information.