---
title: "Read request rates, latencies and data freshness"
method: GET
path: "/metrics"
tags: ["meta"]
---

# Read request rates, latencies and data freshness

`GET /metrics`

## Request

- Base URL: `https://api.mapsource.io`
- URL: `https://api.mapsource.io/metrics`
- Auth: HTTP bearer

Request rates, success rates, p50/p95/p99 latency, failure counters, dataset ages, and handle usage for the selected time window.

When to use: Monitor performance and identify slow operations or stale datasets.

When not to use: Use /api/status for current service availability.

## Query parameters

- `window` integer

## Response `200`

Read request rates, latencies and data freshness

- object
  - `schema` string
  - `windowMinutes` integer
  - `since` string
  - `operations` object[]
    - `operation` string
    - `route` string
    - `requests` integer
    - `successRate` number
    - `p50Ms` integer
    - `p95Ms` integer
    - `p99Ms` integer
  - `counters` object
  - `freshness` object
    - `osmReplicationLagSeconds` integer, nullable
    - `osmDatasetAgeSeconds` integer, nullable
    - `routingGraphAgeSeconds` integer, nullable
    - `placesIndexAgeSeconds` integer, nullable
  - `handles` object

## Other responses

- `400`: Error with a stable machine code.
- `401`: Error with a stable machine code.
- `429`: Error with a stable machine code.
- `500`: Error with a stable machine code.

---

[API](https://skmtc.dev/mapsource/apis/mapsource-overpass-api.md) · [All operations](https://skmtc.dev/mapsource/apis/mapsource-overpass-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mapsource/apis/mapsource-overpass-api/revisions/8af8c2769e7b?raw)
