Lightdash Query API

These routes allow users to execute and manage queries against their data warehouse. This includes metric queries, SQL queries, and retrieving query results.

GitHub OpenAPI
Business capability
Analytics & BI Management BC-610.50

Operations 20

GET /api/v2/projects/{projectUuid}/query/history List my query history #
GET /api/v2/projects/{projectUuid}/query/{queryUuid} Get results #
POST /api/v2/projects/{projectUuid}/query/{queryUuid}/cancel Cancel query #
POST /api/v2/projects/{projectUuid}/query/{queryUuid}/calculate-total Calculate totals #
POST /api/v2/projects/{projectUuid}/query/merge-query Execute merge query #
POST /api/v2/projects/{projectUuid}/query/compose-merge-query Execute compose merge query #
POST /api/v2/projects/{projectUuid}/query/metric-query Execute metric query #
POST /api/v2/projects/{projectUuid}/query/metric-query/estimate Estimate metric query #
POST /api/v2/projects/{projectUuid}/query/field-values Search field values #
POST /api/v2/projects/{projectUuid}/query/chart Execute saved chart #
POST /api/v2/projects/{projectUuid}/query/dashboard-chart Execute dashboard chart #
POST /api/v2/projects/{projectUuid}/query/underlying-data Execute underlying data #
POST /api/v2/projects/{projectUuid}/query/sql Execute SQL query #
POST /api/v2/projects/{projectUuid}/query/sql/estimate Estimate SQL query #
POST /api/v2/projects/{projectUuid}/query/compose-sql Execute compose SQL query #
POST /api/v2/projects/{projectUuid}/query/python Execute python query #
POST /api/v2/projects/{projectUuid}/query/sql-chart Execute SQL chart #
POST /api/v2/projects/{projectUuid}/query/dashboard-sql-chart Execute dashboard SQL chart #
POST /api/v2/projects/{projectUuid}/query/{queryUuid}/download Download results #
POST /api/v2/projects/{projectUuid}/query/{queryUuid}/schedule-download Download results #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lightdash:lightdash-query-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lightdash-query-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lightdash Query API
  version: 2.616.2
  description: 'Open API documentation for all public Lightdash API endpoints. # Authentication Before you get started, you might need to create a Personal Access Token to authenticate via the API. You can create a token by following this guide: https://docs.lightdash.com/references/personal_tokens'
  license:
    name: MIT
  contact:
    name: Lightdash Support
    email: support@lightdash.com
    url: https://docs.lightdash.com/help-and-contact/contact/contact_info/
servers:
- url: /
tags:


# --- truncated at 32 KB (192 KB total) ---
# Full source: https://artifacts.apis.io/lightdash/openapi/lightdash-query-api-openapi.yml