# フォロー関係を確認

**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 をフォローしているか」を 1 回のリクエストで答えます。関係フラグは `data` の下に返されます。

### 料金の参考情報

- 計測方法：成功リクエストあたりの固定コスト基準。
- 参考リクエスト見積もり：0.001 USD。
- 参照用の顧客乗数：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"
    }
  }
}
```
