The Wayback Machine - https://web.archive.org/web/20160617153846/https://dev.twitter.com/overview/api/users

Users

Users can be anyone or anything. They tweet, follow, create lists, have a home_timeline, can be mentioned, and can be looked up in bulk.

Example user web intent

Field Guide

Consumers of Users should tolerate the addition of new fields and variance in ordering of fields with ease. Not all fields appear in all contexts. It is generally safe to consider a nulled field, an empty set, and the absence of a field as the same thing.

FieldTypeDescription
contributors_enabledBooleanIndicates that the user has an account with “contributor mode” enabled, allowing for Tweets issued by the user to be co-authored by another account. Rarely true.

Example:

"contributors_enabled": false
created_atStringThe UTC datetime that the user account was created on Twitter.

Example:

"created_at": "Mon Nov 29 21:18:15 +0000 2010"
default_profileBooleanWhen true, indicates that the user has not altered the theme or background of their user profile.

Example:

"default_profile": false
default_profile_imageBooleanWhen true, indicates that the user has not uploaded their own avatar and a default egg avatar is used instead.

Example:

"default_profile_image": false
descriptionStringNullable. The user-defined UTF-8 string describing their account.

Example:

"description":"The Real Twitter API."
entitiesEntities

Entities which have been parsed out of the url or description fields defined by the user. Read more about User Entities.

Example:

"entities": {
  "url": {
    "urls": [
      {
        "url": "http:\/\/dev.twitter.com",
        "expanded_url": null,
        "indices": [0, 22]
      }
    ]
  },
  "description": {"urls":[] }
}
favourites_countIntThe number of tweets this user has favorited in the account’s lifetime. British spelling used in the field name for historical reasons.

Example:

"favourites_count": 13
follow_request_sentTypeNullable. Perspectival. When true, indicates that the authenticating user has issued a follow request to this protected user account.

Example:

"follow_request_sent":false
followingTypeNullable. Perspectival. Deprecated. When true, indicates that the authenticating user is following this user. Some false negatives are possible when set to “false,” but these false negatives are increasingly being represented as “null” instead. See Discussion.

Example:

"following":true
followers_countIntThe number of followers this account currently has. Under certain conditions of duress, this field will temporarily indicate “0.”

Example:

"followers_count": 21
friends_countIntThe number of users this account is following (AKA their “followings”). Under certain conditions of duress, this field will temporarily indicate “0.”

Example:

"friends_count": 32
geo_enabledBooleanWhen true, indicates that the user has enabled the possibility of geotagging their Tweets. This field must be true for the current user to attach geographic data when using POST statuses / update.

Example:

"geo_enabled": true
idInt64The integer representation of the unique identifier for this User. This number is greater than 53 bits and some programming languages may have difficulty/silent defects in interpreting it. Using a signed 64 bit integer for storing this identifier is safe. Use id_str for fetching the identifier to stay on the safe side. See Twitter IDs, JSON and Snowflake.

Example:

"id":6253282
id_strStringThe string representation of the unique identifier for this User. Implementations should use this rather than the large, possibly un-consumable integer in id.

Example:

"id_str":"6253282"
is_translatorBooleanWhen true, indicates that the user is a participant in Twitter’s translator community.

Example:

"is_translator": false
langStringThe BCP 47 code for the user’s self-declared user interface language. May or may not have anything to do with the content of their Tweets.

Examples:

"lang": "en"
"lang": "msa"
"lang": "zh-cn"
listed_countIntThe number of public lists that this user is a member of.

Example:

"listed_count":9274
locationStringNullable. The user-defined location for this account’s profile. Not necessarily a location nor parseable. This field will occasionally be fuzzily interpreted by the Search service.

Example:

"location":"San Francisco, CA"
nameStringThe name of the user, as they’ve defined it. Not necessarily a person’s name. Typically capped at 20 characters, but subject to change.

Example:

"name":"Twitter API"
notificationsBooleanNullable. Deprecated. May incorrectly report “false” at times. Indicates whether the authenticated user has chosen to receive this user’s tweets by SMS. Discussion
profile_background_colorStringThe hexadecimal color chosen by the user for their background.

Example:

"profile_background_color":"e8f2f7"
profile_background
_image_url
StringA HTTP-based URL pointing to the background image the user has uploaded for their profile.

Example:

"profile_background_image_url":
"http:\/\/a2.twimg.com\/profile_background_images\
/229557229\/twitterapi-bg.png"
profile_background_
image_url_https
StringA HTTPS-based URL pointing to the background image the user has uploaded for their profile.

Example:

