POST /twitter/login_by_2fa

Changed on

Deprecated soon. Please use login V2 instead, as it is more stable.Login Step 2: by 2fa code.Price: 300 credits ($0.003 per call).

Request

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

Request body

login_datastring required

The login data returned by /twitter/login_by_email_or_username

2fa_codestring required

The 2fa code of the user. get 2fa code from https://2fa.fb.rip/

proxystring required

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

Response

Login Step 2(2fa) response

sessionstring

The session of the login.Use this session to call other endpoints.eg. /twitter/create_tweet /twitter/like_tweet

statusstring

Status of the request.success or error

msgstring

Message of the request.error message

Changes