# Generated by ShowAPI OpenAPI generator
# source: market/1817
# generated-at: 2026-06-26T06:45:19.016Z
openapi: 3.0.3
info:
  title: 短网址生成
  description: 根据提供的有效长网址，进行相应转换，生成180天有效、省空间的短网址。解决长网址传播受限的问题，缩短网址字符数，易于传播。广泛应用于APP分享、短信营销拍档、二维码简化等应用场景。
  termsOfService: https://www.showapi.com/helpcenter/view#/4019/2
  version: 1.0.0
servers:
  - url: https://route.showapi.com
paths:
  /1817-1:
    x-pointCode: 1
    x-mode: mapping
    x-read-timeout: 60
    x-connect-timeout: 60
    post:
      summary: 短链接生成
      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: 提示信息
                          shortUrl:
                            type: string
                            description: 短网址
                          originalUrl:
                            type: string
                            description: 原网址
                        description: 业务返回体
      operationId: 1817_1_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                url:
                  type: string
                  description: 需要缩短的网址
              required:
                - url
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/1817?tab=book
x-apiCode: "1817"
x-is-own: true
x-is-op: true
