Having problems making a call to an API

Sorry this isn’t really a wordpress question.

I am having trouble logging an api call with embedly extract It looks pretty simple but I keep screwing it up some how. I’m trying to log a response to my console.

Maybe someone can check if my code is right?

Here is the small html form:

<html>

<head>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
</head>
<body>
<form action="" id="art-lookup">
<input type="text" id="URL" name="embed-url">
<div>
<input type="submit" id="btn-lookup" value="Look up article" />
</div>
</form>
<script>//Next scripts go here </script>
</body>
</html>

Here’s my first attempt at the script

<script>
$(document).ready(function () {
$('#art-lookup').submit(function(e){
e.preventDefault();

var url = $('#URL').val();
var key = 'MY_EXTRACT_KEY';
var requestURL = 'http://api.embed.ly/1/extract?&maxwidth=:maxwidth&maxheight=:maxheight&callback=?';
// collect the data

$.getJSON(requestURL, {
'key' : key,
'url' : url,
}, function(data){
console.log(data);
});

});
});
</script>

I got a this error in the console along with a long drop down of errors:

Object {url: "http://techcrunch.com/2013/03/26/embedly-now-goes-…isplay-for-making-sense-of-links-resizing-images/", error_code: 400, error_message: "Invalid "maxwidth" parameter: :maxwidth", type: "error"}

The next script I tried:

</script>
http://api.embed.ly/1/extract?key=' + key + '&url=' + url + '&maxwidth=:maxwidth&maxheight=:maxheight&format=:format&callback=?
var api_url = 'http://api.embed.ly/1/oembed?key=' + key + '&url=' + url + '&callback=?&width=654&autoplay=true&wmode=transparent';

<script>
$(document).ready(function () {
$('#art-lookup').submit(function(e){
e.preventDefault();

var url = $('#URL').val();
var key = 'My_EXTRACT_API';
var requestURL = 'http://api.embed.ly/1/extract?key=' + key + '&url=' + url + '&maxwidth=:maxwidth&maxheight=:maxheight&format=:format&callback=?';
// collect the data

$.getJSON(requestURL,function(json){
console.log(json);
});

});
});
</script>

I got this error: GET http://api.embed.ly/1/extract?key=4e1a43311d794f24bdab57c751c6788f&url=http…:format&callback=jQuery111005824593191500753_1394160762310&_=1394160762311 501 (Not Implemented) jquery-1.11.0.min.js:4

Any ideas would be awesome, but that being said I don’t expect help due to this not being a wordpress function.

Thank you!