r/redditdev • u/redtaboo • Mar 03 '25
Reddit API Please ensure your user-agents are unique and descriptive
Hello fellow developers,
We wanted to remind folks that our API Rules require you to implement user-agents that are unique and descriptive:
Change your client's User-Agent string to something unique and descriptive, including the target platform, a unique application identifier, a version string, and your username as contact information, in the following format:
<platform>:<app ID>:<version string> (by /u/<reddit username>)
What does this mean in practice? It means if your user-agent is, for instance, nothing but a set of integers or random characters, then it's very likely that we've blocked or will block your bot. If your user-agent is otherwise obscured and not unique and descriptive, you might also get blocked if your bot hasn’t already.
What should you do in that case? Update your user-agent and refamiliarize yourself with our API Rules.
Thank you for your understanding and happy developing!
7
u/g-money-cheats Mar 03 '25
Thanks for the reminder!
I've had a user agent set (in that exact format) for years, but it has always shown as "unknown user-agent" on the Account Activity page. Is that expected?
3
u/DinoHawaii2021 Mar 03 '25
so would (bot) by u/(owner) be descriptive, or do I need my format changed
2
u/dkozinn Mar 03 '25
Hey /u/redtaboo -- I have a small number of bots that are used for moderation purposes (in other words, they run on my server and aren't used by other redditors). Is there a preferred string to use for platform for those? Something like "backend" maybe?
1
u/__yoshikage_kira Devvit Beta Tester Mar 03 '25
In my limited experience, I noticed that mentioning the word bot leads to higher rate limiting. Do you know what's up with that?
1
u/sparr Mar 04 '25
Surely you mean block based on user agent, and not [shadow]ban a bot account that makes this mistake?
1
u/collins_amber Mar 10 '25
Idk how to do any of it. I just want my 3rd party app to work :(
1
u/skeddles Aug 08 '25
no