Kubex (Densify) Container Optimization API

The Kubex (formerly Densify) Container Optimization REST API returns machine-learned right-sizing recommendations for Kubernetes container manifests across EKS, AKS, GKE, OKE, OpenShift, NKP, RKE2, K3S and self-managed clusters. It lists the clusters Kubex is collecting from, walks the namespace/pod/container tree for one cluster, and returns recommended CPU and memory requests and limits — with a detailed representation that adds predicted uptime, OOM-kill counts over the last seven days, node group and audit history. Read-only with respect to the cluster: changes are applied by the in-cluster Kubex Automation Engine under its own policy CRDs.

Operations 2

GET /kubernetes/clusters List Kubernetes clusters #
GET /kubernetes/clusters/{clusterName} Get details for a Kubernetes cluster #

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/container-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

densify-kubernetes-kubernetes-clusters-openapi.yaml Raw ↑
openapi: 3.0.3
info:
  title: Kubex API – Kubernetes Clusters
  version: 1.0.0
  description: |
    Endpoints to list Kubernetes clusters configured in the data forwarder
    and to retrieve structured details for a specific cluster. No filtering
    is applied. Unlike the /systems and /results endpoints, these do not
    require an analysis ID.
servers:
  - url: https://{host}/api/v2
    variables:
      host:
        default: api.example.com
        description: Replace with your Kubex API host
tags:
  - name: Kubernetes Clusters
    description: Clusters discovered via the data forwarder
paths:
  /kubernetes/clusters:
    get:
      tags: [Kubernetes Clusters]
      summary: List Kubernetes clusters
      operationId: listKubernetesClusters
      description: Returns all clusters from which data is being collected. No filtering is applied.
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Array of clusters
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ClusterSummary'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/ServerError'

  /kubernetes/clusters/{clusterName}:
    get:
      tags: [Kubernetes Clusters]
      summary: Get details for a Kubernetes cluster
      operationId: getKubernetesClusterDetails
      description: Returns namespaces, pods, and containers for the specified cluster.
      security:
        - bearerAuth: []
      parameters:
        - $ref: '#/components/parameters/k8s_clusterName'
      responses:
        '200':
          description: Cluster details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClusterDetails'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Cluster not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          $ref: '#/components/responses/ServerError'

components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

  parameters:
    k8s_clusterName:
      name: clusterName
      in: path
      required: true
      description: Unique cluster name from /kubernetes/clusters or the Kubex UI Connections tab.
      schema:
        type: string

  schemas:
    ClusterSummary:
      type: object
      properties:
        cluster:
          type: string
          description: Cluster name as specified in config.yaml.
        firstCollectionTime:
          type: string
          format: date-time
          description: When data collection started (UTC).
        lastCollectionTime:
          type: string
          format: date-time
          description: Most recent data collection time (UTC).
        nodeCount:
          type: string
          description: Number of nodes discovered in the cluster.
        nodeGroupCount:
          type: string
          description: Number of node groups discovered in the cluster.
        containerCount:
          type: string
          description: Number of containers discovered in the cluster.
        kubexAgentVersion:
          type: string
          description: Data forwarder (Kubex agent) version.
        kubernetesVersion:
          type: string
          description: Kubernetes version.
        prometheusVersion:
          type: string
          description: Prometheus version.

    ClusterDetails:
      allOf:
        - $ref: '#/components/schemas/ClusterSummary'
        - type: object
          properties:
            namespaces:
              type: array
              description: Namespaces discovered in the cluster.
              items:
                $ref: '#/components/schemas/Namespace'

    Namespace:
      type: object
      properties:
        namespace:
          type: string
          description: Namespace name.
        pods:
          type: array
          items:
            $ref: '#/components/schemas/Pod'

    Pod:
      type: object
      properties:
        podOwnerName:
          type: string
          description: The owner (controller) name for the pod.
        containers:
          type: array
          description: Container names in the pod.
          items:
            type: string

    Error:
      type: object
      properties:
        status:
          type: integer
        message:
          type: string

  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'