POST
/
twitter
/
login_by_email_or_username
cURL
curl --request POST \
  --url https://api.twitterapi.io/twitter/login_by_email_or_username \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "username_or_email": "<string>",
  "password": "<string>",
  "proxy": "<string>"
}'
{
  "hint": "<string>",
  "login_data": "<string>",
  "status": "<string>",
  "msg": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
username_or_email
string
required

User name or email.If you can't log in with your email, use your username. If you can't log in with your username, use your email instead.ref:https://twitterapi.io/blog/twitter-login-and-post-api-guide

password
string
required

The password of the user

proxy
string
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 response

hint
string

Hint of the login.eg. "Please use second endpoint /login_2fa to continue login."

login_data
string

Use this data to call /twitter/login_2fa to continue login.

status
string

Status of the request.success or error

msg
string

Message of the request.error message