After calling an API that that returns a JSON, is it possible to grab a PDF within the JSON file?

in short, yes

grab the document string from JSON array
Decode the Base64 representation
Save the result to file system as e.g. abc.pdf file

Decoding e.g.

3 Likes