Today we’re proud to launch a new Web API endpoint: Get a User’s Recently Played Tracks. With the user’s permission, you can now retrieve up to 50 of their most recently played tracks (excluding tracks played during a private session) as well as whether it was part of an album, playlist or artist listening context. Full documentation including restrictions, which scopes are necessary, and how to authenticate can be found here.

It has been a regular request on our community issue tracker, and we are excited to see what you build with it. Happy Hacking!