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

# Get Image CDN analytics

> Return month-to-date Image CDN origin-request usage, plan allowance progress, daily request buckets, recent hourly buckets, and CDN configuration inventory. Available on every plan. Counts requests that reach Convertly rendering or origin fetch; edge/browser cache hits usually do not reach this meter.



## OpenAPI

````yaml /openapi.json get /api/cdn/analytics
openapi: 3.1.0
info:
  title: Convertly API
  version: 1.0.0
  description: >-
    Convertly provides production API endpoints for media conversion,
    compression, Image CDN delivery, Forma AI, HLS/DASH video streaming, media
    tools, async jobs, workflows, webhooks, and Convertly Storage.
  license:
    name: Proprietary
    url: https://convertly.sh/terms
servers:
  - url: https://convertly.sh
security:
  - bearerAuth: []
  - apiKeyAuth: []
paths:
  /api/cdn/analytics:
    get:
      tags:
        - Image CDN
      summary: Get Image CDN analytics
      description: >-
        Return month-to-date Image CDN origin-request usage, plan allowance
        progress, daily request buckets, recent hourly buckets, and CDN
        configuration inventory. Available on every plan. Counts requests that
        reach Convertly rendering or origin fetch; edge/browser cache hits
        usually do not reach this meter.
      operationId: getCdnAnalytics
      responses:
        '200':
          description: Image CDN analytics
          content:
            application/json:
              schema:
                type: object
                properties:
                  plan:
                    type: string
                    enum:
                      - free
                      - starter
                      - pro
                      - business
                      - enterprise
                  period:
                    type: object
                    properties:
                      windowStart:
                        type: string
                        format: date-time
                      windowEnd:
                        type: string
                        format: date-time
                    required:
                      - windowStart
                      - windowEnd
                  totals:
                    type: object
                    properties:
                      originRequests:
                        type: integer
                        minimum: 0
                      limit:
                        type: integer
                        minimum: 0
                      usedPercent:
                        type: number
                        minimum: 0
                      remaining:
                        type: integer
                        minimum: 0
                      averageDaily:
                        type: number
                        minimum: 0
                      projectedMonth:
                        type: integer
                        minimum: 0
                      peakDay:
                        type: object
                        properties:
                          date:
                            type: string
                            format: date
                          requests:
                            type: integer
                            minimum: 0
                        required:
                          - date
                          - requests
                    required:
                      - originRequests
                      - limit
                      - usedPercent
                      - remaining
                      - averageDaily
                      - projectedMonth
                      - peakDay
                  daily:
                    type: array
                    items:
                      type: object
                      properties:
                        date:
                          type: string
                          format: date
                        requests:
                          type: integer
                          minimum: 0
                      required:
                        - date
                        - requests
                  recentHours:
                    type: array
                    items:
                      type: object
                      properties:
                        hour:
                          type: string
                          format: date-time
                        requests:
                          type: integer
                          minimum: 0
                      required:
                        - hour
                        - requests
                  inventory:
                    type: object
                    properties:
                      namespaces:
                        type: object
                        properties:
                          total:
                            type: integer
                            minimum: 0
                          active:
                            type: integer
                            minimum: 0
                          public:
                            type: integer
                            minimum: 0
                          signed:
                            type: integer
                            minimum: 0
                          private:
                            type: integer
                            minimum: 0
                        required:
                          - total
                          - active
                          - public
                          - signed
                          - private
                      origins:
                        type: object
                        properties:
                          total:
                            type: integer
                            minimum: 0
                          enabled:
                            type: integer
                            minimum: 0
                          managed:
                            type: integer
                            minimum: 0
                        required:
                          - total
                          - enabled
                          - managed
                      domains:
                        type: object
                        properties:
                          total:
                            type: integer
                            minimum: 0
                          active:
                            type: integer
                            minimum: 0
                        required:
                          - total
                          - active
                    required:
                      - namespaces
                      - origins
                      - domains
                  notes:
                    type: object
                    properties:
                      meter:
                        type: string
                        example: origin_requests
                      description:
                        type: string
                    required:
                      - meter
                      - description
                required:
                  - plan
                  - period
                  - totals
                  - daily
                  - recentHours
                  - inventory
                  - notes
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '500':
          $ref: '#/components/responses/Error'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  responses:
    Error:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        upgradeUrl:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Dashboard-generated Convertly API key. Keys currently begin with
        `cvly_`.
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Alternative API key header for server-side clients.

````