GET account/verify_credentials

Updated on Wed, 2012-09-05 10:22

Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not. Use this method to test if supplied user credentials are valid.

Resource URL

https://api.twitter.com/1.1/account/verify_credentials.json

Parameters

include_entities optional

The entities node will not be included when set to false.

Example Values: false

skip_status optional

When set to either true, t or 1 statuses will not be included in the returned user objects.

Example Values: true

Example Request

GET

https://api.twitter.com/1.1/account/verify_credentials.json


  1. {
  2.     "contributors_enabled": true, 
  3.     "created_at": "Sat May 09 17:58:22 +0000 2009", 
  4.     "default_profile": false, 
  5.     "default_profile_image": false, 
  6.     "description": "I taught your phone that thing you like.  The Mobile Partner Engineer @Twitter. ", 
  7.     "favourites_count": 588, 
  8.     "follow_request_sent": null, 
  9.     "followers_count": 10625, 
  10.     "following": null, 
  11.     "friends_count": 1181, 
  12.     "geo_enabled": true, 
  13.     "id": 38895958, 
  14.     "id_str": "38895958", 
  15.     "is_translator": false, 
  16.     "lang": "en", 
  17.     "listed_count": 190, 
  18.     "location": "San Francisco", 
  19.     "name": "Sean Cook", 
  20.     "notifications": null, 
  21.     "profile_background_color": "1A1B1F", 
  22.     "profile_background_image_url": "http://a0.twimg.com/profile_background_images/495742332/purty_wood.png", 
  23.     "profile_background_image_url_https": "https://si0.twimg.com/profile_background_images/495742332/purty_wood.png", 
  24.     "profile_background_tile": true, 
  25.     "profile_image_url": "http://a0.twimg.com/profile_images/1751506047/dead_sexy_normal.JPG", 
  26.     "profile_image_url_https": "https://si0.twimg.com/profile_images/1751506047/dead_sexy_normal.JPG", 
  27.     "profile_link_color": "2FC2EF", 
  28.     "profile_sidebar_border_color": "181A1E", 
  29.     "profile_sidebar_fill_color": "252429", 
  30.     "profile_text_color": "666666", 
  31.     "profile_use_background_image": true, 
  32.     "protected": false, 
  33.     "screen_name": "theSeanCook", 
  34.     "show_all_inline_media": true, 
  35.     "status": {
  36.         "contributors": null, 
  37.         "coordinates": {
  38.             "coordinates": [
  39.                 -122.45037293, 
  40.                 37.76484123
  41.             ], 
  42.             "type": "Point"
  43.         }, 
  44.         "created_at": "Tue Aug 28 05:44:24 +0000 2012", 
  45.         "favorited": false, 
  46.         "geo": {
  47.             "coordinates": [
  48.                 37.76484123, 
  49.                 -122.45037293
  50.             ], 
  51.             "type": "Point"
  52.         }, 
  53.         "id": 240323931419062272, 
  54.         "id_str": "240323931419062272", 
  55.         "in_reply_to_screen_name": "messl", 
  56.         "in_reply_to_status_id": 240316959173009410, 
  57.         "in_reply_to_status_id_str": "240316959173009410", 
  58.         "in_reply_to_user_id": 18707866, 
  59.         "in_reply_to_user_id_str": "18707866", 
  60.         "place": {
  61.             "attributes": {}, 
  62.             "bounding_box": {
  63.                 "coordinates": [
  64.                     [
  65.                         [
  66.                             -122.45778216, 
  67.                             37.75932999
  68.                         ], 
  69.                         [
  70.                             -122.44248216, 
  71.                             37.75932999
  72.                         ], 
  73.                         [
  74.                             -122.44248216, 
  75.                             37.76752899
  76.                         ], 
  77.                         [
  78.                             -122.45778216, 
  79.                             37.76752899
  80.                         ]
  81.                     ]
  82.                 ], 
  83.                 "type": "Polygon"
  84.             }, 
  85.             "country": "United States", 
  86.             "country_code": "US", 
  87.             "full_name": "Ashbury Heights, San Francisco", 
  88.             "id": "866269c983527d5a", 
  89.             "name": "Ashbury Heights", 
  90.             "place_type": "neighborhood", 
  91.             "url": "http://api.twitter.com/1/geo/id/866269c983527d5a.json"
  92.         }, 
  93.         "retweet_count": 0, 
  94.         "retweeted": false, 
  95.         "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter for  iPhone</a>", 
  96.         "text": "@messl congrats! So happy for all 3 of you.", 
  97.         "truncated": false
  98.     }, 
  99.     "statuses_count": 2609, 
  100.     "time_zone": "Pacific Time (US & Canada)", 
  101.     "url": null, 
  102.     "utc_offset": -28800, 
  103.     "verified": false
  104. }