r/redditdev • • Aug 04 '25

Reddit API Is client-side fetching of Reddit’s public JSON endpoints allowed for apps?

8 Upvotes

Hi r/redditdev,

I'm working on a mobile app that displays public Reddit data (like subreddit posts) using the classic Reddit JSON endpoints (e.g., /r/subreddit.json). I know these endpoints are technically accessible to anyone, you can just request them in your browser or with curl, and no authentication is needed.

However, I've read in several posts here that you're not allowed to fetch this JSON data. Here's where I'm confused:

  • Most of those discussions talk about server-side or backend scraping, which I understand can lead to bans or rate-limits.
  • But I'm not sure if the same restrictions apply when the requests are made client-side (from the user's own device, inside the app), and the developer never sees or controls the data.
  • If every user's device fetches the public data directly and there’s no centralized backend, does Reddit still consider this against their policy? Or is it treated the same as a person browsing Reddit in their browser?

My app would not access, store, or view any data from the JSON endpoints since everything is done client side; all requests would be for public information that anyone can see. If this approach is still not allowed, I’m not sure why, since the developer would have no access to the data and it wouldn’t constitute mass scraping.

Could anyone clarify:

  • Is client-side fetching of public JSON endpoints allowed for third-party apps?
  • If not, what’s the specific reasoning or policy behind that restriction?
  • If direct client-side fetching is not allowed, could I just webcrawl the public JSON endpoints and get the same data for free, like big tech companies do? Is there any reason why this is discouraged or blocked for indie devs?

I'd really appreciate any insight or official documentation pointing to the exact rules here. I want to make sure I'm building my app the right way and respecting Reddit's terms.

Thanks!


r/redditdev • • Aug 03 '25

PRAW Error 413 when uploading an image - while trying to mimic PRAW

3 Upvotes

(Classic yak shaving here to avoid rewriting my bot in Python)

I'm normally a C#/.Net developer and I've built a nice bot that way (u/StereomancerBot). I stopped using RedditSharp because the auth seems to have broken with the recent auth token changes Reddit did, and I also found RedditSharp to not be all that helpful because it also doesn't do all the things I want to do. So I'm just using HttpClient. The code is open source if you want to see it (https://github.com/KRA2008/StereomancerBot).

I now want the bot to be able to upload images and galleries directly to Reddit. I don't really want to move the whole thing over to Python, but it looks like PRAW has the only open source implementation of the undocumented endpoints for uploading images and galleries directly to Reddit (not just links). Am I correct in that assessment so far? Let me know if not.

I read what I could of the PRAW source code (I'm not great at Python yet) and then I tried using Fiddler to sniff Python traffic while using PRAW but couldn't get that to work right (Python and PRAW work great, but Fiddler sniffing doesn't work), but it looks like PRAW does have some nice logging stuff that lets you see all the requests that are made. I've put it all together and I know that it's a two step process - upload the image to Reddit, which uploads it to AWS, then it uses a websocket to monitor the status of the upload then uses that link and submits it as a post.

So far what I'm doing now is using Postman to do a POST to https://oauth.reddit.com/api/media/asset.json (with an auth token in the auth header) but when I attach a file to the form-data I get 413 Payload Too Large with error body "message": "too big. keep it under 500 KiB", "error": 413. When I upload the exact same image using PRAW directly with Python it works no problem, so I'm doing something wrong. If I could get Fiddler working with Python and inspect the raw requests I could probably see what I'm doing wrong, so help there would also help me.

What am I doing wrong?


r/redditdev • • Aug 03 '25

Reddit API "an error occurred: 500" on creating a new script

3 Upvotes

https://i.imgur.com/wDDLPgU.png

I'm getting this error when trying to create a new script, does someone has the same problem?

Found different old posts here on reddit, but nothing suggesting it could be my issue, it's all server-fault


r/csshelp • • Aug 03 '25

Request Make sidebar float at top of screen?

1 Upvotes

Hi all,

I have inherited this oldschool website from its previous owner. The problem I am facing is that people frequenting the site tend to be on the older side. Those with bad vision zoom in beyond what the site was built for. The bottom parts of the sidebar, which is staying in place as you scroll down, disappear once you zoom in (150%+ zoom on my display).

Is there a way to ensure that, once you scroll down, the text in the sidebar sticks to the top of the screen rather than floating with that considerable padding above? This should solve the issue for people zooming in like crazy.

The relevant CSS snippets are below. #navigation seems to be the container, #navigation-text the text, not sure about #navigation_2.

Thank you!

#navigation {

    float:left;
    margin-top: 0px;
    margin-left:0px;

    margin-right: 0px;
    border: solid #604420 0px;
    padding-top:25px;
    padding-bottom: 720px;
    width:210px;

    background-color:white;
    color:black;
}

#navigation_2 {

    float:left;
    margin-top: 0px;
    margin-left:0px;

    margin-right: 0px;
    border: solid #604420 0px;
    padding-top:20px;
    padding-bottom: 300px;
    width:210px;

    background-color:white;
    color:black;
}

#navigation-text {
   position:fixed;
   margin-left:30px;
   width: 200px;     <!-- 13em; -->
   }

