The Wayback Machine - https://web-wp.archive.org/web/20140708201717/https://dev.twitter.com/docs/api/1.1/get/friendships/show

GET friendships/show

Updated on Tue, 2014-05-13 09:25

Returns detailed information about the relationship between two arbitrary users.

Resource URL

https://api.twitter.com/1.1/friendships/show.json

Parameters

At least one source and one target, whether specified by IDs or screen_names, should be provided to this method.

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.1/friendships/show.json?source_screen_name=bert&target_screen_name=ernie

  1. {
  2.   "relationship": {
  3.     "target": {
  4.       "id_str": "12148",
  5.       "id": 12148,
  6.       "screen_name": "ernie",
  7.       "following": false,
  8.       "followed_by": false
  9.     },
  10.     "source": {
  11.       "can_dm": false,
  12.       "blocking": null,
  13.       "muting": null,
  14.       "id_str": "8649302",
  15.       "all_replies": null,
  16.       "want_retweets": null,
  17.       "id": 8649302,
  18.       "marked_spam": null,
  19.       "screen_name": "bert",
  20.       "following": false,
  21.       "followed_by": false,
  22.       "notifications_enabled": null
  23.     }
  24.   }
  25. }