Here are my params for getting tweets.

params_v2 = {
        "tweet.fields": "id,text,attachments,author_id,context_annotations,created_at,entities,in_reply_to_user_id,lang,public_metrics,referenced_tweets,reply_settings,source",
        "expansions": "author_id,referenced_tweets.id,referenced_tweets.id.author_id,attachments.media_keys",
        "media.fields": "duration_ms,height,media_key,preview_image_url,type,url,width,public_metrics",
        "user.fields": "created_at,location,profile_image_url,public_metrics,url,verified,description,entities,pinned_tweet_id",
    }

I am getting main tweets responses in data and referenced tweet in includes.tweet. But how can I get the tweet that a referenced tweet is referring to?

Ex:

this is referenced tweet and this tweet itself points to another tweet, how can I get that tweet? Do I need to fetch the tweet again?

maybe this document helps you https://developer.twitter.com/en/docs/twitter-api/conversation-id

1 Like

I tried conversation_id but doesn’t seem working in the user tweet timeline. Is it only work on tweet lookup?

can you show me your code?

are you using v2 or v1.1 endpoint?

1 Like

Yes, conversation_id only works as a query operator for search, not for timelines endpoint.

Referenced tweets only go 1 level “deep”.

So I have to request those tweets which have 2-3 level deep replies. Right?

i tried to use "tweet.fields": "conversation_id" and I get the root of the reply, but not the retweet

I think the root tweet will be in includes.tweets

1 Like

So how? have you been able to get a tweet reference from conversation_id?