Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

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/ 4 years ago  in Social & Random

Type a product name