Skip to content

Instantly share code, notes, and snippets.

@Chaser324
Last active December 25, 2015 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chaser324/15546811139ed13956b0 to your computer and use it in GitHub Desktop.
Save Chaser324/15546811139ed13956b0 to your computer and use it in GitHub Desktop.
Simple AJAX search query using Giant Bomb API
$.ajax ({
type: 'GET',
dataType: 'jsonp',
crossDomain: true,
jsonp: 'json_callback',
url: 'http://www.giantbomb.com/api/search/?format=jsonp&api_key=[YOUR_API_KEY]&query=uncharted',
complete: function() {
console.log('done');
},
success: function(data) {
console.log(data);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment