---
title: "GET /apl-starred-queries/{id}"
method: GET
path: "/apl-starred-queries/{id}"
tags: ["starred"]
---

# GET /apl-starred-queries/{id}

`GET /apl-starred-queries/{id}`

## Request

- Base URL: `https://api.axiom.co/v2`
- URL: `https://api.axiom.co/v2/apl-starred-queries/{id}`
- Auth: OAuth 2
  - Authorization code: `https://accounts.google.com/o/oauth2/v2/auth`
  - Token URL: `https://www.googleapis.com/oauth2/v4/token` scopes: `starredQueries|read`
- TypeScript: <https://skmtc.dev/axiom/apis/axiom-public-api/docs/apl-starred-queries/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a saved query by its ID.

## Path parameters

- `id` string, required

## Response `200`

Saved query.

- StarredQueryWithId
  - `dataset` string
  - `kind` 'apl', required
  - `metadata` object, required
  - `name` string, required
  - `query` APLRequestWithOptions, required
    - `apl` string, required
    - `cursor` string
    - `defaultLimit` integer
    - `defaultOrder` APLRequestWithOptionsDefaultOrder[]
      - `desc` boolean
      - `field` string
    - `endTime` string
    - `includeCursor` boolean
    - `includeCursorField` boolean
    - `libraries` string[]
    - `queryOptions` QueryOptions
      - `disableCache` boolean
      - `disableStats` boolean
      - `disableTrace` boolean
      - `maxDataPoints` integer
      - `maxSeries` integer
      - `noAggregation` boolean
      - `noFill` boolean
      - `noInterpolation` boolean
      - `priority` 'low' | 'medium' | 'high'
      - `resolution` string
      - `displayNull` 'auto' | 'null' | 'span' | 'zero' | '': Controls how empty intervals are rendered in time series charts. `auto` infers from the query, `null` leaves gaps, `span` connects adjacent points, `zero` fills with zero.
      - `overlayCharts` 'true' | 'false' | ''
      - `shownColumns` string
      - `timeSeriesVariant` 'area' | 'bars' | 'line' | 'lines' | ''
      - `timeSeriesView` 'charts' | 'resultsTable' | 'charts|resultsTable' | ''
    - `startTime` string
    - `variables` object
  - `who` string, required
  - `id` string, required

## Other responses

- `404`: Saved query not found, or you can't read its dataset.

## Changes

- **2026-10-16** (v2) `fbc1b8430feb`: 1 info
  - added the non-success response with the status `404`

[Operation history](https://skmtc.dev/axiom/apis/axiom-public-api/changes/apl-starred-queries/:id/get.md)

---

[API](https://skmtc.dev/axiom/apis/axiom-public-api.md) - [All operations](https://skmtc.dev/axiom/apis/axiom-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/axiom/apis/axiom-public-api/revisions/7e39a295e3ba?raw)
