Sporium,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(function() {
$('form').submit(function(event){
event.preventDefault();
var request =$('#search').val();
var api= 'https://en.wikipedia.org/w/api.php?action=opensearch&search=' +request+ '&format=json&callback=?';
$.getJSON(api, function(data) {
console.log(data);
$('#result').html('');
for ( var i=data[1].length-1;i>=0;i--){
$('#result').prepend('<li> <a href="'+data[3][i]+'" target="blank">'+data[1][i]+'</a><p>'+ data[2][i]+'</p></li>');
}
})
})
});
</script>
</head>
<body>
<div class='container'>
<h4>WIKIPEDIA API</h4>
<a href='https://en.wikipedia.org/wiki/Special:Random' target="blank">Random Wikipedia </a>
<form action="http://">
<input class="from-control" id="search">
<input name="" type="submit" value="Search">
</form>
<ul id="result">
</ul>
</div>
</body>
</html>