---
title: "Search for annotations"
method: GET
path: "/api/apm/services/{serviceName}/annotation/search"
tags: ["APM annotations"]
---

# Search for annotations

`GET /api/apm/services/{serviceName}/annotation/search`

**Spaces method and path for this operation:**

<div><span class="operation-verb get">get</span>&nbsp;<span class="operation-path">/s/{space_id}/api/apm/services/{serviceName}/annotation/search</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Search for annotations related to a specific service.

## Path parameters

- `serviceName` string, required

## Query parameters

- `environment` string
- `start` string, date-time
- `end` string, date-time

## Headers

- `elastic-api-version` '2023-10-31', required

## Response `200`

Successful response

- APMUIAnnotationSearchResponse
  - `annotations` object[] — Annotations
    - `@timestamp` number
    - `id` string
    - `text` string
    - `type` 'version'

## Other responses

- `400` — Bad Request response
- `401` — Unauthorized response
- `500` — Internal Server Error response

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
