Prometheus · Example Payload

Prometheus Query Range Example

MonitoringMetricsObservabilityTime SeriesAlertingCloud-NativeCNCFOpen-SourcePromQLTelemetry

Prometheus Query Range Example is an example object payload from Prometheus, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "GET",
    "url": "http://localhost:9090/api/v1/query_range?query=rate(http_requests_total%5B5m%5D)&start=2026-05-25T17:00:00Z&end=2026-05-25T18:00:00Z&step=300"
  },
  "response": {
    "status": "success",
    "data": {
      "resultType": "matrix",
      "result": [
        {
          "metric": {
            "__name__": "http_requests_total",
            "job": "api",
            "instance": "api-01.svc:8080",
            "method": "GET",
            "status_code": "200"
          },
          "values": [
            [1748192400, "42.6"],
            [1748192700, "44.1"],
            [1748193000, "43.8"],
            [1748193300, "45.0"],
            [1748193600, "46.3"],
            [1748193900, "47.2"],
            [1748194200, "44.9"],
            [1748194500, "43.5"],
            [1748194800, "42.0"],
            [1748195100, "41.7"],
            [1748195400, "43.0"],
            [1748195700, "44.4"],
            [1748196000, "45.6"]
          ]
        }
      ]
    }
  }
}

Work with this as data

Every example 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 examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • 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 example
curl "https://apis.io/api/v1/examples/prometheus-query-range-example"
All examples
curl "https://apis.io/api/v1/examples?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.