POST /twitter/user_login_v3

Changed on

V3 Login API - Log in using your email, username, password, and 2FA code. This is an asynchronous login method. After calling this API, the system will process your login request in the background. You can call get_my_x_account_detail_v3 to check the login status. Price: 500 credits ($0.005 per call).

Request

  • Base URL
    https://api.twitterapi.io
  • URL
    https://api.twitterapi.io/twitter/user_login_v3
  • Auth
    API key in header X-API-Key

Request body

user_namestring required

Twitter username. Must be set.

emailstring

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

passwordstring

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

totp_codestring

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.

cookiestring

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

proxystring 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

Response

Login response

statusstring

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

msgstring

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

login_cookiestring

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

Changes