curl --request POST \
--url https://api.twitterapi.io/twitter/create_tweet_v2 \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"login_cookie": "<string>",
"tweet_text": "<string>",
"reply_to_tweet_id": "<string>",
"community_id": "<string>",
"is_note_tweet": true,
"media_ids": [
"<any>"
],
"proxy": "<string>"
}'
{
"tweet_id": "<string>",
"status": "<string>",
"msg": "<string>"
}
Create a tweet.You must set the login_cookie.You can get the login_cookie from /twitter/user_login_v2.Trial operation price: $0.003 per call.
curl --request POST \
--url https://api.twitterapi.io/twitter/create_tweet_v2 \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"login_cookie": "<string>",
"tweet_text": "<string>",
"reply_to_tweet_id": "<string>",
"community_id": "<string>",
"is_note_tweet": true,
"media_ids": [
"<any>"
],
"proxy": "<string>"
}'
{
"tweet_id": "<string>",
"status": "<string>",
"msg": "<string>"
}
Login response
The response is of type object
.