# 檢查追蹤關係

**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"
    }
  }
}
```
