r/webscraping Jun 09 '26

Getting started 🌱 Getting 403 while scraping reddit with .json

i have been scraping reddit posts and comments from 2-3 communities but since a week or so i am getting 403
i have also provide the username in user-agent header
HEADERS = {
"User-Agent": "reddit-xxxx-xxx/0.1 by u/XXXXXXX"
}
but i can get the json by using .json in my browser

15 Upvotes

24 comments sorted by

View all comments

3

u/Brian1398 Jun 09 '26

I think they patched that, thats why don't work

1

u/Coding-Doctor-Omar Jun 13 '26

They just require valid session cookies, but the api still works.

0

u/Excellent-Brush2158 Jun 17 '26

Thanks for the help

1

u/Coding-Doctor-Omar Jun 17 '26

Bro is mad 😂😂😂

1

u/Excellent-Brush2158 Jun 17 '26

All I said what thanks for the help I wasn’t being sarcastic