<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> </head> <body> <script type="text/javascript"> jQuery(document).ready(function($){ $.getJSON( "http://ip-api.com/json", function( data ) { var items = []; $.each( data, function( key, val ) { if ( key == 'zip' ){ alert( key + ": " + val ); } ...