r/redditdev • u/redtaboo • May 11 '26
Reddit API Upcoming changes to the comment ID endpoint
Hola devs!
Just a quick note on an upcoming change to how comment IDs will increase going forward.
TL;DR: if you have anything in your code that expects comment IDs to be fewer than 8 characters you will need to make an adjustment.
Technical gibberish details:
- New comment IDs will continue to be 64-bit integers and base36-encoded, but will not be monotonically increasing anymore
- The key visible difference is that the new base36-encoded comment IDs will be up to 13 characters long (e.g. 19gsnavtu46ip), compared to the current 7-8 characters
- With the t1_ prefix, the new base36-encoded comment IDs will be up to 16 characters long (e.g. t1_19gsnavtu46ip)
- Older comment IDs are not changing, and referencing them will not break anything
This change will start rolling out the week of May 18th. Let me know if you have any questions about this change.
29
Upvotes
•
u/redtaboo May 12 '26
Heya folks, just an update here!
We've decided to push back the timeline here so we (and you all) have the time you need to make any changes needed and so we can better understand use cases where things may break completely so we can see how we might mitigate those issues. What this means to you:
Thanks again for all the questions and comments folks, cheers!
42
u/Watchful1 RemindMeBot & UpdateMeBot May 11 '26 edited May 11 '26
This will break RemindMeBot. It depends on the monotonically increasing comment id to find the trigger word in new comments.
It will also break pushshift completely, which many moderators still depend on. Unless you gave pushshift the firehose feed sometime since the new guys took over, which seems unlikely.
I totally understand why you're doing this and support it, stopping the scraping of reddit is important and obviously a high priority for the company. But this will break many tools that don't currently have replacements natively in reddit or devvit.
9
u/PitchforkAssistant May 11 '26
Is this type of change planned for any other IDs? Posts IDs in particular come to mind, since you probably don't want those to be predictable either.
6
u/shiruken May 11 '26
Has the impact on Devvit apps been checked? I could see potential issues if anyone was manually slicing comment thing ids out of urls.
8
u/CR29-22-2805 May 12 '26
Given that this is a time-sensitive issue, the moderators at Bot Bouncer will need advice on workflow adjustments necessary to accommodate this change on May 18, which is less than a week away.
If PushShift will have access to the firehose feeds, then the Bot Bouncer moderators will need PushShift access to proceed without any hiccups.
If PushShift will not have access, then much of our workflow will be stymied on May 18.
4
u/[deleted] May 11 '26
"but will not be monotonically increasing anymore"
Could you provide more details? Will the ID assignments for comments be completely random?
And what is the motivation for change?
4
u/Merari01 May 12 '26
Will this break toolbox?
4
u/ibid-11962 May 12 '26
Will this break pushshift?
4
u/46009361 May 18 '26
Will this make the report form harder to fill out?
Sometimes, when I fill that form and need to provide another comment as valuable context, I have to deliberately shorten Reddit URLs to keep the entire report reason under the 200-character limit, especially if I want a report acted on faster without going through the support form using Zendesk.
Changing
reddit.com/comments/19gsnav/_/navtu46toreddit.com/comments/19gsnav/_/19gsnavtu46ipcan easily go over the limit in the middle of a longer sentence.3
u/VastZealousideal885 Jun 28 '26 edited Jun 28 '26
Oh cool another nail in reddit's coffin.
2
u/Jakeable May 22 '26
I totally get why you're doing this. But at the same time it makes me sad inside since I always thought it was cool how base 36 thing IDs directly corresponded to base 10 numbers.
I'm glad you're maintaining backwards compatibility, and the thing-prefixes, though.
1
u/Overall_Canary_5821 Jun 01 '26
2
1
u/Jazzy_Josh Jun 11 '26
Hi,
The reddit dev team previously stated that existing API users will not be affected but my API app no longer exists in my account, could you publicly explain the change, thanks?
-5
u/[deleted] May 11 '26
[removed] — view removed comment