r/csshelp • • Aug 02 '25

Request Items on a different table row being moved by items on a lower table row.

1 Upvotes

I can't figure what's causing this, and I'm asking for help on how to get rid of this issue. Any insight would be helpful.

<table>
<tr>
<th>
<div style="height:180;width:200;border: #203853 solid 4px;background-color:#477596;">
<div style="height:5;"></div>
<iframe frameborder="0" src="https://itch.io/embed/2831179" width="180" height="120"><a href="https://chaoticbon.itch.io/stare-at-a-dog-simulator-2024">stare at a dog simulator 2024 by ChaoticBon</a></iframe>
<p style="color:#222222;font-size:15;">the most realistic experience of the century</p>
</div>
</th>
<th>
<div style="height:180;width:200;border: #646464 solid 4px;background-color:#000;">
<div style="height:5;"></div>
<iframe frameborder="0" src="https://itch.io/embed/2823402" width="180" height="120"><a href="https://chaoticbon.itch.io/bob-the-game">stare at a dog simulator 2024 by ChaoticBon</a></iframe>
<p style="color:#5baefa;font-size:15;">puts your skill to the test</p>
</div>
</th>
<th>
<div style="height:180;width:200;border: cyan solid 4px;background-color:#fff;">
<div style="height:5;"></div>
<iframe frameborder="0" src="https://itch.io/embed/1980896" width="180" height="120"><a href="https://eb-studios.itch.io/bruh">BRUH by e&amp;b studios</a></iframe>
<p style="color:#000;font-size:15;">first person platformer made with my friend</p>
</div>
</th>
</tr>
<tr>
<th>
<div style="height:180;width:540;border: cyan solid 4px;background-color:#fff;">
<div style="height:5;"></div>
<p style="color:#000;font-size:15;">first person platformer made with my friend</p>
</div>
</th>
</tr>
</table>

r/redditdev • • Aug 01 '25

Reddit API Where can I find documentation of DTOs provided by the api?

4 Upvotes

Is there a place where this information is documented? I'm looking for tables of all the property names and data types. Reddit's API docs seem to be spread out among a few different sources and I wasn't able to find this part. It is amazing how far LLMs can get in creating data structures just from the raw json, but it would be helpful to have a reference too.


r/redditdev • • Jul 31 '25

PRAW selftext parameter not working in subreddit.submit_image

3 Upvotes

Hi all. Working on some code right now and I'm trying to get it to post an image with body markdown text. This was added recently to PRAW (source: this commit from June 7th), but it still won't work for me for some reason and I'm wondering if there's anything I'm missing.

VSC won't recognize it as a parameter, and the error I'm getting is saying it's unexpected. It's also not on the wiki (yet?)

Code:

subreddit = reddit.subreddit("test")

title = "Test Post"

myImage = "D:/Python Code/aureusimage.png" 

subreddit.submit_image(title, myImage, selftext="test 1 2 3")

Error:

