# 检查关注关系

**API:** Data API

**Endpoint:** `GET /v1/beta/twitter/user/check_follow_relationship`

**Tags:** Twitter / X

按 @handle 双向检查一个 X 用户是否关注另一个。用它做单次定向查询，而不必翻页遍历 `get_twitter_user_followers` 或 `get_twitter_user_followings`——一次请求即可回答“A 是否关注 B，B 是否关注 A”。关系标志位于 `data` 下。

### 计费参考

- 计量方式：按成功请求的固定成本计费。
- 参考请求估算：0.001 美元。
- 参考客户倍率：1.0。不得对已结算的客户金额再次应用。

仅供参考的元数据，不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `source_user_name` | query | yes | string | 来源账号的 X 用户名（@ 后面的部分），例如 OpenAI。 |
| `target_user_name` | query | yes | string | 目标账号的 X 用户名（@ 后面的部分），例如 NASA。 |

## Responses

### 200 — 成功响应

Headers:
- `X-Request-Id` (string) — 联系 Felo 支持时需提供的请求标识符。

**application/json**

Schema: `Response078307E096De_FollowRelationshipResponse` (`#/components/schemas/Response078307E096De_FollowRelationshipResponse`)

### 400 — 无法处理该请求。请检查请求参数。

### 401 — 需要有效的 Felo API 密钥。

### 402 — 由于未满足计费要求，请求无法继续。

### 403 — 该账户无权执行此操作。

### 429 — 已达到请求或支出限额。

### 502 — 服务无法完成该请求。

### 503 — API 或计费服务暂时不可用。

### 504 — 服务在处理请求时超时。

### default — 错误响应；上游透传响应可能采用提供方格式

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response078307E096De_FollowRelationshipResponse

`#/components/schemas/Response078307E096De_FollowRelationshipResponse`

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "following": {
          "type": "boolean"
        },
        "followed_by": {
          "type": "boolean"
        }
      }
    },
    "status": {
      "type": "string",
      "enum": [
        "success",
        "error"
      ]
    },
    "message": {
      "type": "string"
    }
  }
}
```
