256 Kilobytes

Answers in Social Media Marketing | By Some Guy

Published 1 year agoWed, 30 Jan 2019 00:57:29 -0800 | Last update 1 year agoWed, 30 Jan 2019 01:13:03 -0800

316 views, 1 RAM, and 1 comment

Profile Photo - Some Guy Some Guy
🗎 3224 🗨 43 🐏 31

As some of you may know, you can append .json to any Reddit URL to get the results back as JSON.

When working with this, I am occassionally getting messages back on some of my requets to Reddit's JSON pages.

  • {"message": "Too Many Requests", "error": 429}

Does anyone know what Reddit's request limit for JSON pages is?

Users Who Have Downloaded More RAM:
eeeeeeee (1 year ago)
🐏 ⨉ 1
Posted by Some Guy 1 year ago

Edit History

• [2019-01-30 0:57 PST] Some Guy (1 year ago)
🕓 Posted at 30 January, 2019 00:57 AM PST

This is a patsy account used by the 256 Kilobytes staff to seed content. 

Profile Photo - August R. Garcia August R. Garcia LARPing as a Sysadmi... Portland, OR
🗎 211 🗨 1090 🐏 328
Site Owner

I have also run into this issue, which makes sense, since I also posted this thread from the Some Guy account. According to some guy on Reddit:

Reddit's servers apply strong rate limits against 'default' user-agents for various tools and libraries (curl, python's requests library, unity's WWW class, etc.). The reason they do this is to strongly encourage developers to set proper User-Agent headers that provide some friendly identifier. The specific format preferred for user-agent headers can be found under the API rules:  https://github.com/reddit/reddit/wiki/API#rules

Source: https://www.reddit.com/r/redditdev/comments/6k12c0/json_request_limits/

Set a custom user agent and authenticate with OAuth2 and you should be able to make up to 60 requests per minute. Otherwise, seems to be something like 50 requests per ten minutes (or something; this number is probably probably not particularly accurate).

Set a custom user agent:

Change your client's User-Agent string to something unique and descriptive, including the target platform, a unique application identifier, a version string, and your username as contact information, in the following format:

  • <platform>:<app ID>:<version string> (by /u/<reddit username>)
  • Example: User-Agent: android:com.example.myredditapp:v1.2.3 (by /u/kemitche)
  • Many default User-Agents (like "Python/urllib" or "Java") are drastically limited to encourage unique and descriptive user-agent strings.

Source:  https://github.com/reddit-archive/reddit/wiki/API#rules

Authenticate with OAuth2:

  • Clients connecting via OAuth2 may make up to 60 requests per minute. Monitor the following response headers to ensure that you're not exceeding the limits:
    • X-Ratelimit-Used: Approximate number of requests used in this period
    • X-Ratelimit-Remaining: Approximate number of requests left to use
    • X-Ratelimit-Reset: Approximate number of seconds to end of period
Users Who Have Downloaded More RAM:
eeeeeeee (1 year ago)
🐏 ⨉ 1
Posted by August R. Garcia 1 year ago 🕓 Posted at 30 January, 2019 02:34 AM PST

Sir, I can do you a nice SEO.

Post a New Comment

To leave a comment, login to your account or create an account.

Do you like having a good time?

Read Quality Articles

Read some quality articles. If you can manage to not get banned for like five minutes, you can even post your own articles.

View Articles →

Argue with People on the Internet

Use your account to explain why people are wrong on the Internet forum.

View Forum →

Vandalize the Wiki

Or don't. I'm not your dad.

View Wiki →

Ask and/or Answer Questions

If someone asks a terrible question, post a LMGTFY link.

View Answers →

Make Some Money

Hire freelancers and/or advertise your goods and/or services. Hire people directly. We're not a middleman or your dad. Manage your own business transactions.

Register an Account
You can also login to an existing account or recover your password. All use of this site is subject to terms outlined in the terms of service and privacy policy.