# 1017-App-Download & Revenue Estimates

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /analysis/download-revenue:
    post:
      summary: 1017-App-Download & Revenue Estimates
      deprecated: false
      description: Query download/revenue estimates for specified countries/regions.
      operationId: 1017_App_Download & Revenue Estimates
      tags:
        - II. List of Interfaces/1. application Services
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                appId:
                  type: string
                  description: App ID
                  examples:
                    - '1603013318'
                regions:
                  type: array
                  description: Country set; empty queries globally
                  examples:
                    - - CN
                      - US
                  items:
                    type: string
                metrics:
                  type: array
                  description: Download and revenue estimate metrics
                  examples:
                    - - REVENUE
                      - DOWNLOAD
                  items:
                    type: string
                start:
                  type: string
                  description: Start Date
                  examples:
                    - '2025-10-10'
                end:
                  type: string
                  description: End Date
                  examples:
                    - '2025-10-12'
                limit:
                  type: string
                  description: ''
                  examples:
                    - DETAILS
              x-apifox-orders:
                - appId
                - regions
                - metrics
                - start
                - end
                - limit
              x-apifox-ignore-properties: []
            example:
              appId: '895682747'
              regions:
                - CN
                - US
              metrics:
                - REVENUE
                - DOWNLOAD
              start: '2026-05-01'
              end: '2026-06-30'
              limit: DETAILS
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenApiBaseVODownloadRevenueVO'
              example:
                requestParam:
                  appId: '1603013318'
                  regions:
                    - CN
                    - US
                  metrics:
                    - REVENUE
                    - DOWNLOAD
                  start: '2025-10-10'
                  end: '2025-10-12'
                  limit: TOTAL
                result:
                  download: 0
                  revenue: 43710
                  regions:
                    - region: CN
                      download:
                        - date: '2025-10-10'
                          value: null
                        - date: '2025-10-11'
                          value: null
                        - date: '2025-10-12'
                          value: null
                      revenue:
                        - date: '2025-10-10'
                          value: null
                        - date: '2025-10-11'
                          value: null
                        - date: '2025-10-12'
                          value: null
                    - region: US
                      download:
                        - date: '2025-10-10'
                          value: null
                        - date: '2025-10-11'
                          value: null
                        - date: '2025-10-12'
                          value: null
                      revenue:
                        - date: '2025-10-10'
                          value: 14878
                        - date: '2025-10-11'
                          value: 14497
                        - date: '2025-10-12'
                          value: 14335
                creditsCost:
                  requestCredits: 0
                  baseCredits: 240
                  extraCredits: 0
                  totalCostCredits: 240
                next: null
          headers: {}
          x-apifox-name: ''
      security:
        - apikey-header-x-openapi-key: []
      x-apifox-folder: II. List of Interfaces/1. application Services
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/4128055/apis/api-478038420-run
components:
  schemas:
    OpenApiBaseVODownloadRevenueVO:
      type: object
      properties:
        requestParam:
          $ref: '#/components/schemas/DownloadRevenueParam'
          description: Your request param.
        result:
          $ref: '#/components/schemas/DownloadRevenueVO'
          description: Your response.
        creditsCost:
          $ref: '#/components/schemas/OpenApiPointCostVO'
          description: Credits cost info.
        next:
          $ref: '#/components/schemas/PaginationInfo'
          description: Next page info
      x-apifox-orders:
        - requestParam
        - result
        - creditsCost
        - next
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    PaginationInfo:
      type: object
      properties:
        taskId:
          type: string
          description: Task ID
        pageKey:
          type: string
          description: Page Key
        totalCount:
          type: integer
          description: Total Count
          format: int64
        totalPages:
          type: integer
          description: Total Pages
          format: int64
      x-apifox-orders:
        - taskId
        - pageKey
        - totalCount
        - totalPages
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    OpenApiPointCostVO:
      type: object
      properties:
        requestCredits:
          type: integer
          description: ''
        baseCredits:
          type: integer
          description: ''
        extraCredits:
          type: integer
          description: ''
        totalCostCredits:
          type: integer
          description: ''
      x-apifox-orders:
        - requestCredits
        - baseCredits
        - extraCredits
        - totalCostCredits
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    DownloadRevenueVO:
      type: object
      properties:
        download:
          type: integer
          description: ''
          format: int64
        revenue:
          type: integer
          description: ''
          format: int64
        regions:
          type: array
          items:
            $ref: '#/components/schemas/DetailVO'
            description: com.xiaoxi.openapi.model.vo.DownloadRevenueVO.DetailVO
          description: ''
      x-apifox-orders:
        - download
        - revenue
        - regions
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    DetailVO:
      type: object
      properties:
        region:
          type: string
          description: ''
        download:
          type: array
          items: &ref_0
            $ref: '#/components/schemas/DataVO'
            description: com.xiaoxi.openapi.model.vo.DownloadRevenueVO.DataVO
          description: ''
        revenue:
          type: array
          items: *ref_0
          description: ''
      x-apifox-orders:
        - region
        - download
        - revenue
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    DataVO:
      type: object
      properties:
        date:
          type: string
          description: ''
          x-apifox-mock: '@date'
        value:
          type: integer
          description: ''
          format: int64
      x-apifox-orders:
        - date
        - value
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    DownloadRevenueParam:
      type: object
      properties:
        appId:
          type: string
          description: ''
          examples:
            - com.moye.shelter
        regions:
          type: array
          items:
            type: string
          description: ''
          examples:
            - - CN
            - - CN
        metrics:
          type: array
          items:
            type: string
            enum:
              - DOWNLOAD
              - REVENUE
            x-apifox-enum:
              - value: DOWNLOAD
                name: DOWNLOAD
                description: DOWNLOAD
              - value: REVENUE
                name: REVENUE
                description: REVENUE
          description: ''
          examples:
            - - DOWNLOAD
              - REVENUE
            - - DOWNLOAD
              - REVENUE
        start:
          type: string
          description: ''
          x-apifox-mock: '@date'
          examples:
            - '2025-10-10'
        end:
          type: string
          description: ''
          x-apifox-mock: '@date'
          examples:
            - '2025-10-10'
        limit:
          type: string
          description: ''
          enum:
            - DETAILS
            - TOTAL
          x-apifox-enum:
            - value: DETAILS
              name: DETAILS
              description: DETAILS
            - value: TOTAL
              name: TOTAL
              description: TOTAL
          examples:
            - TOTAL
      x-apifox-orders:
        - appId
        - regions
        - metrics
        - start
        - end
        - limit
      required:
        - appId
        - metrics
        - start
        - end
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    apikey-header-x-openapi-key:
      type: apiKey
      in: header
      name: x-openapi-key
servers:
  - url: https://api.foxdata.com/apiv1/open-api
    description: Api Server
security:
  - apikey-header-x-openapi-key: []

```
