The base64 encoded url is tricky to automate.
There is some discussion of it here:
An importJSON api might do the trick? @ThinhDinh to the rescue?