Skip to main content

r/redditdev


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

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?


Advertisement: We know you want to expand your business. Advice from Shopify on global growth is a swipe away.
We know you want to expand your business. Advice from Shopify on global growth is a swipe away.
  • We know you want to expand your business. Advice from Shopify on global growth is a swipe away.
  • We know you want to expand your business. Advice from Shopify on global growth is a swipe away.
  • We know you want to expand your business. Advice from Shopify on global growth is a swipe away.
  • We know you want to expand your business. Advice from Shopify on global growth is a swipe away.
  • We know you want to expand your business. Advice from Shopify on global growth is a swipe away.


media.upload fails with "unable to get media lease for url" — Devvit Web 0.15.2
media.upload fails with "unable to get media lease for url" — Devvit Web 0.15.2
General Botmanship

Hi all — hoping someone has hit this before. My app (joinaroo-local-event, Devvit Web 0.15.2) posts text fine from its scheduler (daily posts on four subreddits), but every `media.upload()` call fails:

```

Error: 2 UNKNOWN: grpc invocation failed with status 2; unable to get media lease for url: <url> unknown internal error

```

What I've tried:

- Two different source hosts. A file-hosting URL that returns 403 to plain fetches (that failure I understand), and our own production site: the file verifies 200 / image/jpeg / full bytes from the open internet, and our server access log shows Reddit's fetcher (Go-http-client/2.0, AWS IP) successfully GETting the complete file at the moment of the call — yet the lease still fails with the same error.

- Added `"media": true` to `permissions` in devvit.json (the top-level `"media": { "dir": "public" }` for bundled assets was already there). Re-uploaded and re-installed on all subs. No change — it fails at the upload call itself, before any post composition.

- The app is installed via upload + install and has never been published, in case that matters.

Questions: what actually grants a media lease? Does media upload require the app to be published/reviewed? If a permission is added in an update, do existing installs need a moderator to re-approve before the lease works? Or is there a known issue with the lease service?

Thanks for any pointers.


Is there any way to get deeper data than the Insights tab, or export it to CSV?
Is there any way to get deeper data than the Insights tab, or export it to CSV?
Reddit API

I recently joined the mod team of a large subreddit and I’m trying to track community health week over week. Insights covers the basics, but I’m running into limits:

  • I can’t find a way to export the data (CSV or otherwise). Everything has to be copied by hand.

  • Insights shows fixed time windows, so I can’t build a long-term history or compare periods on my own terms.

What I’ve looked at so far:

  • The Data API appears to be closed to new access requests.

  • I’m exploring a Devvit app, but as far as I can tell it doesn’t expose Insights metrics like views or unique visitors, only things like subscriber count, post and comment details, mod queue and mod log.

My questions:

  1. Is there an official way to export Insights data, or any plan to add one?

  2. Is there another supported way for mods to get views, unique visitors or per-post traffic data programmatically?

  3. If not, how are other mod teams tracking this over time? Any tools, apps or workflows you’d recommend?

Thanks in advance, and happy to share what I end up building if it’s useful to others.