skip to Main Content

I am trying hard to find a way to reply to a tweet with Twitter API V2, but it seems there is no endpoint for doing something like that, in Twitter Developer docs i found a way to post and delete a tweet, to retweet a tweet and delete a retweet, but i am struggling with replies, can you please help me with this? Thanks.

2

Answers


  1. Chosen as BEST ANSWER

    For anyone coming later at this post, here is answer: Endpoint for this action is "api.twitter.com/2/tweets", and parameters you have to pass are "text" and "reply" object with "in_reply_to_tweet_id" key, like this "reply: { in_reply_to_tweet_id: tweet_id }


  2. For those who are having trouble in the previous answer.
    Pass this following in the body of the request.

    {
        "text": "Hello World!2",
        "reply": {
            "in_reply_to_tweet_id":"175381330075023636"
        }
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search