cURL
curl --request POST \ --url https://api.twitterapi.io/twitter/login_by_2fa \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "login_data": "<string>", "2fa_code": "<string>", "proxy": "<string>" }'
{ "session": "<string>", "status": "<string>", "msg": "<string>", "user": { "id_str": "<string>", "screen_name": "<string>", "name": "<string>" } }
Deprecated soon. Please use login V2 instead, as it is more stable.Login Step 2: by 2fa code.Trial operation price: $0.003 per call.
Login Step 2(2fa) response
The response is of type object.
object