Rishikant181 / Rettiwt-API

A CLI tool and an API for fetching data from Twitter for free!
https://rishikant181.github.io/Rettiwt-API/
MIT License
305 stars 31 forks source link

tweet.search returning empty tweets list for some users #436

Closed Othmanosx closed 4 months ago

Othmanosx commented 5 months ago

when using tweet.search, some users return an empty tweets list

example:

  const tweets = await rettiwt.tweet.search({
    fromUsers: ["AppFaves"],
  })

returns 0 tweets even though the account @AppFaves is active and does have tweets, this issue happens with other accounts as well but not all.

Rishikant181 commented 5 months ago

It's an issue with the search endpoint used to fetch tweets. The same behavior is displayed when trying to search for the tweets in the Twitter Web App:

Capture

I'll look into it to do what I can, but given it's an issue with Twitter Web App itself, I don't think much can be done about it.

You may use either the Rettiwt.user.timeline or Rettiwt.user.replies to fetch the tweets and replies, as an alternative.