Apache APISIX Health Check API

Monitor the health status of upstream nodes.

Operations 4

GET /v1/healthcheck Apache APISIX Get All Health Check Statuses #
GET /v1/healthcheck/upstreams/{upstream_id} Apache APISIX Get Health Check for a Specific Upstream #
GET /v1/healthcheck/routes/{route_id} Apache APISIX Get Health Check for a Specific Route #
GET /v1/healthcheck/services/{service_id} Apache APISIX Get Health Check for a Specific Service #

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/apache-apisix-health-check-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

apache-apisix-health-check-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Apache APISIX Admin Consumer Groups Health Check API
  description: The Apache APISIX Admin API provides a RESTful interface to dynamically control and configure your deployed Apache APISIX instance. It allows management of routes, services, upstreams, consumers, SSL certificates, global rules, plugin configurations, consumer groups, secrets, and more. By default, the Admin API listens on port 9180 and requires API key authentication via the X-API-KEY header.
  version: 3.14.0
  contact:
    name: Apache APISIX
    url: https://apisix.apache.org
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: http://127.0.0.1:9180/apisix/admin
  description: Default local Admin API server
security:
- apiKey: []
tags:
- name: Health Check
  description: Monitor the health status of upstream nodes.
paths:
  /v1/healthcheck:
    get:
      operationId: getHealthCheck
      summary: Apache APISIX Get All Health Check Statuses
      description: Returns the health check status of all upstreams that have health checking enabled.
      tags:
      - Health Check
      responses:
        '200':
          description: Successful response with health check information.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/HealthCheckStatus'
  /v1/healthcheck/upstreams/{upstream_id}:
    get:
      operationId: getUpstreamHealthCheck
      summary: Apache APISIX Get Health Check for a Specific Upstream
      description: Returns the health check status for a specific upstream by its ID.
      tags:
      - Health Check
      parameters:
      - name: upstream_id
        in: path
        required: true
        description: The ID of the upstream resource.
        schema:
          type: string
      responses:
        '200':
          description: Successful response with upstream health status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthCheckStatus'
        '404':
          description: Upstream not found or health check not configured.
  /v1/healthcheck/routes/{route_id}:
    get:
      operationId: getRouteHealthCheck
      summary: Apache APISIX Get Health Check for a Specific Route
      description: Returns the health check status for a specific route by its ID.
      tags:
      - Health Check
      parameters:
      - name: route_id
        in: path
        required: true
        description: The ID of the route resource.
        schema:
          type: string
      responses:
        '200':
          description: Successful response with route health status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthCheckStatus'
        '404':
          description: Route not found or health check not configured.
  /v1/healthcheck/services/{service_id}:
    get:
      operationId: getServiceHealthCheck
      summary: Apache APISIX Get Health Check for a Specific Service
      description: Returns the health check status for a specific service by its ID.
      tags:
      - Health Check
      parameters:
      - name: service_id
        in: path
        required: true
        description: The ID of the service resource.
        schema:
          type: string
      responses:
        '200':
          description: Successful response with service health status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthCheckStatus'
        '404':
          description: Service not found or health check not configured.
components:
  schemas:
    HealthCheckStatus:
      type: object
      description: Health check status for an upstream or route.
      properties:
        name:
          type: string
          description: Identifier of the health-checked resource.
        type:
          type: string
          description: The source type (upstreams, routes, services).
        nodes:
          type: array
          items:
            type: object
            properties:
              ip:
                type: string
                description: IP address of the node.
              port:
                type: integer
                description: Port number of the node.
              status:
                type: string
                enum:
                - healthy
                - unhealthy
                description: Current health status of the node.
              counter:
                type: object
                properties:
                  success:
                    type: integer
                    description: Number of successful health checks.
                  http_failure:
                    type: integer
                    description: Number of HTTP health check failures.
                  tcp_failure:
                    type: integer
                    description: Number of TCP health check failures.
                  timeout_failure:
                    type: integer
                    description: Number of timeout failures.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Admin API key for authentication.