linvi/tweetinvi

Forbidden error for fetching UserTimeline

kamoco opened this issue · 4 comments

kamoco commented

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

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

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.

kamoco commented

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

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