---
title: "Get annotations for a page"
method: GET
path: "/api/v2/annotation/page/{page_id}"
tags: ["Annotations"]
---

# Get annotations for a page

`GET /api/v2/annotation/page/{page_id}`

Returns all annotations on a specific page for a given time window, grouped by widget.
Unlike `ListAnnotations`, this endpoint returns a single structured object with annotations
indexed by their ID and a widget-to-annotation mapping for easy UI rendering.

## Path parameters

- `page_id` string, required

## Query parameters

- `start_time` integer, required
- `end_time` integer, required

## Response `200`

OK

- PageAnnotationsResponse — Response containing all annotations on a page, grouped by widget.
  - `data` PageAnnotationsData, required — Annotations grouped by widget for a single page.
    - `attributes` PageAnnotationsAttributes, required — Attributes of the annotations on a page.
      - `annotations` AnnotationsInPageMap, required — Map of annotation UUID to annotation object, keyed by annotation ID.
      - `global_annotations` string[], required — List of annotation IDs that apply to the entire page rather than a specific widget.
      - `widget_mapping` WidgetAnnotationsMap, required — Map from widget ID to the list of annotation IDs displayed on that widget.
    - `id` string, required — ID of the page, prefixed with the page type and joined by a colon (for example, `dashboard:abc-def-xyz` or `notebook:1234567890`).
    - `type` 'page_annotations', required — Page annotations resource type.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `429` — Too many requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
