Skip to main content
POST
/
twitter
/
post-tweet-without-cookie
Post Tweet (Auto Cookie)
curl --request POST \
  --url https://api.twitterxapi.com/twitter/post-tweet-without-cookie \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "media_url": "https://example.com/image.jpg",
  "tweet_content": "Hello, Twitter! 🐦",
  "schedule": "2024-01-01T12:00:00Z",
  "reply_tweet_id": "1234567890123456789",
  "community_name": "Python Developers",
  "quote_tweet_url": "https://twitter.com/user/status/1234567890123456789"
}'
{
  "code": 200,
  "msg": "success",
  "data": {
    "tweet_id": "1234567890123456789",
    "user_id": "1234567890",
    "code": 200
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Parameters for posting a tweet without providing cookie (uses random cookie from pool)

tweet_content
string
required

Content of the tweet to post

Maximum length: 280
Example:

"Hello, Twitter! 🐦"

media_url
string | null

URL of media to attach to the tweet

Example:

"https://example.com/image.jpg"

schedule
string | null

Schedule time for the tweet in ISO format

Example:

"2024-01-01T12:00:00Z"

reply_tweet_id
string | null

ID of tweet to reply to

Example:

"1234567890123456789"

community_name
string | null

Name of Twitter community to post in

Example:

"Python Developers"

quote_tweet_url
string | null

URL of tweet to quote

Example:

"https://twitter.com/user/status/1234567890123456789"

Response

Tweet ID and user ID of posted tweet

Post tweet API response

code
integer
default:200

HTTP status code

msg
string
default:success

Response message

data
object | null

Posted tweet information Post tweet response data