"profile_background_image_url_https":
"https:\/\/si0.twimg.com\/profile_background_images\
/229557229\/twitterapi-bg.png"
profile_background_tileBooleanWhen true, indicates that the user’s profile_background_image_url should be tiled when displayed.

Example:

"profile_background_tile":false
profile_banner_urlStringThe HTTPS-based URL pointing to the standard web representation of the user’s uploaded profile banner. By adding a final path element of the URL, you can obtain different image sizes optimized for specific displays. In the future, an API method will be provided to serve these URLs so that you need not modify the original URL. For size variations, please see User Profile Images and Banners.

Example:

"profile_banner_url": "https://si0.twimg.com/profile_banners/819797/1348102824"
profile_image_urlStringA HTTP-based URL pointing to the user’s avatar image. See User Profile Images and Banners.

Example:

"profile_image_url":
"http:\/\/a2.twimg.com\/profile_images\/1438634086\
/avatar_normal.png"
profile_image_url_httpsStringA HTTPS-based URL pointing to the user’s avatar image.

Example:

"profile_image_url_https":
"https:\/\/si0.twimg.com\/profile_images\/1438634086\
/avatar_normal.png"
profile_link_colorStringThe hexadecimal color the user has chosen to display links with in their Twitter UI.

Example:

"profile_link_color":"0094C2"
profile_sidebar_border_colorStringThe hexadecimal color the user has chosen to display sidebar borders with in their Twitter UI.

Example:

"profile_sidebar_border_color":"0094C2"
profile_sidebar_fill_colorStringThe hexadecimal color the user has chosen to display sidebar backgrounds with in their Twitter UI.

Example:

"profile_sidebar_fill_color":"a9d9f1"
profile_text_colorStringThe hexadecimal color the user has chosen to display text with in their Twitter UI.

Example:

"profile_text_color":"437792"
profile_use_background_imageBooleanWhen true, indicates the user wants their uploaded background image to be used.

Example:

"profile_use_background_image":true
protectedBooleanWhen true, indicates that this user has chosen to protect their Tweets. See About Public and Protected Tweets.

Example:

"protected": true
screen_nameStringThe screen name, handle, or alias that this user identifies themselves with. screen_names are unique but subject to change. Use id_str as a user identifier whenever possible. Typically a maximum of 15 characters long, but some historical accounts may exist with longer names.

Example:

"screen_name":"twitterapi"
show_all_inline_mediaBooleanIndicates that the user would like to see media inline. Somewhat disused.

Example:

"show_all_inline_media": false
statusTweetsNullable. If possible, the user’s most recent tweet or retweet. In some circumstances, this data cannot be provided and this field will be omitted, null, or empty. Perspectival attributes within tweets embedded within users cannot always be relied upon. See Why are embedded objects stale or inaccurate?.

Example:

"status": {
    "coordinates": null,
    "favorited": false,
    "truncated": false,
    "created_at": "Tue Apr 17 16:38:18 +0000 2012",
    "id_str": "192290904646754304",
    "entities": {
      "urls": [

      ],
      "hashtags": [

      ],
      "user_mentions": [
        {
          "name": "Micah McVicker",
          "id_str": "166661446",
          "id": 166661446,
          "indices": [
            0,
            14
          ],
          "screen_name": "MicahMcVicker"
        }
      ]
    },
    "in_reply_to_user_id_str": "166661446",
    "contributors": null,
    "text": "@MicahMcVicker make sure you're using include_rts=true and no other filters, then walking your timeline by since_id and max_id",
    "retweet_count": 0,
    "in_reply_to_status_id_str": "192290470427246594",
    "id": 192290904646754304,
    "geo": null,
    "retweeted": false,
    "in_reply_to_user_id": 166661446,
    "place": null,
    "in_reply_to_screen_name": "MicahMcVicker",
    "source": "YoruFukurou",
    "in_reply_to_status_id": 192290470427246594
  },
statuses_countIntThe number of tweets (including retweets) issued by the user.

Example:

"statuses_count": 42
time_zoneStringNullable. A string describing the Time Zone this user declares themselves within.

Example:

"time_zone":"Pacific Time (US & Canada)"
urlStringNullable. A URL provided by the user in association with their profile.

Example:

"url":"http:\/\/dev.twitter.com"
utc_offsetIntNullable. The offset from GMT/UTC in seconds.

Example:

"utc_offset": -18000
verifiedBooleanWhen true, indicates that the user has a verified account. See Verified Accounts.

Example:

"verified": false
withheld_in_countriesStringWhen present, indicates a textual representation of the two-letter country codes this user is withheld from.

Example:

"withheld_in_countries": "GR, HK, MY"
withheld_scopeStringWhen present, indicates whether the content being withheld is the “status” or a “user.”

Example:

"withheld_scope": "user"