Skip to main content
POST
Post Tweet (Auto Cookie)

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

Example:

"Hello, Twitter! 🐦"

media_url
string | null

Single media URL (backward compatible). Prefer media_urls for multiple images.

Example:

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

media_urls
string[] | null

Media URLs to attach (max 4 images). Cannot mix with video.

Maximum array length: 4
Example:
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 or community id

Example:

"Python Developers or 1234567890123456789"

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
PostTweetData · object | null

Posted tweet information