Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 975789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:38:41+00:00 2026-05-16T03:38:41+00:00

I am working with a java Twitter app (using Twitter4J api). I have created

  • 0

I am working with a java Twitter app (using Twitter4J api). I have created the app and can view the current users timeline, user’s profiles, etc..

However, when using the app it seems to quite quickly exceed the 150 requests an hour rate limit set on Twitter clients (i know developers can increase this to 350 on given accounts, but that would not resolve for other users).

Surely this is not affecting all clients, any ideas as to how to get around this?

Does anyone know what counts as a request? For example, when i view a user’s profile, i load the User object (twitter4j) and then get the screenname, username, user description, user status, etc to put into a JSON object – would this be a single call to get the object or would it several to include all the user.get… calls?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T03:38:42+00:00Added an answer on May 16, 2026 at 3:38 am

    You really do need to keep track what your current request count is when dealing with Twitter.

    However, twitter does not seem to drop the count for 304 Not Modified (at least it didn’t the last time I dealt with it), so make sure there isn’t something breaking your normal use of HTTP caching, and your practical request per hour goes up.

    Note that twitter suffers from a bug in mod_gzip on apache where the e-tag is mal-formed in changing it to reflect that the content-encoding is different to that of the non-gzipped entity (this is the Right Thing to do, there’s just a bug in the implementation). Because of this, accepting gzipped content from twitter means it’ll never send a 304, which increases your request count, and in many cases undermines the efficiency gains of using gzip.

    Hence, if you are accepting gzip (your web-library may do so by default, see what you can see with a tool like Fiddler, I’m a .NET guy with only a little Java knowledge, answering at the level of how twitter deals with HTTP so I don’t know the details of Java web libraries), try turning that off, and see if it improve things.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a working Java app that can find the most recently created file
Im working on java, I have created an enum as follows: public enum myEnum
I have a working java web app for document management. On document creation i
I am currently working on Twitter4j for connecting to Twitter API. As with any
When working with Java from Scala, we have to account for null. HttpServletRequest getters
I'm working with java, trying to use the AudioFormat Class. I have the following
I have been working in Java/J2ee projects, in which I follow the Maven structure.
I am working a java application using H2 Database in embedded mode. My Application
I have a working java client that is communicating with Google, through ProtoBuf serialized
Working in Java: I have a JFrame class, and separate classes for my two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.