Is it possible to execute sql queries from grafana APIs?

In the explore section of grafana, we can run SQL queries on data sources.

is it possible to run SQL queries using API?

I can see in the network call that, there is rest endpoint which is called from the explorer

api/tsdb/query

Technically, yes. Doing so is not part of our documented APIs and we can change that behavior from release to release without prior warning or a breaking change notice.

1 Like