my $json = $ua->get($url)->res->json; ... my $json3 = $ua2->get($siteurl2)->res->json;