JSFiddle - React, Tailwind, and code Playground
by Timatnet
HTML
<div id="res"></div>
JavaScript
/*
74b23d7ac614ec2c3601bdb1920a301a78305813
status_code An integer indicating the result of the request. Acceptable values are:
1:OK
100:Invalid API Key
101:Object Not Found
102:Error in URL Format
103:'jsonp' format requires a 'json_callback' argument
104:Filter Error
105:Subscriber only video is for subscribers only
error A text string representing the status_code
number_of_total_results The number of total results matching the filter conditions specified
number_of_page_results The number of results on this page
limit The value of the limit filter specified, or 100 if not specified
offset The value of the offset filter specified, or 0 if not specified
results Zero or more items that match the filters specified
*/
$.get('http://www.giantbomb.com/api/game/3030-4725/?api_key=74b23d7ac614ec2c3601bdb1920a301a78305813&format=json&field_list=genres,name', function(data) {
$('#res').text(data);
});