# 搜索文件或文件夹

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/fs/search:
    post:
      summary: 搜索文件或文件夹
      deprecated: false
      description: ''
      tags:
        - fs
        - fs
        - alist Copy/fs
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: true
          example: '{{alist_token}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                parent:
                  type: string
                  title: 搜索目录
                keywords:
                  type: string
                  title: 关键词
                scope:
                  type: integer
                  title: 搜索类型
                  minimum: 0
                  maximum: 2
                  default: 0
                  description: 0-全部 1-文件夹 2-文件
                  examples:
                    - 0
                page:
                  type: integer
                  title: 页数
                per_page:
                  type: integer
                  title: 每页数目
                password:
                  type: string
                  title: 密码
              required:
                - parent
                - keywords
                - scope
                - page
                - per_page
                - password
              x-apifox-orders:
                - parent
                - keywords
                - scope
                - page
                - per_page
                - password
            example:
              parent: /local
              keywords: test
              scope: 0
              page: 1
              per_page: 1
              password: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    title: 状态码
                  message:
                    type: string
                    title: 信息
                  data:
                    type: object
                    properties:
                      content:
                        type: array
                        items:
                          type: object
                          properties:
                            parent:
                              type: string
                              title: 路径
                            name:
                              type: string
                              title: 文件名
                            is_dir:
                              type: boolean
                              title: 是否是文件夹
                            size:
                              type: integer
                              title: 大小
                            type:
                              type: integer
                              title: 类型
                          required:
                            - parent
                            - name
                            - is_dir
                            - size
                            - type
                          x-apifox-orders:
                            - parent
                            - name
                            - is_dir
                            - size
                            - type
                      total:
                        type: integer
                        title: 总数
                    required:
                      - content
                      - total
                    x-apifox-orders:
                      - content
                      - total
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                code: 200
                message: success
                data:
                  content:
                    - parent: /m
                      name: 4305da1e
                      is_dir: false
                      size: 393090
                      type: 0
                  total: 1
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: fs
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/6849786/apis/api-327955417-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
