oAuth should allow 450 `GET search/tweets` requests in 15 min but I am only getting 180


#1

As mentioned here ( https://dev.twitter.com/docs/rate-limiting/1.1/limits ) I should be able to make 450 search/tweets requests. But I am only getting 180. Below is the JSON response for application/rate_limit_status. Any work around for this issue?

Request URI: https://api.twitter.com/1.1/application/rate_limit_status.json
Request query: resources=help,users,search,statuses
Response:

{
  "rate_limit_context": {
    "access_token": "App Token"
  },
  "resources": {
    "users": {
      "\/users\/profile_banner": {
        "limit": 180,
        "remaining": 180,
        "reset": 1389002802
      },
      "\/users\/suggestions\/:slug\/members": {
        "limit": 15,
        "remaining": 15,
        "reset": 1389002802
      },
      "\/users\/show\/:id": {
        "limit": 180,
        "remaining": 180,
        "reset": 1389002802
      },
      "\/users\/suggestions": {
        "limit": 15,
        "remaining": 15,
        "reset": 1389002802
      },
      "\/users\/lookup": {
        "limit": 180,
        "remaining": 180,
        "reset": 1389002802
      },
      "\/users\/search": {
        "limit": 180,
        "remaining": 180,
        "reset": 1389002802
      },
      "\/users\/contributors": {
        "limit": 15,
        "remaining": 15,
        "reset": 1389002802
      },
      "\/users\/contributees": {
        "limit": 15,
        "remaining": 15,
        "reset": 1389002802
      },
      "\/users\/suggestions\/:slug": {
        "limit": 15,
        "remaining": 15,
        "reset": 1389002802
      }
    },
    "statuses": {
      "\/statuses\/mentions_timeline": {
        "limit": 15,
        "remaining": 15,
        "reset": 1389002802
      },
      "\/statuses\/show\/:id": {
        "limit": 180,
        "remaining": 180,
        "reset": 1389002802
      },
      "\/statuses\/oembed": {
        "limit": 180,
        "remaining": 180,
        "reset": 1389002802
      },
      "\/statuses\/retweeters\/ids": {
        "limit": 15,
        "remaining": 15,
        "reset": 1389002802
      },
      "\/statuses\/home_timeline": {
        "limit": 15,
        "remaining": 15,
        "reset": 1389002802
      },
      "\/statuses\/user_timeline": {
        "limit": 180,
        "remaining": 180,
        "reset": 1389002802
      },
      "\/statuses\/retweets\/:id": {
        "limit": 15,
        "remaining": 15,
        "reset": 1389002802
      },
      "\/statuses\/retweets_of_me": {
        "limit": 15,
        "remaining": 15,
        "reset": 1389002802
      }
    },
    "help": {
      "\/help\/privacy": {
        "limit": 15,
        "remaining": 15,
        "reset": 1389002802
      },
      "\/help\/tos": {
        "limit": 15,
        "remaining": 15,
        "reset": 1389002802
      },
      "\/help\/configuration": {
        "limit": 15,
        "remaining": 15,
        "reset": 1389002802
      },
      "\/help\/languages": {
        "limit": 15,
        "remaining": 15,
        "reset": 1389002802
      }
    },
    "search": {
      "\/search\/tweets": {
        "limit": 180,
        "remaining": 180,
        "reset": 1389002802
      }
    }
  }
}

#2

The “Requests allotted via application-only auth” are only when you are using application-only auth: https://dev.twitter.com/docs/auth/application-only-auth.
You are currently using normal OAuth, as the “rate_limit_context” is not “access_token” but “application” in the case of app-only auth.


#3

Thanks @vincentisambart. That worked! :slight_smile: