# 获取陌生人信息

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /get_stranger_info:
    post:
      summary: 获取陌生人信息
      deprecated: false
      description: 获取指定非好友用户的信息
      tags:
        - Go-CQHTTP
        - Go-CQHTTP
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  description: 用户QQ
                  type: string
                no_cache:
                  default: false
                  description: 是否不使用缓存
                  anyOf:
                    - type: boolean
                    - type: string
              required:
                - user_id
                - no_cache
              x-apifox-orders:
                - user_id
                - no_cache
              x-apifox-ignore-properties: []
            examples:
              Default:
                value:
                  user_id: '123456789'
                summary: 默认请求示例
      responses:
        '200':
          description: 业务响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/BaseResponse'
                  - type: object
                    required:
                      - data
                    properties:
                      data:
                        description: 业务数据
                        type: object
                        properties:
                          user_id:
                            description: 用户QQ
                            type: number
                          uid:
                            description: UID
                            type: string
                          nickname:
                            description: 昵称
                            type: string
                          age:
                            description: 年龄
                            type: number
                          qid:
                            description: QID
                            type: string
                          qqLevel:
                            description: QQ等级
                            type: number
                          sex:
                            description: 性别
                            type: string
                          long_nick:
                            description: 个性签名
                            type: string
                          reg_time:
                            description: 注册时间
                            type: number
                          is_vip:
                            description: 是否VIP
                            type: boolean
                          is_years_vip:
                            description: 是否年费VIP
                            type: boolean
                          vip_level:
                            description: VIP等级
                            type: number
                          remark:
                            description: 备注
                            type: string
                          status:
                            description: 状态
                            type: number
                          login_days:
                            description: 登录天数
                            type: number
                        required:
                          - user_id
                          - uid
                          - nickname
                          - age
                          - qid
                          - qqLevel
                          - sex
                          - long_nick
                          - reg_time
                          - is_vip
                          - is_years_vip
                          - vip_level
                          - remark
                          - status
                          - login_days
                        x-apifox-orders:
                          - user_id
                          - uid
                          - nickname
                          - age
                          - qid
                          - qqLevel
                          - sex
                          - long_nick
                          - reg_time
                          - is_vip
                          - is_years_vip
                          - vip_level
                          - remark
                          - status
                          - login_days
                        x-apifox-ignore-properties: []
                    x-apifox-orders:
                      - data
                    x-apifox-ignore-properties: []
              examples:
                Success:
                  summary: 成功响应
                  value:
                    status: ok
                    retcode: 0
                    data:
                      user_id: 123456789
                      nickname: 昵称
                      sex: unknown
                    message: ''
                    wording: ''
                    stream: normal-action
                Error_1400:
                  summary: 请求参数错误或业务逻辑执行失败
                  value:
                    status: failed
                    retcode: 1400
                    data: null
                    message: 请求参数错误或业务逻辑执行失败
                    wording: 请求参数错误或业务逻辑执行失败
                    stream: normal-action
                Error_1401:
                  summary: 权限不足
                  value:
                    status: failed
                    retcode: 1401
                    data: null
                    message: 权限不足
                    wording: 权限不足
                    stream: normal-action
                Error_1404:
                  summary: 资源不存在
                  value:
                    status: failed
                    retcode: 1404
                    data: null
                    message: 资源不存在
                    wording: 资源不存在
                    stream: normal-action
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: Go-CQHTTP
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5348325/apis/api-226656970-run
components:
  schemas:
    BaseResponse:
      type: object
      x-schema-id: BaseResponse
      properties:
        status:
          type: string
          description: 状态 (ok/failed)
        retcode:
          type: number
          description: 返回码
        data:
          type: string
        message:
          type: string
          description: 消息
        wording:
          type: string
          description: 提示
        stream:
          type: string
          description: 流式响应
          enum:
            - stream-action
            - normal-action
      required:
        - status
        - retcode
      x-apifox-orders:
        - status
        - retcode
        - data
        - message
        - wording
        - stream
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes: {}
servers: []
security: []

```
