# Generated by ShowAPI OpenAPI generator
# source: market/170
# generated-at: 2026-06-25T17:26:09.196Z
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:
  /170-48:
    x-pointCode: 48
    x-mode: mapping
    x-read-timeout: 5
    x-connect-timeout: 5
    post:
      summary: 区域查询
      description: 中国的区域查询
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          cityList:
                            type: array
                            items:
                              type: object
                              properties:
                                areaId:
                                  type: string
                                  description: 地区id
                                areaName:
                                  type: string
                                  description: 地区名字
                            description: 返回的区域列表
                          ret_code:
                            type: string
                            description: 0为成功，其他为失败
                        description: 业务返回体
      operationId: 170_48_POST
      parameters: []
  /170-47:
    x-pointCode: 47
    x-mode: mapping
    x-read-timeout: 15
    x-connect-timeout: 10
    post:
      summary: 根据地区查询新闻
      description: 查询具体行政区划内的新闻
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          pagebean:
                            type: array
                            items:
                              type: object
                              properties:
                                allNum:
                                  type: number
                                  description: 所有记录数
                                allPages:
                                  type: number
                                  description: 所有页数
                                currentPage:
                                  type: number
                                  description: 当前页
                                maxResult:
                                  type: number
                                  description: 每页最大记录数
                                contentlist:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      title:
                                        type: string
                                        description: 新闻标题
                                      link:
                                        type: string
                                        description: 新闻详情链接
                                      pubDate:
                                        type: string
                                        description: 发布时间
                                      source:
                                        type: string
                                        description: 来源网站
                                      desc:
                                        type: string
                                        description: 新闻简要描述
                                      areaId:
                                        type: string
                                        description: 地区id
                                      areaName:
                                        type: string
                                        description: 地区名称
                                      imageurls:
                                        type: string
                                        description: 图片列表
                                  description: 数据条目列表
                            description: 分页数据结构
                          ret_code:
                            type: string
                            description: 0为成功，其他失败
                        description: 业务返回体
      operationId: 170_47_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                areaId:
                  type: string
                  description: 地区id
                areaName:
                  type: string
                  description: 地区名称
                title:
                  type: string
                  description: 新闻标题
                page:
                  type: string
                  description: 页数
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/170?tab=book
x-apiCode: "170"
x-is-own: false
x-is-op: true
