Bug, v5 API returns _id as string for featured channels

Doing a GET https://api.twitch.tv/kraken/streams/featured returns all stream and channel _id as string instead of int/long.

In v5, this isn’t a bug. We announced that all IDs should be treated as strings.

All ID fields should be treated as strings instead of integers. Note: this is an ongoing change, so there might be some outliers.

Then turn it around, it is a bug still then because all or (some) of your other V5 end points return it as int… I just noticed this, because featured was the only one returning it as a string, all others not.

https://api.twitch.tv/kraken/search/channels/?query= does return it as int.
https://api.twitch.tv/kraken/users?login= does return it as int.

The users endpoint returns it as a string for me. https://api.twitch.tv/kraken/users?login=dallas&api_version=5&client_id=mkz8q57of9hpecbduit36itpvles71q

For search, you’re correct. Hence the note of, “This is an ongoing change, so there might be some outliers.” Many, many teams own the set of endpoints inside of Kraken, and it takes time to get the updates to each service. That’s why we issued general guidance to treat them all as strings.

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