Tweet Actions Endpoints

Create a Quote Tweet

Posts a new tweet that quotes an existing tweet. Requires the URL of the tweet to be quoted and the new content,$0.0005 per call.

post/twitter/tweets/quote

Request

  • Base URL: https://api.twexapi.io
  • URL: https://api.twexapi.io/twitter/tweets/quote
  • Auth: HTTP bearer

Request body

media_urlstring nullable

Single media URL: image, GIF, or video. Prefer media_urls for multiple images.

media_urlsstring[] nullable

Media URLs to attach (max 4 images, or 1 GIF, or 1 video). Cannot mix GIF/video with other media.

tweet_contentstring required

Content of the tweet to post

delegated_account_usernamestring nullable

delegated account username

cookiestring required

The user's own authorized Twitter session credentials or auth_token (BYOC — Bring Your Own Cookie). Stateless proxy execution with zero credential retention. See Authentication Security and How to get Cookie.

community_namestring nullable

Name of Twitter community to post in or community id

quote_tweet_urlstring nullable

URL of tweet to quote

proxystring nullable

The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://app.proxy-cheap.com/r/qiMxub

Example request

{
  "media_url": "https://example.com/image.jpg",
  "media_urls": [
    "https://example.com/image1.jpg",
    "https://example.com/image2.jpg"
  ],
  "tweet_content": "Hello, Twitter! 🐦",
  "delegated_account_username": "elonmusk",
  "cookie": "ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7",
  "community_name": "Python Developers or 1234567890123456789",
  "quote_tweet_url": "https://twitter.com/user/status/1234567890123456789",
  "proxy": "http://username:password@ip:port"
}

Response

The ID and user ID of the newly created quote tweet.

codeinteger

HTTP status code

msgstring

Response message

Example response

{
  "data": {
    "tweet_id": "1234567890123456789",
    "user_id": "1234567890"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.