# Spotify Node - getMyCurrentPlaybackState

**URL:** <https://discourse.nodered.org/t/spotify-node-getmycurrentplaybackstate/58262>\
**Category:** General\
**Created:** [13 February 2022 13:17 UTC](https://discourse.nodered.org/t/spotify-node-getmycurrentplaybackstate/58262 "2022-02-13T13:17:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tico](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@Tico](https://discourse.nodered.org/u/Tico)\
**Post date:** [13 February 2022 13:17 UTC](https://discourse.nodered.org/t/spotify-node-getmycurrentplaybackstate/58262/1 "2022-02-13T13:17:53Z")

</div>

The Spotify/Node-Red documents have limited examples as depicted here -

> **[node-red-contrib-spotify](https://flows.nodered.org/node/node-red-contrib-spotify)**
>
> Node-RED node for Spotify

I've successfully setup the node to retrieve the example given 'getArtistAlbums'. This looks like this in Node-Red.

 ![getArtistAlbums](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/b/3bccfec3536585e9c2866f288323b5d849581fce.png)

I'm trying to use the node 'getMyCurrentPlaybackState'. The Spotify API explains this as follows -

 ![getCurrentPlaybackState](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/7/676c18c8cc73c1d8589e71e3da1ae2c93e59c3d3.png)

When I trigger the inject node, I simply see a Unix timestamp at the debug. I'm at a bit of a loss to understand how to properly format the Function node.

For info, here's the API info for the successful 'getArtistAlbums'. I'm trying to use the two sets of information to work out what is required for the msg.params.

 ![getArtistAlbums_2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/3/43b1b3dfe4f0564379e4c066aac713f437890e3b.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 April 2022 13:18 UTC](https://discourse.nodered.org/t/spotify-node-getmycurrentplaybackstate/58262/2 "2022-04-14T13:18:11Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
