---
type: api
title: List Vega library items
description: "Returns a paginated list of Vega library items. Each result includes title, description, tags, and metadata, but not the spec. Use `GET /api/vega/{id}` to retrieve the complete state."
url: https://www.elastic.co/elastic/docs-builder/docs/5002/api/kibana-serverless/operation/operation-get-vega
resource: https://www.elastic.co/elastic/docs-builder/docs/5002/api/kibana-serverless/operation/operation-get-vega
products:
  - Kibana
---

# List Vega library items

Authentication: required

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/vega`
- `GET` `/s/{space_id}/api/vega`

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## Description

Returns a paginated list of Vega library items. Each result includes title, description, tags, and metadata, but not the spec. Use `GET /api/vega/{id}` to retrieve the complete state.

## Query string parameters

- `page` (number · min: 1 · default: 1) — optional
  The page of results to return.
- `per_page` (number · min: 1 · max: 1000 · default: 20) — optional
  The number of results to return per page.
- `query` (string) — optional
  Filters results by `title` and `description` using Elasticsearch [`simple_query_string`](https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-simple-query-string-query) syntax. Multi-word terms require all words to match.
- `tags` (string[] · max items: 100 · default: []) — optional
  A tag ID to include. Accepts a single tag ID or multiple tag IDs. When multiple are specified, library items matching any of the tag IDs are included.
- `excluded_tags` (string[] · max items: 100 · default: []) — optional
  A tag ID to exclude. Accepts a single tag ID or multiple tag IDs. When multiple are specified, library items matching any of the tag IDs are excluded.
- `tag_names` (string[] · max items: 100) — optional
  A tag name to include. Accepts a single tag name or multiple tag names. When multiple are specified, library items matching any of the tag names are included. If the same name is shared by multiple tags, items matching any of those tags are included.
- `excluded_tag_names` (string[] · max items: 100) — optional
  A tag name to exclude. Accepts a single tag name or multiple tag names. When multiple are specified, library items matching any of the tag names are excluded. If the same name is shared by multiple tags, items matching any of those tags are excluded.

## Responses

#### `200`

success

`application/json`

- `data` (object[] · min items: 0 · max items: 1000)
  List of Vega library items matching the query.
  - `data` (object)
    - `description` (string · min length: 0 · max length: 10000)
      A short description of the Vega library item.
    - `tags` (string[] · max items: 1000 · default: [])
      Tag IDs associated with this Vega library item.
    - `title` (string · min length: 1 · max length: 1024)
      The Vega library item title.
  - `id` (string)
    The Vega library item ID.
  - `meta` (object)
    - `created_at` (string)
      Timestamp when the object was created (ISO 8601).
    - `created_by` (string)
      User profile ID of the user who created the object.
    - `managed` (boolean)
      When `true`, the object is managed by Kibana and cannot be edited by users.
    - `owner` (string)
      Identifier of the plugin or team that owns this object.
    - `updated_at` (string)
      Timestamp when the object was last updated (ISO 8601).
    - `updated_by` (string)
      User profile ID of the user who last updated the object.
    - `version` (string)
      Internal version identifier for optimistic concurrency control.
- `meta` (object)
  - `page` (number · min: 1 · default: 1)
    The returned page of results.
  - `per_page` (number · min: 1 · max: 1000 · default: 20)
    The number of results returned per page.
  - `total` (number)
    The total number of results matching the query.
#### `403`

forbidden

#### `404`

not found

## Code examples

#### Console

```console
GET kbn:/api/vega?query=requests&per_page=10
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/vega?query=requests&per_page=10" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Search Vega library items response

`application/json`

Paginated list of Vega library item summaries with `title`, `description`, `tags`, and metadata. The spec, query, and filters are not included; use `GET /api/vega/{id}` to retrieve a specific item.

```json
{
  "data": [
    {
      "data": {
        "description": "Hourly request count from the sample web logs.",
        "tags": [],
        "title": "Requests over time"
      },
      "id": "7c1d8e40-9b2f-11f0-a5c3-2f6e4b8d9a10",
      "meta": {
        "created_at": "2026-09-30T10:00:00.000Z",
        "managed": false,
        "updated_at": "2026-09-30T10:00:00.000Z",
        "version": "WzU5LDFd"
      }
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 10,
    "total": 1
  }
}
```

