curl --request POST \
--url https://api.twitterapi.io/twitter/upload_media_v2 \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <api-key>' \
--form 'proxy=<string>' \
--form 'login_cookies=<string>' \
--form is_long_video=true \
--form file=@example-file
{
"media_id": "<string>",
"status": "<string>",
"msg": "<string>"
}
Upload media to twitter.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/upload_media_v2 \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <api-key>' \
--form 'proxy=<string>' \
--form 'login_cookies=<string>' \
--form is_long_video=true \
--form file=@example-file
{
"media_id": "<string>",
"status": "<string>",
"msg": "<string>"
}
Upload media response
The response is of type object
.