Extract Dashboard

Hello,

I have created a dashboard metabase with several variables that allow you to display the corresponding information.

Now I would like to be able to use a script, an APi or other to automatically extract the PDF from this Dashboard according to the variables sent. How can I proceed if others of you have already done so? I can integrate the variables into the UrL link to automatically open the desired Dashboard. But I'm blocking for PDF extraction...

For your information, My metabase is on a server internal to our company. And connected to our database.

Thankx for your answers.