r/redditdev • • 18h ago

Reddit API geo_filter works with old reddit but not JSON API in r/popular?

3 Upvotes

This URL seems to always return the most popular posts in your region: https://oauth.reddit.com/r/popular/hot.json?rtj=only&redditWebClient=web2x&app=web2x-client-production&allow_over18=1&geo_filter=GLOBAL&forceGeopopular=true&sr_detail=1&raw_json=1&limit=7. After removing the ".json" and keeping the URL parameters, it gives you an old reddit HTML page where the geo_filter is respected. Any idea what's happening?