# Api_NowPlaying_SongHistory

Type: object

Schema: [Api_NowPlaying_SongHistory](https://sourcey-azuracast.pages.dev/docs/api/models/api-nowplaying-songhistory/index.md)

- `sh_id` (required)
  Type: integer
  
  Song history unique identifier

- `played_at` (required)
  Type: integer
  
  UNIX timestamp when playback started.
  
  Example:
  
  ```json
  1609480800
  ```

- `duration` (required)
  Type: integer
  
  Duration of the song in seconds
  
  Example:
  
  ```json
  180
  ```

- `playlist` (required)
  Type: string; nullable
  
  Indicates the playlist that the song was played from, if available, or empty string if not.
  
  Example:
  
  ```json
  "Top 100"
  ```

- `playlist_chain` (required)
  Type: array; nullable
  
  Names of the playlist group chain the song was picked through if played from a group
  
  Example:
  
  ```json
  [
    "Main Rotation",
    "Rock",
    "Rock Hits"
  ]
  ```
  
  Items:
    Type: string

- `playlist_source` (required)
  Type: unknown; nullable
  
  The source of the playlist that the song was played from, if available.
  
  oneOf:
    Reference: [PlaylistSources](https://sourcey-azuracast.pages.dev/docs/api/models/playlistsources/index.md); Type: string
    
    enum: ["songs","playlists","remote_url","requests"]

- `streamer` (required)
  Type: string; nullable
  
  Indicates the current streamer that was connected, if available, or empty string if not.
  
  Example:
  
  ```json
  "Test DJ"
  ```

- `is_request` (required)
  Type: boolean
  
  Indicates whether the song is a listener request.

- `song` (required)
  Reference: [Api_Song](https://sourcey-azuracast.pages.dev/docs/api/models/api-song/index.md); Type: object