GET friendships/show

Updated on Sat, 2012-08-25 08:40

Returns detailed information about the relationship between two users.

Resource URL

http://api.twitter.com/1/friendships/show.format

Parameters

source_id optional

The user_id of the subject user.

Example Values: 3191321

source_screen_name optional

The screen_name of the subject user.

Example Values: raffi

target_id optional

The user_id of the target user.

Example Values: 20

target_screen_name optional

The screen_name of the target user.

Example Values: noradio

Example Request

GET

https://api.twitter.com/1/friendships/show.json?source_screen_name=kurrik&target_screen_name=episod

  1. {
  2.     "relationship": {
  3.         "target": {
  4.             "id_str": "6253282",
  5.             "following": true,
  6.             "screen_name": "twitterapi",
  7.             "followed_by": true,
  8.             "id": 6253282
  9.         },
  10.         "source": {
  11.             "id_str": "22548447",
  12.             "notifications_enabled": null,
  13.             "can_dm": true,
  14.             "following": true,
  15.             "want_retweets": null,
  16.             "screen_name": "rno",
  17.             "marked_spam": null,
  18.             "all_replies": null,
  19.             "blocking": null,
  20.             "followed_by": true,
  21.             "id": 22548447
  22.         }
  23.     }
  24. }