in reply to Parsing Output

Mojo::UserAgent is my go to for hitting APIs and dealing with the JSON response. There are plenty of examples here, including Re: bitcoin price from command line.