API How to automatically save json file?

Th problem is that the api permit to save the json file, but for each jobs with the job ID needed in the url.

So we can't use for example power automate ou another else automation service because jobs ID change every time.

A solution for that?

Because it is just the logical flow for webscrapping i think !

Why don't use the sitemap name for example?

Thanks per advance.