🌐
Reddit
reddit.com › r/redditdev › at "100 queries per minute per oauth client id if you are using oauth authentication" in the free zone, what are 3p apps actually doing to surpass this?
r/redditdev on Reddit: At "100 queries per minute per OAuth client id if you are using OAuth authentication" in the free zone, what are 3P apps actually doing to surpass this?
April 1, 2023 -

With sufficient time, I like to think they could refactor and find a way to stay in the free range for most users and offer a paid upgrade to those exceeding it or else put them in request cooldown periodically.

Does anyone know if the apps typically do server side caching on hot threads so they can serve slightly stale but probably accurate results? Can you employ background service workers in the app so that data fetching can be distributed among all users, whether active or not? Like, could I, the user, give the app permissions to be promiscuous in its api calls on my behalf so that it could cache data that's beneficial to all of the app's users whether I would use the response data or not?

Again, the problem is certainly one of sufficient notice and general fuckery on the part of reddit admins, but in strictly an engineering sense, this appears to be a challenge, not a showstopper. I don't blame any devs who have had enough of the nonsense and pull the plug, but I would hate for some of the smaller app developers who are not facing multimillion dollar fees to throw in the towel if there are ways to make things work. Maybe the bigger apps like Apollo and RiF could open source their projects for the benefit of those willing to try to keep the baby and throw out the bathwater.

🌐
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
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

🌐
Better Auth
better-auth.com › docs › authentication › reddit
Reddit | Better Auth
To use Reddit sign in, you need a client ID and client secret.
Find elsewhere
🌐
GitHub
github.com › reddit-archive › reddit › wiki › OAuth2
OAuth2 · reddit-archive/reddit Wiki · GitHub
reddit may choose to use this ID to generate aggregate data about user counts. Clients that wish to remain anonymous should use the value DO_NOT_TRACK_THIS_DEVICE. Why should I bother with all this, when I can just request API data for logged out users via https://www.reddit.com? Great question! For one, using app-only OAuth may allow you to simplify your code - you can just always hit https://oauth.reddit.com with an Authorization header, rather than changing domains based on logged-out status.
Author   reddit-archive
🌐
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.
🌐
Stateful
stateful.com › blog › reddit-oauth
Reddit OAuth: Let Users Sign into Your App With Reddit Login • Stateful
August 16, 2022 - Redirect Uri: This is the URL that ... the “Create app” button to complete the process. Next, the Reddit developer page will provide a secret key and client ID....
Top answer
1 of 2
24

As of right now, you cannot retrieve a permanent access token. You have 2 options that come close.

The first is to request a "refresh" token when using the standard OAuth flow. That's what you're doing by sending "duration" as "permanent" in your code. The refresh token can be used to automatically retrieve new 1 hour access tokens without user intervention; the only manual steps are on the initial retrieval of the refresh token.

The second alternative, which applies only when writing a script for personal use, is to use the password grant type. The steps are described in more detail on reddit's "OAuth Quick Start" wiki page, but I'll summarize here:

  1. Create an OAuth client (under https://www.reddit.com/prefs/apps) with type = "script"
  2. Make a request to https://www.reddit.com/api/v1/access_token with POST parameters grant_type=password&username=<USERNAME>&password=<PASSWORD>. Send your client ID and secret as HTTP basic authentication. <USERNAME> must be registered as a developer of the OAuth 2 client ID you send.
2 of 2
17

A client_id and client_secret can be generated for a reddit account by going to https://www.reddit.com/prefs/apps and creating an app:


The part I have hidden is my client_id.

Then you can use a client like praw to access reddit e.g. with Python:

import praw
r = praw.Reddit(client_id='insert id here',
                client_secret='insert secret here',
                user_agent='insert user agent')
page = r.subreddit('aww')
top_posts = page.hot(limit=None)
for post in top_posts:
    print(post.title, post.ups)

You could use your current browser's user agent, which can be easily found by google searching "what is my user agent" (among other ways).

🌐
Reddit
reddit.com › r/redditdev › are the client id's and client secrets for oauth always the same length or can they vary slightly?
r/redditdev on Reddit: Are the client ID's and client secrets for OAuth always the same length or can they vary slightly?
August 1, 2017 - However I wouldn't hard-code anything to only allow Client IDs of 14 char and a client Secret of 27 char in case reddit changes anything in the future. ... Okay thanks, that's fine. I don't plan on making this program for lots of people to use anyway, it's more of a personal project that people can use if they like. I just wanted some error checking so that the program returns a custom error message if the user doesn't enter the correct oauth ...
🌐
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.

🌐
Reddit
reddit.com › r/revancedapp › guide: how to use reddit clients after new api access policy
r/revancedapp on Reddit: Guide: How to use Reddit clients after new API access policy
2 weeks ago -

⚠️ This guide may only work for Infinity for Reddit+. For Boost, use u/wchill*'s guide:* https://www.reddit.com/r/BoostForReddit/comments/1pjl5en/comment/nte9t5e/

Part 1:

  1. Install the original, non-modified version of Infinity. Using Infinity for this part is required. You can pick your desired client on Part 2.

  2. Click the hamburger (three line) icon, click "Press here to login", then click "Add an account".

  3. Login to your account and allow the client to access your account. (If it prompts you to buy a subscription after clicking "Accept", just close the app)

  4. You should now receive an email after allowing the client. Copy the "App ID" string from the email.

  5. Uninstall Infinity.

Part 2: Patch configurations

  1. Open the ReVanced app.

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

  3. Tap the "Storage" button and select your desired client's (doesn't have to be Infinity) APK file.

  4. Tap "Selected patches" and make sure the two patches are checked.

  5. Click the settings button beside the "Spoof client" patch.

  6. Replace "null" with your "App ID" key. The App ID in the email is *universal*, meaning you can use it for any client, not just Infinity. (yes, "App ID" = "Client ID)

  7. Click "Save", then click "Done".

Part 3: Patch, Install, and Login

  1. Click "Patch".

  2. Wait for it to patch. (around 15-20 seconds)

  3. When it finishes, click "Install".

  4. Open the patched app and login. (If login throws an error, try using Proton VPN and use a European country)

  5. Done!

🌐
Read the Docs
praw.readthedocs.io › en › stable › getting_started › authentication.html
Authenticating via OAuth - PRAW 7.7.1 documentation
While password flow applications do not involve a redirect URI, Reddit still requires that you provide one when registering your script application – http://localhost:8080 is a simple one to use. In order to use a password flow application with PRAW you need four pieces of information: ... The client ID is at least a 14-character string listed just under “personal use script” for the desired developed application
🌐
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 - 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'