---
title: "Get post monitor metrics"
method: GET
path: "/api/v1/monitors/posts/{id}/metrics"
tags: ["Monitors"]
---

# Get post monitor metrics

`GET /api/v1/monitors/posts/{id}/metrics`

## Request

- Base URL: `https://xquik.com`
- URL: `https://xquik.com/api/v1/monitors/posts/{id}/metrics`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Returns 1 bucket per hour with each metric's value at the hour's end & its gain over that hour. The last bucket is the current hour. Hours before tracking began carry the starting values with a gain of 0.

## Path parameters

- `id` string, required

## Query parameters

- `hours` integer

## Response `200`

Hourly metric buckets

- PostMonitorMetrics: Hourly metric buckets of 1 post monitor, oldest first.
  - `hours` integer, required
  - `buckets` object[], required
    - `at` string, date-time, required: Start of the hour.
    - `metrics` object, required
      - `views` PostMetricPoint, required: A metric's value at the hour's end & its gain over that hour. Both are null when X shows no count.
        - `value` integer, nullable, required
        - `gain` integer, nullable, required
      - `likes` PostMetricPoint, required: A metric's value at the hour's end & its gain over that hour. Both are null when X shows no count.
        - `value` integer, nullable, required
        - `gain` integer, nullable, required
      - `retweets` PostMetricPoint, required: A metric's value at the hour's end & its gain over that hour. Both are null when X shows no count.
        - `value` integer, nullable, required
        - `gain` integer, nullable, required
      - `replies` PostMetricPoint, required: A metric's value at the hour's end & its gain over that hour. Both are null when X shows no count.
        - `value` integer, nullable, required
        - `gain` integer, nullable, required
      - `quotes` PostMetricPoint, required: A metric's value at the hour's end & its gain over that hour. Both are null when X shows no count.
        - `value` integer, nullable, required
        - `gain` integer, nullable, required
      - `bookmarks` PostMetricPoint, required: A metric's value at the hour's end & its gain over that hour. Both are null when X shows no count.
        - `value` integer, nullable, required
        - `gain` integer, nullable, required

## Other responses

- `400`: Invalid input. A value past its maxLength gets this answer, & the message names the field & its limit. Bad input costs nothing, since it's refused before any read.
- `401`: Unauthenticated
- `403`: The API key lacks the monitors scope this route needs. A paused API key gets `api_key_paused`, so resume it on the dashboard.
- `404`: Not found
- `429`: Too many requests right now. Each user gets 500 reads a second. Each minute allows 120 writes & 60 deletes. `x_api_rate_limited` means X limits this read for now. Neither answer costs anything. Wait for the seconds in `Retry-After`, then retry.
- `500`: Unexpected error.
- `default`: Unexpected error.

## Changes

- **2026-10-31** `2e8e935f1661`: 1 info
  - endpoint added
- **2026-10-31** `c57c57352955`: 1 breaking
  - api path removed without deprecation
- **2026-10-30** `02f0b86fb58d`: 1 breaking
  - api path removed without deprecation
- **2026-10-30** `d7a994ca1067`: 1 info
  - endpoint added
- **2026-10-30** `722bcc0a4fec`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/api/v1/monitors/posts/:id/metrics/get.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api.md) - [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api/llms.txt) - [OpenAPI document](https://skmtc.dev/xquik-dev/apis/xquik-api/revisions/2e8e935f1661?raw)
