How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Prometheus Query API

PromQL instant and range query endpoints for evaluating expressions against the time series database.

Prometheus Query API is one of 14 APIs that Prometheus publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 1 JSON Schema definition.

Tagged areas include Query. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a GitHub repository, a changelog, an AsyncAPI specification, and 1 JSON Schema.

This API exposes 5 operations across 3 paths, and defines 9 schemas. It is described by OpenAPI 3.2.0, at version v0.28.0.

Requests are made against a single base URL, http://{host}:{port}.

5 operations 3 paths 9 schemas 3 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
v0.28.0
Server
http://{host}:{port}
License
Resource Areas
1

Paths & Operations 5

Across 3 paths, the API surfaces 5 operations — 3 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Query 5

PromQL instant and range query endpoints for evaluating expressions against the time series database.

GET
/api/v1/query
Prometheus Execute instant query
queryInstant 3 params → 200400422503
POST
/api/v1/query
Prometheus Execute instant query (POST)
queryInstantPost body → 200400
GET
/api/v1/query_range
Prometheus Execute range query
queryRange 5 params → 200400422
POST
/api/v1/query_range
Prometheus Execute range query (POST)
queryRangePost body → 200400
GET
/api/v1/query_exemplars
Prometheus Query exemplars
queryExemplars 3 params → 200400

Schemas 9

The contract defines 9 schemas that model the data the API accepts and returns. The most detailed are QueryResponse (5 properties), ErrorResponse (4 properties), MatrixSeries (2 properties), ExemplarData (2 properties). Each schema is shown below with its type and property counts.

ExemplarData
object
Exemplar data for a metric series.
2 properties
ScalarValue
array
A scalar value at a timestamp.
VectorSample
object
A single time series with one value at a specific timestamp (instant query result).
2 properties 2 required
QueryData
object
The result data from a query, containing the result type and values.
2 properties 2 required
ErrorResponse
object
Error response from the Prometheus API.
4 properties 3 required
SamplePair
array
A [timestamp, value] pair where timestamp is a Unix float and value is a string-encoded float.
MatrixSeries
object
A time series with multiple values over a time range (range query result).
2 properties 2 required
ExemplarResponse
object
Response containing exemplars for a query.
2 properties 2 required
QueryResponse
object
Standard response envelope for query results.
5 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

prometheus-query-api-openapi.yml Raw ↑

Other APIs Prometheus publishes across the network.

Prometheus Remote Write API
Prometheus Client Libraries
Prometheus Admin API
Prometheus Alerts API
Prometheus Lifecycle API
Prometheus Metadata API
Prometheus Metrics API
Prometheus Receivers API
Prometheus Rules API
Prometheus Silences API
Prometheus Status API
Prometheus Targets API
Where this information came from

This is an independent, third-party profile of Prometheus Query API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.