twikit icon indicating copy to clipboard operation
twikit copied to clipboard

TweetNotAvailable: Query: Unspecified

Open Cryptojoyz opened this issue 3 months ago • 2 comments

I try to use get_tweet_by_id(), but it raise:

TweetNotAvailable Traceback (most recent call last) Cell In[2], line 1 ----> 1 tweet = await client.get_tweet_by_id('1966411479584018440')

File /opt/anaconda3/lib/python3.12/site-packages/twikit/client/client.py:1518, in Client.get_tweet_by_id(self, tweet_id, cursor) 1515 response, _ = await self.gql.tweet_detail(tweet_id, cursor) 1517 if 'errors' in response: -> 1518 raise TweetNotAvailable(response['errors'][0]['message']) 1520 entries = find_dict(response, 'entries', find_one=True)[0] 1521 reply_to = []

TweetNotAvailable: Query: Unspecified

the tweet id is: 1966411479584018440

Cryptojoyz avatar Sep 19 '25 06:09 Cryptojoyz

import requests

url = "https://api.twitterxapi.com/twitter/tweets/lookup"

payload = ["1966411479584018440"] headers = { "Authorization": "Bearer token", "Content-Type": "application/json" }

response = requests.post(url, json=payload, headers=headers)

print(response.json())

yeahyesfine avatar Sep 19 '25 23:09 yeahyesfine

import requests

url = "https://api.twitterxapi.com/twitter/tweets/lookup"

payload = ["1966411479584018440"] headers = { "Authorization": "Bearer token", "Content-Type": "application/json" }

response = requests.post(url, json=payload, headers=headers)

print(response.json())

Sorry, but what do you mean?

Cryptojoyz avatar Sep 20 '25 05:09 Cryptojoyz