Extracting query definitions from Grafana

I have a customer that has defined their metrics in Grafana and is currently querying multiple data sources and is using Grafana as the source of truth. I would like to extract the query definitions for portability. Is this possible?

I was looking at the Dashboard API, however, it doesnt seem to provide details on queries aka Query API?

Thanks for your help.

If you grab a dashboard JSON definition via the dashboard API, you’ll find the queries defined in there. (look for query keys in the JSON)

Thanks. I was looking for a more comprehensive definition encapsulating source and metrics.