VictoriaMetrics Query API
Prometheus-compatible query endpoints (PromQL / MetricsQL)
Prometheus-compatible query endpoints (PromQL / MetricsQL)
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/victoriametrics-query-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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: 3.2.0
info:
title: VictoriaMetrics HTTP Admin Query API
version: '1'
description: 'VictoriaMetrics is a fast open-source time-series database. It exposes a
Prometheus-compatible HTTP query API plus a wide range of ingestion and
export endpoints (JSON, CSV, Prometheus text exposition, native binary,
InfluxDB Line Protocol, DataDog v1/v2, Graphite, OpenTSDB, federation).
Authentication is optional and typically delegated to vmauth or fronted
by mTLS.
'
contact:
name: VictoriaMetrics Documentation
url: https://docs.victoriametrics.com/
license:
name: Apache-2.0
url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: http://{host}:{port}
description: VictoriaMetrics single-node instance
variables:
host:
default: localhost
port:
default: '8428'
security: []
tags:
- name: Query
description: Prometheus-compatible query endpoints (PromQL / MetricsQL)
paths:
/api/v1/query:
get:
tags:
- Query
summary: Perform a PromQL/MetricsQL instant query
operationId: instantQuery
parameters:
- name: query
in: query
required: true
schema:
type: string
- name: time
in: query
schema:
type: string
- name: timeout
in: query
schema:
type: string
responses:
'200':
description: Query result
post:
tags:
- Query
summary: Perform a PromQL/MetricsQL instant query (POST form)
operationId: instantQueryPost
responses:
'200':
description: Query result
/api/v1/query_range:
get:
tags:
- Query
summary: Range query over a time period
operationId: rangeQuery
parameters:
- name: query
in: query
required: true
schema:
type: string
- name: start
in: query
required: true
schema:
type: string
- name: end
in: query
required: true
schema:
type: string
- name: step
in: query
required: true
schema:
type: string
responses:
'200':
description: Range query result
post:
tags:
- Query
operationId: rangeQueryPost
summary: Range query (POST form)
responses:
'200':
description: Range query result
/api/v1/labels:
get:
tags:
- Query
summary: Retrieve label names within a time range
operationId: getLabels
responses:
'200':
description: List of label names
/api/v1/label/{label}/values:
get:
tags:
- Query
summary: Get all values for a specific label
operationId: getLabelValues
parameters:
- name: label
in: path
required: true
schema:
type: string
responses:
'200':
description: List of label values
/api/v1/series:
get:
tags:
- Query
summary: Return series matching label matchers
operationId: getSeries
parameters:
- name: match[]
in: query
schema:
type: array
items:
type: string
responses:
'200':
description: Series list
post:
tags:
- Query
operationId: getSeriesPost
summary: Return series (POST form)
responses:
'200':
description: Series list
/api/v1/status/tsdb:
get:
tags:
- Query
summary: Cardinality and TSDB statistics
operationId: getTsdbStatus
responses:
'200':
description: TSDB status
/api/v1/metadata:
get:
tags:
- Query
summary: Get stored metrics metadata
operationId: getMetadata
responses:
'200':
description: Metadata
components:
securitySchemes:
basic:
type: http
scheme: basic
description: Optional HTTP Basic auth when fronted by vmauth