# query rotation proxy distribution

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/node/flat_distribution/rotation:
    post:
      summary: query rotation proxy distribution
      deprecated: false
      description: ''
      tags:
        - Rotation proxy/distribution
        - distribution
      parameters:
        - name: Authorization
          in: header
          description: ''
          example: Bearer {{AUTH_TOKEN}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                next_level:
                  description: >-
                    distribution level, one of these value,
                    "country","region","city","isp"
                  type: string
                is_datacenter:
                  type: boolean
                  description: true => datacenter, false => residential
                country_code:
                  type: string
                  description: if next level is region, city or isp, country_code is needed
                node_count_filter:
                  type: integer
                  description: default is 1, max is 100, only show location >= filter_value
                region:
                  type: string
                  description: if next level is city, region is needed
                stable_type:
                  type: string
                  description: |-
                    "short_session","middle_session", or "long_session"
                    short_session <=30min
                    middle_session 1-2hours
                    long_session 12-24hours
              x-apifox-refs: {}
              x-apifox-orders:
                - stable_type
                - is_datacenter
                - next_level
                - country_code
                - region
                - node_count_filter
              required:
                - next_level
                - is_datacenter
                - node_count_filter
                - stable_type
            example:
              stable_type: short_session
              next_level: country
              is_datacenter: true
              Region: ''
              country_code: ''
              node_count_filter: 10
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  meta_message:
                    type: string
                    description: success or other error msg
                  meta_status:
                    type: integer
                    description: 1 for success, negative for error
                  distribution_map:
                    description: map[location]
                    type: object
                    additionalProperties:
                      type: integer
                    x-apifox-orders: []
                    properties: {}
                x-apifox-refs: {}
                x-apifox-orders:
                  - meta_message
                  - meta_status
                  - distribution_map
                required:
                  - meta_message
                  - meta_status
                  - distribution_map
          headers: {}
          x-apifox-name: result
      security: []
      x-apifox-folder: Rotation proxy/distribution
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/2880121/apis/api-89294222-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.ipcola.com
    description: ipcola
security: []

```
