tweetinvi icon indicating copy to clipboard operation
tweetinvi copied to clipboard

Forbidden error for fetching UserTimeline

Open kamoco opened this issue 1 year ago • 4 comments

I am trying to fetch the timeline of a user and I am getting the following forbidden error. Any idea why?

Reason : Forbidden Details : {"errors":[{"message":"You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product","code":453}]} (0) Code : 403 Date : 7/13/2023 4:44:24 AM +00:00 URL : https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=&count=200&tweet_mode=extended&exclude_replies=false&include_rts=false Twitter documentation description : Forbidden - The request is understood, but it has been refused or access is not allowed. An accompanying error message will explain why. This code is used when requests are being denied due to update limits

kamoco avatar Jul 13 '23 05:07 kamoco

You would have to know which account tier you are using.. in the free version, no more tweets or timelines can be read

Gitekkaad avatar Jul 18 '23 06:07 Gitekkaad

Having similar issue when using library. We have cheaper paid subscription; other endpoints are working such as GetUserByNameAsync.

But when it hits GetUserTimelineAsync throws the error @kamoco mentions.

I've also confirmed that running the twitter v2 api via Postman does work providing a valid bearer token.

imcanida avatar Jul 18 '23 21:07 imcanida

Does that mean for it to work now we need to sign up for $5000 subscription?

kamoco avatar Jul 19 '23 01:07 kamoco

Just to point to the features per license: FREE: https://developer.twitter.com/en/portal/products/free BASIC (needed to read timelines): https://developer.twitter.com/en/portal/products/basic

WolfgangHG avatar Sep 07 '23 19:09 WolfgangHG