···1818The `mediaUserToken` is required to access your recently played history. You can extract it directly from the Apple Music web app:
191920201. Visit [music.apple.com](https://music.apple.com) in your browser and log in.
2121-2. Open your browser's Developer Tools (usually `F12` or `⌘+Option+I`).
2121+2. Open your browser's Developer Tools (usually `F12` or <kbd>⌘</kbd> + <kbd>⌥</kbd> + <kbd>I</kbd>).
22223. Navigate to the **Application** tab (Chrome/Edge) or **Storage** tab (Safari/Firefox).
23234. Expand **Cookies** in the left sidebar and select `https://music.apple.com`.
24245. Find the cookie named `media-user-token` and copy its value (it typically starts with `0.`).