/apple_music_lyrics

Get lyrics from Apple Music

Primary LanguageRust

Apple Music Lyrics

About This Project

Get lyrics from Apple Music

Framework Used

Usage

Run the command to start the simulation

cargo run

If you are running it for the first time, you will be prompted to enter your Apple Music user token. The token will be saved in the .env file, giving you the flexibility to edit it at any time.

How To Find User Token?

  1. Log in to your Apple ID on the Apple Music Web platform.
  2. Access the Network Inspector within your browser.
  3. Reload the page.
  4. Locate the Info file.
  5. The user token can be found in the Media-User-Token header.

Response JSON File Structure

{
    "lines": [
        {
            "begin": "string",
            "end": "string",
            "words": [
                {
                    "begin": "string",
                    "end": "string",
                    "text": "string"
                }
            ],
            "background": [
                "words": [
                    {
                        "begin": "string",
                        "end": "string",
                        "text": "string"
                    }
                ],
            ]
        }
    ]
}