---
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}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/annotation/page/{page_id}`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

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.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
