# Generated by ShowAPI OpenAPI generator
# source: market/2964
# generated-at: 2026-06-25T21:55:24.180Z
openapi: 3.0.3
info:
  title: 成语词典
  description: 用户可以根据成语的一部分或整个成语进行搜索，返回接口为成语的详细解释，包括其字面意思和比喻意义，来源，也包含可能的历史故事或典故。
  termsOfService: https://www.showapi.com/helpcenter/view#/4019/2
  version: 1.0.0
servers:
  - url: https://route.showapi.com
paths:
  /2964-3:
    x-pointCode: 3
    x-mode: mapping
    x-read-timeout: 30
    x-connect-timeout: 30
    post:
      summary: 随机成语
      description: 随机成语API接口可以随机查询成语的详细解释，让您随时随地学习和掌握成语的正确用法。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          ret_code:
                            type: string
                            description: 接口调用是否成功,0为成功,其他为失败
                          remark:
                            type: string
                            description: 提示信息
                          word:
                            type: string
                            description: 成语
                          pinyin:
                            type: string
                            description: 读音
                          explain:
                            type: string
                            description: 解释
                          derivation:
                            type: string
                            description: 出处
                          sample:
                            type: string
                            description: 样本
                        description: 业务返回体
      operationId: 2964_3_POST
      parameters: []
  /2964-2:
    x-pointCode: 2
    x-mode: mapping
    x-read-timeout: 30
    x-connect-timeout: 30
    post:
      summary: 成语详情
      description: 查询成语详细解释API接口，帮助您更深入地了解和掌握成语的含义和使用场合。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          ret_code:
                            type: number
                            description: 接口调用是否成功,0为成功,其他为失败
                          remark:
                            type: string
                            description: 提示信息
                          word:
                            type: string
                            description: 成语
                          pinyin:
                            type: string
                            description: 读音
                          explain:
                            type: string
                            description: 解释
                          derivation:
                            type: string
                            description: 出处
                          sample:
                            type: string
                            description: 样本
                        description: 业务返回体
      operationId: 2964_2_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                id:
                  type: string
                  description: 成语id
                word:
                  type: string
                  description: 成语
  /2964-1:
    x-pointCode: 1
    x-mode: mapping
    x-read-timeout: 30
    x-connect-timeout: 30
    post:
      summary: 搜索成语
      description: 关键字搜索成语API接口提供了丰富的成语资源，让您轻松查询、学习和使用成语。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          ret_code:
                            type: number
                            description: 接口调用是否成功,0为成功,其他为失败
                          remark:
                            type: string
                            description: 提示信息
                          list:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  description: 成语Id
                                word:
                                  type: string
                                  description: 成语
                            description: 成语列表
                          maxResult:
                            type: number
                            description: 当前页返回最大值
                          currentPage:
                            type: number
                            description: 当前页码
                          allNum:
                            type: number
                            description: 总数
                          allPages:
                            type: number
                            description: 总页数
                        description: 业务返回体
      operationId: 2964_1_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                keyword:
                  type: string
                  description: 关键字
                page:
                  type: string
                  description: 查询页码
              required:
                - keyword
components:
  securitySchemes:
    AppKeyAuth:
      type: apiKey
      in: query
      name: appKey
      description: 从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp
  schemas:
    ShowapiResEnvelope:
      type: object
      description: ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）
      properties:
        showapi_res_code:
          type: integer
          description: API 返回的状态码
        showapi_res_error:
          type: string
          description: API 返回的错误信息
        showapi_res_id:
          type: string
          description: API 请求的唯一标识
        showapi_fee_num:
          type: integer
          description: API 调用计费次数
security:
  - AppKeyAuth: []
externalDocs:
  url: https://www.showapi.com/apiGateway/view/2964?tab=book
x-apiCode: "2964"
x-is-own: true
x-is-op: true
