๐ŸŒ
Reddit
reddit.com โ€บ r/redditdev โ€บ client id and secret
r/redditdev on Reddit: Client ID and Secret
January 31, 2023 -

Hey guys!

I've been trying to get a client ID and Secret for a project with PRAW, but the provided link (https://www.reddit.com/prefs/apps) doesn't work. Someone experiencing this? Is this link up-to-date or broken?

I can only access a page that says: "Welcome back! You are already logged in and will be redirected back to Reddit shortly. If you are not redirected automatically, follow this link."

Clicking on "this link" does nothing.

Any help appreciated. Thank you :D

๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ how-to-get-client_id-and-client_secret-for-python-reddit-api-registration
How to get client_id and client_secret for Python Reddit API registration ? - GeeksforGeeks
July 12, 2025 - reddit = praw.Reddit(client_id ='my client id', client_secret ='my client secret', user_agent ='my user agent', username ='my username', password ='my password') In order to get the information for these fields: Create a Reddit account.
๐ŸŒ
Better Auth
better-auth.com โ€บ docs โ€บ authentication โ€บ reddit
Reddit | Better Auth
export const auth = betterAuth({ socialProviders: { reddit: { clientId: process.env.REDDIT_CLIENT_ID as string, clientSecret: process.env.REDDIT_CLIENT_SECRET as string, duration: "permanent", scope: ["read", "submit"] // Add required scopes }, }, })
๐ŸŒ
Heateor
support.heateor.com โ€บ home โ€บ how to get reddit client id and secret?
How to Get Reddit Client ID and Secret? - Heateor - Support Documents
September 20, 2021 - Copy Reddit Client ID and Reddit Client Secret and save these at the plugin configuration page
๐ŸŒ
Reddit
reddit.com โ€บ r/revancedapp โ€บ full comprehensive instructions on getting a new client id for every third party reddit app
r/revancedapp on Reddit: Full comprehensive instructions on getting a new client ID for every third party reddit app
November 25, 2024 -

Here's a step-by-step guide to patching third-party Reddit apps with ReVanced to get around Reddit's API changes: Prerequisites:

  • ReVanced Manager: Download and install the latest version of ReVanced Manager from their official website or a trusted source.

  • APK of your Reddit app: Download the APK file of the Reddit app you want to patch from a reliable source like APKMirror. It's generally recommended to use a version that's one or two releases behind the latest one, as very recent versions might not be compatible with ReVanced yet.

Steps:

  • Create a Reddit App:

    • Go to this website: https://www.reddit.com/prefs/apps/

    • Log in to your Reddit account.

    • Click on "are you a developer? create an app..."

    • Give your app a name (it can be anything).

    • Select "installed app" as the type.

    • Crucial Step: In the "redirect uri" field, enter the correct redirect URL for your chosen Reddit app. I provided a list in my previous response. Make sure it's accurate!

    • Click "create app."

    • Copy the "client ID" that's generatedโ€”you'll need it later.

  • Patch the App with ReVanced Manager:

    • Open ReVanced Manager.

    • Tap "Patcher," then "Select an application."

    • Tap the storage icon and select the APK file you downloaded.

    • Tap "Next" and wait for the app to be processed.

    • On the "Select Patches" screen, choose "Default."

    • Tap "Next" and select "Spoof client."

    • Crucial Step: In the "Client ID" field, paste the client ID you copied earlier.

    • Tap "Patch" and wait for the process to complete.

  • Install the Patched APK:

    • Once patching is finished, install the patched APK. You might need to allow installation from unknown sources in your Android settings.

    • If you have the original version of the app installed, uninstall it first.

  • Log in and Enjoy:

    • Open the patched Reddit app and log in. You should be able to use it without any issues!

Important Notes:

  • Redirect URI is Key: The redirect URI needs to be an exact match. Double-check for typos!

  • App Updates: If your app updates automatically, you might need to repeat this process with the newer APK. You can usually disable automatic updates in the app's settings.

Troubleshooting: If you encounter problems, try these:

  • Clear the cache and data for ReVanced Manager.

  • Use a slightly older version of the Reddit app APK.

  • Check the ReVanced subreddit or Discord for

IHere's a list of common redirect URLs for popular Reddit clients, along with some important notes: Important Notes:

  • Case Sensitivity: These URLs are case-sensitive, so make sure you enter them exactly as shown.

  • "http" or "https": Reddit now requires redirect URLs to start with http:// or https://. Some older guides may list different formats, but those are likely outdated.

  • App-Specific Instructions: Always check for any specific instructions or updated URLs provided by your chosen Reddit client. Redirect URLs:

  • BaconReader: http://baconreader.com/auth

  • Boost for Reddit: http://rubenmayayo.com

  • Infinity for Reddit: https://infinity-for-reddit.com/

  • Joey for Reddit: https://127.0.0.1:65023/authorize_callback

  • Relay for Reddit: dbrady://relay

  • Reddit is Fun: redditisfun://auth

  • Slide for Reddit: http://www.ccrama.me

  • Sync for Reddit: http://redditsync/auth

Troubleshooting:

  • Invalid Redirect URI Error: If you encounter this error, double-check the URL for typos and case sensitivity. Also, make sure you're using the most up-to-date URL from your app's documentation.

  • ReVanced Issues: If you're using ReVanced, ensure you have the latest version and follow their specific instructions for patching your Reddit app and setting up the client ID.

Find elsewhere
๐ŸŒ
Reddit
reddit.com โ€บ r/redditdev โ€บ should i keep my client id and secret.. well secret?
r/redditdev on Reddit: Should I keep my client ID and secret.. well secret?
January 25, 2021 -

I published a PRAW project on my github and I left those (+my user agent but not my refresh token) in the code in plain text. I didn't think it was an issue at the time, as they could just use my app instance to run the program, however later I thought that might be a security issue?

If someone were to take my client ID and secret, they shouldn't be able to authorize it with my reddit account or use my account permissions or do anything bad (the permissions are only identity and read anyway)

The worst thing I can think of is using my app instance and user agent to create a bot that breaks the TOS of the API and potentially get me in trouble.

๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 72256302 โ€บ how-to-get-the-client-id-client-secret-and-user-agent-parameters-from-reddit-wi
How to get the client_id, client_secret and user_agent parameters from Reddit with discord.py - Stack Overflow
My problem is that I need 3 parameters, client_id, client_secret and user_agent, which I don't know how to get. Here's the code I found: reddit = praw.Reddit(client_id='CLIENT_ID HERE', client_secret='CLIENT_SECRET HERE', user_agent='USER_AGENT HERE') @bot.command() async def meme(): memes_submissions = reddit.subreddit('memes').hot() post_to_pick = random.randint(1, 10) for i in range(0, post_to_pick): submission = next(x for x in memes_submissions if not x.stickied) await bot.say(submission.url)
๐ŸŒ
Reddit
reddit.com โ€บ r/openbb โ€บ how to generate and authorize reddit api credentials for use with the openbb terminal.
r/openBB on Reddit: How to Generate and Authorize Reddit API Credentials for use With the OpenBB Terminal.
September 12, 2022 - Just add the following lines, replacing with your credentials and keeping the single quotation marks encapsulating them: OPENBB_API_REDDIT_CLIENT_ID='CLIENT_ID' OPENBB_API_REDDIT_CLIENT_SECRET='CLIENT_SECRET' OPENBB_API_REDDIT_USERNAME='USERNAME' OPENBB_API_REDDIT_PASSWORD='PASSWORD' OPENBB_API_REDDIT_USER_AGENT='THE_APPLICATION_NAME'
๐ŸŒ
Read the Docs
praw.readthedocs.io โ€บ en โ€บ stable โ€บ getting_started โ€บ quick_start.html
Quick Start - PRAW 7.7.1 documentation
Again, you may choose to provide these by passing in keyword arguments username and password when you call the Reddit initializer, like the following: import praw reddit = praw.Reddit( client_id="my client id", client_secret="my client secret", password="my password", user_agent="my user agent", username="my username", ) print(reddit.read_only) # Output: False
๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ where to store client_id and client_secret
r/learnprogramming on Reddit: Where to store client_id and client_secret
December 10, 2023 -

Hello guys. New programming learning about backend (SpringBoot). I am building a simple library app and am using Google Oauth2 for log in and out, and planning to host it using AWS with docker. I want to ask, what are some of the most popular ways to store client_scret in a safe way?

I tried googling but never seems to find a straight answer. There must be like, top 3 most popular ways to store client secret, or something.

Please help

Top answer
1 of 3
2
You can't really get much "safer" than just storing these credentials in a file or environment variable on your server. No matter what you do, the client ID and client secret must be accessible to your server-side code. So for instance, there is little point in encrypting them, because your program would also need to have the corresponding decryption key. If your server was compromised, then an attacker would be able to get both the encrypted credentials and the key, so this is just security by obscurity. So the important thing is not how you store the credentials on the server itself, but minimizing the number of possible other ways they could be compromised. For instance: Make sure your application only serves static files from one particular directory, and that your credentials aren't stored in that directory. Poorly-written static file servers may be vulnerable to path traversal attacks. Don't store a copy of the production credentials in your Git repo. If other users have access to the same server, then don't pass credentials on the command line (where they could be viewed using tools like ps). Pass them in environment variables, or store them in files with permissions set to limit who can read them. Don't accidentally generate debugging output that might cause your credentials to be written to log files.
2 of 3
1
On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge. If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options: Limiting your involvement with Reddit, or Temporarily refraining from using Reddit Cancelling your subscription of Reddit Premium as a way to voice your protest. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
๐ŸŒ
Readthedocs
redditclient.readthedocs.io โ€บ en โ€บ latest โ€บ oauth
Oauth Setup - Reddit::Client Documentation
Use your client_id and secret in your script. Here's a working example script. (The credentials are fake, obviously.) use Reddit::Client; my $reddit = new Reddit::Client( user_agent => "test /u/username", client_id => "DFhtrhBgfhhRTd", secret => "KrDNsbeffdbILOdgbgSvSBsbfFs", username => "reddit_username", password => "reddit_password" ); my $me = $reddit->me(); print "You've got mail!" if $me->{has_mail};
๐ŸŒ
n8n
docs.n8n.io โ€บ integrations โ€บ builtin โ€บ credentials โ€บ reddit
Reddit credentials | n8n Docs
Visit the previous link or go to your profile > Settings > Safety & Privacy > Manage third-party app authorization > are you a developer? create an app. ... Copy the OAuth Callback URL from n8n and use it as your app's redirect uri. The app's client ID displays underneath your app name.
๐ŸŒ
Data365
data365.co โ€บ blog โ€บ how-to-get-reddit-api-key
How to Get Reddit API Key: Step-by-Step or Skip-the-Setup? | Data365.co
Youโ€™ll find it just beneath the name of your app on the Reddit apps page. Itโ€™s usually a short alphanumeric string, something like abcDEF123XYZ78. Client Secret is the private key tied to your app.
๐ŸŒ
Reddit
reddit.com โ€บ r/redditdev โ€บ couldn't find client secret
r/redditdev on Reddit: Couldn't find client secret
July 2, 2024 -

I can successfully see the client id but couldn't see client secret after I clicked on "edit". Only basic informations (app name, descriptions, etc) are shown.