> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get account API usage



## OpenAPI

````yaml /openapi.json get /usage
openapi: 3.1.0
info:
  title: AMZ Downloader API
  version: 1.0.0
  description: >-
    Extract Amazon product media, inspect asynchronous jobs, and convert Amazon
    HLS video. REST and MCP share customer accounts and credits. Successful
    media retrievals and conversions each cost 1 credit; polling, failures, and
    idempotent replays are free.
servers:
  - url: https://amzdownloader.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Discovery
  - name: Extraction
  - name: Media
  - name: Account
paths:
  /usage:
    get:
      tags:
        - Account
      summary: Get account API usage
      operationId: getUsage
      responses:
        '200':
          description: Shared credit balance and API usage
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, or revoked API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Resource unavailable to this account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Idempotency conflict or request still running
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: Job expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request too large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: Expected application/json
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Amazon extraction could not be completed; reserved credits released
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or concurrency limit exceeded; retry after the indicated delay
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: Extraction or conversion service failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Service unavailable; retry after the indicated delay
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    UsageResponse:
      type: object
      description: >-
        Customer credit balance, current usage period, API request totals, and
        configured limits.
      additionalProperties: true
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
          additionalProperties: false
        requestId:
          type: string
      required:
        - error
        - requestId
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Customer API key created in /dashboard/api-keys. Never place keys in
        query strings.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.