Render explore graph in external application

I want to see a graph based on a target expression in various data sources in an external frontend application. I looked at the Grafana image renderer, but it doesn’t suit me as it is based on working with static dashboards. The mechanism of getting a graph from an Explore panel seems more appropriate, but I haven’t found ways to implement it. Thank you in advance.