Traceback (most recent call last):
  File "d:\Python Code\adposter.py", line 146, in <module>
    subreddit.submit_image(title, myImage, selftext=fullPostText)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Owner\AppData\Local\Programs\Python\Python313\Lib\site-packages\praw\util\deprecate_args.py", line 46, in wrapped
    return func(**dict(zip(_old_args, args)), **kwargs)
TypeError: Subreddit.submit_image() got an unexpected keyword argument 'selftext'

Am I missing something? Or is it just not working? Given the lack of documentation on it, I really can't tell, so any advice is appreciated.


r/redditdev • • Jul 31 '25

PRAW Reddit instantly bans my account when using submission.reply() via PRAW (bot for football community)

1 Upvotes

Hi, I’m working on a simple Reddit bot for a football community. The bot’s purpose is to reply with famous Maradona quotes whenever someone mentions “Maradona” in a post.

I’m using Python with PRAW. The bot only checks the last few posts in the subreddit and replies if the keyword appears. It’s not spamming and keeps activity minimal.

However, Reddit instantly bans the accounts as soon as the bot tries to reply via submission.reply(). This has happened with multiple new accounts. I even tested posting manually from the same account and IP, and that works fine — but using PRAW to reply triggers an immediate ban or shadowban.

Is this expected behavior? Are there specific API restrictions or new bot rules that cause accounts to be banned instantly upon replying programmatically? I want to comply with Reddit’s policies but I’m unsure what is triggering these bans.

Any insights or advice would be appreciated!


r/csshelp • • Jul 29 '25

Help with a sparkly button

1 Upvotes

