# Usage Result

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /account/usage/result:
    get:
      summary: Usage Result
      deprecated: false
      description: Provides API token usage, including recent requests and tokens cost.
      tags:
        - Account
        - Account
      parameters:
        - name: ticket_id
          in: query
          description: The id of your requested data.
          required: true
          example: 12345
          schema:
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResultResponse'
              example:
                code: 200
                data:
                  tokens_remaining: 8450
                  tokens_total: 10000
                  plan: Pro
                  period_end: 1785600000
                  recent_requests:
                    - type: /app-keywords/
                      timestamp: 1783010900
                      tokens_cost: 10
                    - type: /app-ranking/
                      timestamp: 1783010850
                      tokens_cost: 5
                    - type: /keyword-check/
                      timestamp: 1783010800
                      tokens_cost: 0
          headers: {}
          x-apidog-name: OK
      security:
        - httpBearer: []
          x-apidog:
            schemeGroups:
              - id: c2Rcqcwji_h-D0kNj6Kf2
                schemeIds:
                  - httpBearer
            required: true
            use:
              id: c2Rcqcwji_h-D0kNj6Kf2
            scopes:
              c2Rcqcwji_h-D0kNj6Kf2:
                httpBearer: []
      x-apidog-folder: Account
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1054686/apis/api-39489207-run
components:
  schemas:
    UsageResultResponse:
      title: UsageResultResponse
      type: object
      properties:
        tokens_remaining:
          type: number
          description: The number of tokens remaining in the current period.
        tokens_total:
          type: number
          description: The total number of tokens available in the current period.
        plan:
          type: string
          description: The name of the account plan.
          examples:
            - Pro
        period_end:
          type: number
          description: >-
            The end of the paid period, as a timestamp in seconds since January
            1, 1970 (UTC); null for the default unlimited plan.
          nullable: true
        recent_requests:
          type: array
          description: List of the most recent API requests.
          items:
            $ref: '#/components/schemas/UsageRecentRequestItem'
      x-apidog-orders:
        - tokens_remaining
        - tokens_total
        - plan
        - period_end
        - recent_requests
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    UsageRecentRequestItem:
      title: UsageRecentRequestItem
      type: object
      properties:
        type:
          type: string
          description: The endpoint of the request.
          examples:
            - /app-keywords/
        timestamp:
          type: number
          description: >-
            The time the request was made, as a timestamp in seconds since
            January 1, 1970 (UTC).
        tokens_cost:
          type: number
          description: The number of tokens charged for the request (0 for free methods).
      x-apidog-orders:
        - type
        - timestamp
        - tokens_cost
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    httpBearer:
      type: bearer
      scheme: bearer
servers:
  - url: https://app.asomobile.net/asomobile-public-api
    description: https://app.asomobile.net/asomobile-public-api
security:
  - httpBearer: []
    x-apidog:
      schemeGroups:
        - id: H6Q1wpf6eVEN9EbufNd1p
          schemeIds:
            - httpBearer
      required: true
      use:
        id: H6Q1wpf6eVEN9EbufNd1p
      scopes:
        H6Q1wpf6eVEN9EbufNd1p:
          httpBearer: []

```
