Notification texts go here Contact Us Buy Now!

Twitter API V2 reply to a tweet

In order to reply to a tweet using the Twitter API, send a POST request to the endpoint api.twitter.com/2/tweets. Include the following parameters in the request body:

  • text: The text of your reply tweet. (Required)
  • reply: This is an object that contains the in_reply_to_tweet_id key, which specifies the ID of the tweet you are replying to. (Required)

Here's an example of a request body for replying to a tweet:

{
    "text": "Hello World!2",
    "reply": {
        "in_reply_to_tweet_id": "175381330075023636"
    }
}

Once you send the request, the Twitter API will respond with the newly created tweet, including its ID and other details.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.