---
title: "Check the follow relationship between two users"
method: POST
path: "/api/v1/twitter/users/relationship"
tags: ["Twitter"]
---

# Check the follow relationship between two users

`POST /api/v1/twitter/users/relationship`

## Request

- Base URL: `https://glim.sh`
- URL: `https://glim.sh/api/v1/twitter/users/relationship`
- Auth: one of:
  - none
  - API key in header `x-api-key`
  - HTTP bearer
  - API key in query parameter `apiKey`

## Request body

- object
  - `source` string, required: Source user ID or username
  - `target` string, required: Target user ID or username

## Response `200`

Result

- object
  - `data` object, required
    - `following` boolean, required
    - `followed_by` boolean, required

## Other responses

- `400`: Bad Request
- `402`: Payment Required
- `404`: Not Found
- `502`: Upstream error

---

[API](https://skmtc.dev/glim/apis/glim-sh.md) · [All operations](https://skmtc.dev/glim/apis/glim-sh/llms.txt) · [OpenAPI document](https://skmtc.dev/glim/apis/glim-sh/revisions/0094e5226d73?raw)
