# 英雄百科-搜索

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/lol/search:
    get:
      summary: 英雄百科-搜索
      deprecated: false
      description: 英雄百科-搜索
      tags:
        - 作业接口
      parameters:
        - name: q
          in: query
          description: 搜索关键词
          required: true
          example: 红
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  msg:
                    type: string
                    title: 响应消息
                  code:
                    type: integer
                    title: 业务状态码
                    description: http 响应状态码都为 200 情况下，用业务状态码区分业务上的成功/失败，200成功，400失败
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        heroId:
                          type: string
                        name:
                          type: string
                        alias:
                          type: string
                        title:
                          type: string
                        roles:
                          type: array
                          items:
                            type: string
                        isWeekFree:
                          type: string
                        attack:
                          type: string
                        defense:
                          type: string
                        magic:
                          type: string
                        difficulty:
                          type: string
                        selectAudio:
                          type: string
                        banAudio:
                          type: string
                        isARAMweekfree:
                          type: string
                        ispermanentweekfree:
                          type: string
                        changeLabel:
                          type: string
                        goldPrice:
                          type: string
                        couponPrice:
                          type: string
                        camp:
                          type: string
                        campId:
                          type: string
                        keywords:
                          type: string
                        instance_id:
                          type: string
                        icon:
                          type: string
                      x-apifox-orders:
                        - heroId
                        - name
                        - alias
                        - title
                        - roles
                        - isWeekFree
                        - attack
                        - defense
                        - magic
                        - difficulty
                        - selectAudio
                        - banAudio
                        - isARAMweekfree
                        - ispermanentweekfree
                        - changeLabel
                        - goldPrice
                        - couponPrice
                        - camp
                        - campId
                        - keywords
                        - instance_id
                        - icon
                    title: 响应数据
                required:
                  - msg
                  - code
                  - data
                x-apifox-orders:
                  - msg
                  - code
                  - data
              examples:
                '1':
                  summary: '成功示例 '
                  value:
                    msg: success
                    code: 200
                    data:
                      - heroId: '8'
                        name: 猩红收割者
                        alias: Vladimir
                        title: 弗拉基米尔
                        roles:
                          - mage
                        isWeekFree: '0'
                        attack: '2'
                        defense: '6'
                        magic: '8'
                        difficulty: '7'
                        selectAudio: >-
                          https://game.gtimg.cn/images/lol/act/img/vo/choose/8.ogg
                        banAudio: https://game.gtimg.cn/images/lol/act/img/vo/ban/8.ogg
                        isARAMweekfree: '0'
                        ispermanentweekfree: '0'
                        changeLabel: 无改动
                        goldPrice: '3150'
                        couponPrice: '2500'
                        camp: ''
                        campId: ''
                        keywords: >-
                          猩红收割者,吸血鬼,弗拉基米尔,fljme,xxg,xhsgz,Vladimir,xinghongshougezhe,xixiegui,fulajimier
                        instance_id: e1d1e6dd-5480-43f5-ab68-72e26ba189c2
                        icon: >-
                          http://game.gtimg.cn/images/lol/act/img/champion/Vladimir.png
                '2':
                  summary: '异常示例 '
                  value:
                    msg: 没查到,请重新查询!
                    code: 400
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 作业接口
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/1937884/apis/api-64105410-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
