GetXAPI
Users

Update Profile

Update Twitter profile fields (name, bio, location, URL, color, birthdate) programmatically via API. $0.001 per call. GetXAPI update profile endpoint.

POST/twitter/user/update_profile

This endpoint costs $0.001 per API call.

Updates one or more profile fields for the user owning auth_token. Send only the fields you want to change.

Body Parameters

ParameterTypeRequiredDescription
auth_tokenstringYesUser's auth_token cookie
namestringNoDisplay name
descriptionstringNoBio text
locationstringNoLocation text
urlstringNoWebsite URL shown on profile
profile_link_colorstringNoHex color (e.g. 1DA1F2)
birthdate_yearnumberNoBirthdate year
birthdate_monthnumberNoBirthdate month (1–12)
birthdate_daynumberNoBirthdate day
birthdate_visibilitystringNoself, mutualfollow, followers, following, or public

Notes

  • At least one field other than auth_token must be provided.
  • Only included fields are updated; omitted fields are left unchanged.

Response (200)

{
  "status": "success",
  "msg": "Profile updated successfully",
  "data": {
    "id": "1740174562631856128",
    "screen_name": "example_user",
    "name": "New Display Name",
    "description": "Updated bio",
    "location": "San Francisco",
    "url": "https://example.com",
    "profile_link_color": "1DA1F2"
  }
}

Error Responses

400 - No fields to update

{
  "error": "At least one profile field must be provided"
}

401 - Invalid auth_token

{
  "error": "Invalid auth_token - could not extract userId"
}

Example

curl --request POST \
  --header "Authorization: Bearer API_KEY" \
  --header "Content-Type: application/json" \
  --url "https://api.getxapi.com/twitter/user/update_profile" \
  --data '{
    "auth_token": "<auth_token>",
    "name": "New Display Name",
    "description": "Updated bio",
    "location": "San Francisco",
    "url": "https://example.com"
  }'

On this page