Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Rate Limits #7

Copy link
Copy link
@thedavecarroll

Description

@thedavecarroll
Issue body actions

Each Twitter API endpoint has a specific rate limit for the standard API.

You can find more information on Twitter's standard API rate limiting here.

For instance, here are the rate limits for lists endpoints.

/lists/list             : @{limit=15; remaining=0; reset=1552260236}
/lists/memberships      : @{limit=75; remaining=75; reset=1552260742}
/lists/subscribers/show : @{limit=15; remaining=15; reset=1552260742}
/lists/members          : @{limit=900; remaining=900; reset=1552260742}
/lists/subscriptions    : @{limit=15; remaining=15; reset=1552260742}
/lists/show             : @{limit=75; remaining=75; reset=1552260742}
/lists/ownerships       : @{limit=15; remaining=15; reset=1552260742}
/lists/subscribers      : @{limit=180; remaining=180; reset=1552260742}
/lists/members/show     : @{limit=15; remaining=15; reset=1552260742}
/lists/statuses         : @{limit=900; remaining=900; reset=1552260742}

After reaching the limit, the current Invoke-TwitterAPI calling function generates an error similar to the following:

Invoke-RestMethod : {"errors":[{"message":"Rate limit exceeded","code":88}]}
At C:\Program Files\PowerShell\Modules\PSTwitterAPI\0.0.7\public\Invoke-TwitterAPI.ps1:34 char:5
+     Invoke-RestMethod @RestMethod_Params
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (Method: GET, Re...rShell/6.1.2
}:HttpRequestMessage) [Invoke-RestMethod], HttpResponseException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

How should rate limits be handled?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.