Announcements
From 28th September 2026, Community private messages will no longer be available. If you have any private messages you'd like to keep, please save or copy them using these steps before this date. Thank you.

Help Wizard

Step 1

NEXT STEP

Current Playback API - progress_ms: integer or string?

Current Playback API - progress_ms: integer or string?

The web API supports getting information about the user's current playback state. The docs for this endpoint  detail the "progress_ms". This property contains the "Progress into the currently playing track" and is specified to be an integer. However, in the example JSON the property's value is of type string:

 

 

{
  "progress_ms": "44272"
}

 

 

 

Is this example incorrect, is the documentation incorrect, or something else? I know that some other APIs use strings to represent large numbers because of Javascript limitations.

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 5 years ago  in Social & Random