---
title: "Relationship between two accounts"
method: GET
path: "/user/friendships/show"
tags: ["Users"]
---

# Relationship between two accounts

`GET /user/friendships/show`

## Request

- Base URL: `https://api.twittrapi.com`
- URL: `https://api.twittrapi.com/user/friendships/show`
- Auth: API key in header `X-API-KEY`

Whether one account follows another, and the other way round.

Reference: https://www.twittrapi.com/docs/reference/user-friendships-show

## Query parameters

- `source_screen_name` string, required
- `target_screen_name` string, required
- `format` 'raw' | 'simple'

## Response `200`

Raw JSON of X's v1.1 friendships/show endpoint: relationship.source and relationship.target with following and followed_by.

With format=simple: {data: {source: {id, username}, target: {id, username}, following, followedBy, blocking, blockedBy, muting}}. following: source follows target.

- union: format=simple: the simple-format schema. Default (raw): X's JSON, passthrough.
  - FriendshipResult: Simple format: relationship of two accounts
    - `data` Friendship, required
      - `source` object, required
        - `id` string, required
        - `username` string, required
      - `target` object, required
        - `id` string, required
        - `username` string, required
      - `following` boolean, required: source follows target
      - `followedBy` boolean, required
      - `canDm` boolean, required
      - `blocking` boolean, required
      - `blockedBy` boolean, required
      - `muting` boolean, required
  - RawPassthrough: X's own JSON (raw format, the default), passed through unchanged. The shape is X's and can change; see https://www.twittrapi.com/docs/response-format.

## Other responses

- `400`: One of the two handles is missing.
- `401`: Missing or unknown API key. Not charged.
- `402`: No balance left, or the trial expired. Not charged. Top up in the dashboard.
- `403`: Key deactivated, or the endpoint is not in your plan (trial keys and account actions). Not charged.
- `422`: One of the two handles is not 2 to 15 letters, digits or underscores.
- `429`: Rate limit for your key exceeded. Not charged. No Retry-After header: back off exponentially.
- `500`: Something failed on our side or between us and X. Refunded (400, 407, 408, 409 or a 5xx error are refunded). Retry with backoff.

---

[API](https://skmtc.dev/twittrapi/apis/twittrapi-api.md) · [All operations](https://skmtc.dev/twittrapi/apis/twittrapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/twittrapi/apis/twittrapi-api/revisions/0618e38b54c2?raw)
