Cloudinary Video Analytics API

Gets video analytics

GitHub OpenAPI

Operations 1

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1_1/{cloud_name}/video/analytics/views Get video views analytics · Get video views #
Ask an LLM
“How many views has a particular video got?”
“Can I filter video views by view duration or viewer?”
Tell an agent
Get views for {cloud_name}.
Show views in {cloud_name} matching {expression}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cloudinary:cloudinary-video-analytics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudinary-video-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloudinary Video Analytics API
  version: 0.7.10
  contact:
    name: Cloudinary Support
    email: support@cloudinary.com
    url: https://support.cloudinary.com
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  termsOfService: https://cloudinary.com/tou
  description: 'Operations tagged video_analytics across 3 of this provider''s published API definitions: cloudinary-api-schema.yml, cloudinary-asset-management-openapi.yml, cloudinary-platform-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{region}.cloudinary.com
  description: Regional API endpoints for optimal performance.
  variables:
    region:
      default: api
      description: Regional endpoint selection
      enum:
      - api
      - api-eu
      - api-ap
- url: https://{host}
  description: Custom domains for enterprise deployments.
  variables:
    host:
      default: api.cloudinary.com
      description: API host domain.
security:
- basicAuth: []
- oauth2:
  - asset_management
  - upload
  - media_generation
tags:
- name: video_analytics
  description: Gets video analytics
paths:
  /v1_1/{cloud_name}/video/analytics/views:
    get:
      summary: Get video views
      description: 'Retrieves analytics data for video views. Results can be filtered using expressions based on various criteria

        such as video public ID, view duration, viewer information, and more.'
      tags:
      - video_analytics
      operationId: getVideoViews
      parameters:
      - $ref: '#/components/parameters/cloud_name'
      - name: expression
        in: query
        required: false
        schema:
          type: string
        description: 'A set of conditions used to limit the results to rows that match those conditions. For example: `?expression=video_public_id=skate`'
      - $ref: '#/components/parameters/max_results_query'
      - name: sort_by
        in: query
        required: false
        schema:
          type: string
          enum:
          - view_ended_at
          - video_duration
          - view_watch_time
          - -view_ended_at
          - -video_duration
          - -view_watch_time
          default: -view_ended_at
        description: Specifies the expression field by which to sort the results. Prepend values with a '-' to reverse the order.
      - $ref: '#/components/parameters/next_cursor_query'
      responses:
        '200':
          description: List of video views retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/video_views_response'
              example:
                request_id: 1d39ccc69109b1cefac697957bda7952
                next_cursor: 2a54714067686dc630b44e3b863163dc
                data:
                - video_public_id: dog
                  video_duration: 100
                  video_transformation: w_100,h_100
                  video_extension: mp4
                  viewer_application_name: Chrome
                  viewer_location_country_code: US
                  viewer_os_identifier: Linux
                  view_watch_time: 313
                  view_ended_at: '2025-05-13T09:59:21.000Z'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
    servers:
    - url: https://{region}.cloudinary.com
      description: Regional API endpoints for optimal performance.
      variables:
        region:
          default: api
          description: Regional endpoint selection
          enum:
          - api
          - api-eu
          - api-ap
    - url: https://{host}
      description: Custom domains for enterprise deployments.
      variables:
        host:
          default: api.cloudinary.com
          description: API host domain.
components:
  schemas:
    video_views_response:
      type: object
      properties:
        request_id:
          type: string
          description: Unique identifier for the request.
        next_cursor:
          type: string
          description: Cursor value for pagination.
        data:
          type: array
          items:
            $ref: '#/components/schemas/video_view'
    video_view:
      type: object
      properties:
        video_public_id:
          type: string
          description: The full public ID of the video.
        video_duration:
          type:
          - number
          - 'null'
          description: The duration in seconds of the video.
        video_transformation:
          type:
          - string
          - 'null'
          description: The transformation applied to the video.
        video_extension:
          type:
          - string
          - 'null'
          description: The file extension of the video.
        viewer_application_name:
          type:
          - string
          - 'null'
          description: The application used to view the video.
        viewer_location_country_code:
          type:
          - string
          - 'null'
          description: The 2-digit ISO country code of the viewer location.
        viewer_os_identifier:
          type:
          - string
          - 'null'
          description: The full identifier for the viewer's operating system.
        view_watch_time:
          type:
          - number
          - 'null'
          description: The length of time the video was viewed.
        view_ended_at:
          type: string
          format: date-time
          description: The date when the video view ended.
    api_error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
          required:
          - message
      required:
      - error
  parameters:
    cloud_name:
      name: cloud_name
      in: path
      required: true
      schema:
        type: string
      description: The cloud name of your product environment.
      example: my_cloud
    next_cursor_query:
      name: next_cursor
      in: query
      required: false
      schema:
        type: string
      description: The cursor for pagination. Use the next_cursor value from a previous response to get the next page of results.
    max_results_query:
      name: max_results
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
        maximum: 500
        default: 10
      description: The maximum number of results to return. Default is 10.
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Basic authentication using Cloudinary API Key and API Secret.
    oauth2:
      type: oauth2
      description: OAuth2 Authorization Code flow for user authentication
      flows:
        authorizationCode:
          authorizationUrl: https://oauth.cloudinary.com/oauth2/auth
          tokenUrl: https://oauth.cloudinary.com/oauth2/token
          scopes:
            asset_management: Allows managing assets, including reading, updating, and deleting.
            upload: Allows uploading new assets.
            media_generation: Generate media
x-refined-from:
- cloudinary-api-schema.yml
- cloudinary-asset-management-openapi.yml
- cloudinary-platform-openapi.yml