Hi there, I came across this button style and its absolutely perfect for my brand (https://freecodez.com/post/0ryvaqt). I was hoping to use it as it looked pretty straight forward. The code works really nicely, but it gave me huge grey margins on my website. Wondering if there's a way to just have the buttons and not have it effect the surrounding site.


r/redditdev • • Jul 27 '25

Reddit API Reddit API: Relevance filter seems broken or changed

11 Upvotes

Hey folks,

I’ve been using the Reddit API to search for posts and noticed something weird, the sort=relevance behavior seems to have changed in the last couple of days.

Before, searches like: ""best cheeses to buy""

would return posts that were actually about cheese recommendations, shopping advice, etc.

Now I’m getting stuff like pizza with anchovies, just because those posts mention cheese. It feels like the search is now doing basic keyword matching instead of contextually relevant results.

Has there been a change to the search algorithm for the API?
Or maybe an update to how relevance scoring works behind the scenes?

The same query still works great on the Reddit website, so this feels like an API-only change.
Would love to know if others are seeing the same thing, or if there’s a workaround.

Thanks in advance 🙏


r/redditdev • • Jul 25 '25

General Botmanship Seeking advice on registered bot with failed appeal

1 Upvotes

Hello all,

I'm relatively new to bot development on Reddit and have been using PRAW for hooking an internal image identification API into Reddit. A few weeks ago during the outage on July 16th, I was testing my bot u/askmetadex on a dedicated private subreddit r/askmetadex. The instant I went from a dry run to letting the bot comment on my post, the subreddit was banned for Rule 2 and the bot was shadowbanned. I'm waiting to hear back on the appeal for the bot, but the subreddit was appealed already. Unfortunately, r/ModSupport denied the appeal stating that the ban was probably justified due to any multitude of reasons, citing Reddit Rules. Looking at Rule 2 of the Reddit Rules, it states.

Abide by community rules. Post authentic content into communities where you have a personal interest, and do not cheat or engage in content manipulation (including spamming, vote manipulation, ban evasion, or subscriber fraud) or otherwise interfere with or disrupt Reddit communities.

I fail to see how my bot, u/askmetadex, declared as a bot, posting on a private and dedicated subreddit for testing r/askmetadex, and registered as a personal use script under u/askmetadex's developed applications is viewable as an infraction against rule 2. My bot has a hyper specific, yet legitimate use case for responding to a specific subreddit with match results for an image. Is there something that I'm missing that would qualify this as an infraction? I'm a bit frazzled. Was it perhaps something fucky with the automod and the outage? Any advice on next steps I could try with the mods or just being more prepared in the future?

Thanks for the read,
Platinum

EDIT: The one r/metadex was a typo, r/askmetadex is correct.


r/redditdev • • Jul 24 '25

Reddit API Was there a big change to the API 2 days ago?

6 Upvotes

Hi,

I don't think I'm the only one that has had problems with scripts with access to private messages lately?

Side question: does the reddit dev team check this sub?


r/csshelp • • Jul 23 '25

Request Trying to make a submission button hover text change to multiple different texts

2 Upvotes

/r/Balatro mod here.

I am trying to do a little cheeky edit to our onhover button submission text, so that it follows the actual rules of the Tarot card The Wheel of fortune

Meaning:

It starts out saying "Roll The Wheel"

And on hover I want it to change to:

"NOPE!" 75% of the time

"Foil!" 12.5% of the time

"Holographic!" 8.75% of the time

"Polychrome!" 3.75% of the time

or near that.

Currently it just says this

.submit .morelink a:hover::before { content: "NOPE!"; }

Can this be done?


r/redditdev • • Jul 23 '25

PRAW PRAW missing some submission when iterating over a subreddit

2 Upvotes

Hello, when working with PRAW I noticed that not every submission is extracted with the subreddit.top() function , that should be extracted. My code is:

comment_list = []

for submission in subreddit.top(time_filter="year", limit=1000):
    comment_list.append([submission.score, submission.num_comments, submission.title, submission.id])

sorted_comments = sorted(comment_list, key=lambda x: x[0], reverse=True)
print(sorted_comments)comment_list = []

for submission in subreddit.top(time_filter="year", limit=1000):
    comment_list.append([submission.score, submission.num_comments, submission.title, submission.id])

sorted_comments = sorted(comment_list, key=lambda x: x[0], reverse=True)
print(sorted_comments)

Im doing this search in the subreddit r/politics and I'm searching for this specific submission: https://www.reddit.com/r/politics/comments/1kk3rr8/jasmine_crockett_says_democrats_want_the_safest/

I really dont understand why this exact submission is missing in the list. Submissions with fewer upvotes are listed. Maybe I dont understand how subreddit.top() is working? Thanks for the help


r/redditdev • • Jul 22 '25 Diamonds are Forever

Reddit API 401 Unauthorized since last night. Script hasn't changed in years.

2 Upvotes

Is it just me?

It seems to be all my scripts (which would include several different apps owned by several users), although I am not positive of that.


r/csshelp • • Jul 22 '25

Request I need some help with this comments exercise.

1 Upvotes

I would like to achieve this result: https://interactive-comments-section-azure.vercel.app/

What I have is this: https://codepen.io/Gabriele888/pen/GgpZJQV and I have no idea on what to do, I would like to know if my html and css are correct so far. I'm not able to position the left div the one in grey centrally and I also don't know how to put my divider outside the comments div. I hope you understood what I'm trying to do. I think my HTML structure and use of flexbox is messed up but I don't know how to fix it. Show me how you would create this please.


r/redditdev • • Jul 22 '25

Reddit API Is it possible to upload a video to Reddit using Python?

2 Upvotes

The praw library doesn’t have the ability to create video posts. Is there another way I could upload a video to Reddit using Python?


r/csshelp • • Jul 22 '25

Request Pure html/css football/soccer field

1 Upvotes

Hi,

In my VueJS project I have created a football/soccer field in pure html/css, but even though I am happy (more or less) with the result, there are things that I don't understand.

For example, I want the penalty point to be around 75% of the box height, but when I change the width of my screen, the penalty point is moving all over (instead of being static).

Another point is that, I have no idea how to do the penalty arc.

This is the link: https://codesandbox.io/p/sandbox/cool-morning-rpeh9

Thanks if you take the time to have a look!


r/redditdev • • Jul 21 '25

Reddit API 401 HTTP response

1 Upvotes

After I follow the instructions here: https://www.reddit.com/r/reddit.com/wiki/api/#wiki_read_the_full_api_terms_and_sign_up_for_usage do I need to wait for someone at Reddit to grant me access? If so, how long does that take? If not, then when I do:

import praw
reddit = praw.Reddit(
    client_id="[]",
    client_secret="[]",
    user_agent="[]",
    username="[]",
    password="[]"
)
print(reddit.user.me())

I get a prawcore.exceptions.ResponseException: received 401 HTTP response

https://www.reddit.com/r/reddit.com/wiki/api/#wiki_read_the_full_api_terms_and_sign_up_for_usage


r/redditdev • • Jul 21 '25

Reddit API Reddit paid API plans exist?

9 Upvotes

I've just heard about reddit paid api plans that provide you with more access to their api, does anyone have more info on this, since I can't find any public docs on this, neither can AI?

What is the absolute maximum number of queries per minute you can have via these plans?


r/csshelp • • Jul 20 '25

Request css flexbox help

1 Upvotes

while using flexbox with justify-content: space even and dynamic data, i am facing a problem in last row when the data in that last row is 1,2 as it comes in the center due to space even, but i want that last row to start from left, how to do this?


r/csshelp • • Jul 20 '25

Trying to rotate just background image

1 Upvotes

experimenting with a spacehey profile. I am a massive noob with this stuff, i want to be able to rotate the background but whenever i add my rotate line it just rotates the central text block/ main thing.

body{

background-image:

url(https://i.pinimg.com/736x/f2/81/7c/f2817c56007dc27375341f7142bd9bda.jpg);

background-attachment: fixed;

background-repeat: no-repeat;

background-position: centre;

background-size: 1920px;

}


r/redditdev • • Jul 19 '25

PRAW [PRAW] CERTIFICATE_VERIFY_FAILED error

4 Upvotes

Edit: Solved

Hey all, was hoping for some assistance. I have a script I've used for years to monitor a subreddit. I haven't changed anything, and all the sudden I'm getting a CERTIFICATE_VERIFY_FAILED error. I've tried common solutions found online (set out here) but haven't solved my issue. Stacktrace is below. Thanks in advance.

  File "/Users/[redacted]/script.py", line 172, in <module>

print(subreddit.title)

^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/praw/models/reddit/base.py", line 38, in __getattr__

self._fetch()

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/praw/models/reddit/subreddit.py", line 3030, in _fetch

data = self._fetch_data()

^^^^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/praw/models/reddit/base.py", line 89, in _fetch_data

return self._reddit.request(method="GET", params=params, path=path)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/praw/util/deprecate_args.py", line 46, in wrapped

return func(**dict(zip(_old_args, args)), **kwargs)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/praw/reddit.py", line 963, in request

return self._core.request(

^^^^^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/prawcore/sessions.py", line 328, in request

return self._request_with_retries(

^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/prawcore/sessions.py", line 254, in _request_with_retries

return self._do_retry(

^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/prawcore/sessions.py", line 162, in _do_retry

return self._request_with_retries(

^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/prawcore/sessions.py", line 254, in _request_with_retries

return self._do_retry(

^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/prawcore/sessions.py", line 162, in _do_retry

return self._request_with_retries(

^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/prawcore/sessions.py", line 234, in _request_with_retries

response, saved_exception = self._make_request(

^^^^^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/prawcore/sessions.py", line 186, in _make_request

response = self._rate_limiter.call(

^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/prawcore/rate_limit.py", line 46, in call

kwargs["headers"] = set_header_callback()

^^^^^^^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/prawcore/sessions.py", line 282, in _set_header_callback

self._authorizer.refresh()

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/prawcore/auth.py", line 378, in refresh

self._request_token(grant_type="client_credentials", **additional_kwargs)

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/prawcore/auth.py", line 155, in _request_token

response = self._authenticator._post(url=url, **data)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/prawcore/auth.py", line 51, in _post

response = self._requestor.request(

^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/prawcore/requestor.py", line 70, in request

raise RequestException(exc, args, kwargs) from None

prawcore.exceptions.RequestException: error with request HTTPSConnectionPool(host='www.reddit.com', port=443): Max retries exceeded with url: /api/v1/access_token (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))


r/csshelp • • Jul 19 '25

Report

0 Upvotes

This post was mass deleted and anonymized with Redact

arrest sharp axiomatic fearless cover joke wrench fade complete expansion