---
title: "Execute an Analytics query"
method: GET
path: "/apps/{appId}/query"
---

# Execute an Analytics query

`GET /apps/{appId}/query`

Executes an Analytics query for data

## Path parameters

- `appId` string, required

## Query parameters

- `query` string, required
- `timespan` string

## Response `200`

Successful response

- QueryResults — Contains the tables, columns & rows resulting from a query.
  - `tables` Table[], required — The list of tables, columns and rows.
    - `name` string, required — The name of the table.
    - `columns` Column[], required — The list of columns in this table.
      - `name` string — The name of this column.
      - `type` string — The data type of this column.
    - `rows` array[], required — The resulting rows from this query.
      - string[]

## Other responses

- `default` — An error response object.

## Changes

- **2026-07-13** (2018-04-20) `5ba59b0ed852` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/azure/apis/applicationinsights-insights/changes/apps/:appId/query/get.md)

---

[API](https://skmtc.dev/azure/apis/applicationinsights-insights.md) · [All operations](https://skmtc.dev/azure/apis/applicationinsights-insights/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/applicationinsights-insights/revisions/5ba59b0ed852/schema)
