> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sorsa.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 检查关注关系

> 检查一个账号是否关注另一个账号。User 1 是应被关注的账号，User 2 是待检查的账号。例如：“Elon Musk（user_2）是否关注 SorsaApp（user_1）？”每一方仅传入一个标识符：链接、用户名或 ID。存在关注关系时返回 follow: true；被检查用户为私密账号时返回 user_protected: true。



## OpenAPI

````yaml openapi-zh-Hans.json POST /check-follow
openapi: 3.0.3
info:
  contact: {}
  title: Sorsa.io API
  version: '3.0'
servers:
  - url: https://api.sorsa.io/v3
security: []
paths:
  /check-follow:
    post:
      tags:
        - 行为验证
      summary: 检查关注关系
      description: >-
        检查一个账号是否关注另一个账号。User 1 是应被关注的账号，User 2 是待检查的账号。例如：“Elon Musk（user_2）是否关注
        SorsaApp（user_1）？”每一方仅传入一个标识符：链接、用户名或 ID。存在关注关系时返回 follow:
        true；被检查用户为私密账号时返回 user_protected: true。
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/verification.CheckFollowReq'
        description: 提供 project_handle 或 project_id，以及 user_link、username 或 user_id
        required: true
        x-originalParamName: payload
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/verification.CheckFollowResp'
          description: 成功
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: 请求无效
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: 未授权
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: 禁止访问
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: 未找到
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: 请求过多
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: 服务器内部错误
      security:
        - ApiKeyAuth: []
components:
  schemas:
    verification.CheckFollowReq:
      properties:
        user_id_1:
          example: '44196397'
          type: string
        user_id_2:
          example: '44196397'
          type: string
        user_link_1:
          example: https://twitter.com/elonmusk
          type: string
        user_link_2:
          example: https://twitter.com/elonmusk
          type: string
        username_1:
          example: elonmusk
          type: string
        username_2:
          example: elonmusk
          type: string
      type: object
    verification.CheckFollowResp:
      properties:
        follow:
          description: 用户关注目标账号时为 `true`。
          example: true
          type: boolean
        user_protected:
          description: 被检查用户的账号受保护时为 `true`。
          example: false
          type: boolean
      type: object
    handler.ErrorResponse:
      properties:
        message:
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: ApiKey
      type: apiKey

````