Hust Musik
  1. User
Hust Musik
  • User
    • Get All Users
      GET
    • Get User By ID
      GET
    • Get User Profile
      GET
    • Get User Listen History
      GET
    • Get Followed Artists
      GET
    • Update User Profile
      POST
    • Get User Playlists
      GET
    • Upsert User Listen History
      POST
    • Follow Artist
      POST
    • Unfollow Artist
      DELETE
  • Song
    • Get All Songs
      GET
    • Add Song
      POST
    • Get Song By ID
      GET
    • Update Song
      POST
    • Delete Song
      DELETE
    • Generate Presigned Download
      GET
    • Generate Presigned Upload
      GET
  • Auth
    • Register User
      POST
    • Sign In
      POST
    • Sign Out
      GET
    • Google Sign In
      GET
    • Update User Credentials
      POST
    • Renew Session
      POST
  • Artist
    • Get All Artists
      GET
    • Get Artist By ID
      GET
    • Add Artist
      POST
    • Update Artist
      POST
    • Delete Artist
      DELETE
  • Collection
    • Get All Collections
    • Get All Playlists
    • Get All Albums
    • Get Collection By ID
    • Add Collection
    • Update Collection
    • Delete Collection
    • Add Song To Collection
    • Delete Song From Collection
  • Search
    • Default Search
    • Search Songs
    • Search Albums
    • Search Playlists
    • Search Users
    • Search Artists
  • Payment
    • Create Zalo Order
    • Get Zalo Order Status
  • Check Health
    GET
  1. User

Get User Listen History

GET
/v1/user/me/history
UserHistory

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.hustmusik.live/v1/user/me/history'

Responses

🟢200OK
application/json
Body
data
array [object {2}] 
required
last_listened
string 
required
songs
object 
required
Example
{
    "data": [
        {
            "last_listened": "2024-11-03T08:21:44.432759+00:00",
            "songs": {
                "id": "62f73752-f9c0-4611-853d-b10ed4434515",
                "title": "Fearless (Taylor’s Version)",
                "artists": [
                    {
                        "artist": {
                            "id": "5ea2b239-9ba9-4251-b110-343978aa30e9",
                            "name": "Taylor Swift"
                        }
                    }
                ],
                "duration": 107,
                "thumbnailurl": null
            }
        },
        {
            "last_listened": "2024-11-03T08:21:53.070579+00:00",
            "songs": {
                "id": "418d1f7f-09a4-4f06-8912-ae061b11a070",
                "title": "Breathe (Taylor’s Version)",
                "artists": [],
                "duration": null,
                "thumbnailurl": null
            }
        }
    ]
}
🟠400Bad Request
Modified at 2024-11-03 14:03:17
Previous
Get User Profile
Next
Get Followed Artists
Built with