Skip to main content
POST
/
twitter
/
user_login_v3
cURL
curl --request POST \
  --url https://api.twitterapi.io/twitter/user_login_v3 \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "user_name": "<string>",
  "proxy": "<string>",
  "email": "<string>",
  "password": "<string>",
  "totp_code": "<string>",
  "cookie": "<string>"
}
'
{
  "status": "<string>",
  "msg": "<string>",
  "login_cookie": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
user_name
string
required

Twitter username. Must be set.

proxy
string
required

The proxy to use. Must use high-quality residential proxies and avoid free proxies.Otherwise, you will fail 100%. Required. Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504

email
string

Email address associated with the account. Must be set if cookie is empty..

password
string

The password of the user. Must be set if cookie is empty.

totp_code
string

The TOTP secret key for 2FA authentication. It is a 10-character string, not a number! If your account has 2FA enabled, this field is required for successful login.

Optional. Pre-existing cookie string in format 'cto=xx&auth_token='. Can be used to resume a previous session.

Response

Login response

status
string

Status of the request. 'success' means the login request has been accepted and is being processed.

msg
string

Message describing the current state. For example: 'Add done.configing.' means the login is being configured.

The login cookie of the user. This will be returned once the login is complete. Use this cookie to post tweets, etc.