$.ajax({
type: 'GET',
dataType: 'jsonp',
crossDomain: true,
jsonp: 'json_callback',
url: 'https://www.giantbomb.com/api/reviews/?format=jsonp&api_key=<myapi>&filter=guid:3030-59938&limit=5',
}).done(function (gbrev) {
console.log(gbrev);
}).fail(function () {
console.log("error");
})
Also tried:
filter=id:X;
filter=game:X
filter=score:60;
on success looks like this
- Object
- error: "OK"
- limit: 5
- number_of_page_results: 5
- number_of_total_results: 752
- offset: 0
- results: Array(5)
- 0:
- api_detail_url: "https://www.giantbomb.com/api/review/1900-796/"
- deck: "Jedi: Fallen Order is both one of the best Star Wars games to date and distressingly unrefined."
- description: "<figure data-align="right" data-size="small" data-"
- dlc: null
- dlc_name: null
- game: {api_detail_url: "https://www.giantbomb.com/api/game/3030-66000/", id: 66000, name: "Star Wars Jedi: Fallen Order", site_detail_url: "https://www.giantbomb.com/star-wars-jedi-fallen-order/3030-66000/"}
- guid: "1900-796"
- id: 796
- platforms: "PC, Xbox One, PlayStation 4"
- publish_date: "2019-11-15 18:30:00"
- release: null
- reviewer: "Brad"
- score: 3
- site_detail_url: "https://www.giantbomb.com/reviews/star-wars-jedi-fallen-order-review/1900-796/"
- __proto__: Object
- 1: {api_detail_url: "https://www.giantbomb.com/api/review/1900-795/", deck: "Kojima's first post-Konami project is a bizarre, s… quite manages to tie its myriad pieces together.", description: "<p>What the hell is Death Stranding?</p><p>This is…he hell Death Stranding is: a disappointment.</p>", dlc: null, dlc_name: null, …}
- 2: {api_detail_url: "https://www.giantbomb.com/api/review/1900-794/", deck: "Modern Warfare makes meaningful tech upgrades to t…e still maintaining its crisp, exciting gameplay.", description: "<div data-embed-type="video" data-src="https://www…he game is still absolutely worth looking at.</p>", dlc: null, dlc_name: null, …}
- 3: {api_detail_url: "https://www.giantbomb.com/api/review/1900-793/", deck: "Gears 5 plays around with the formula a bit, but i…en it's just being a solid-ass Gears of War game.", description: "<p>OK, let's talk about this up front: <a href="/g…t, play the parts you like and skip the rest.</p>", dlc: null, dlc_name: null, …}
- 4: {api_detail_url: "https://www.giantbomb.com/api/review/1900-792/", deck: "Control feels like Remedy firing on all cylinders,…ting in a smart and sensational action-adventure.", description: "<figure data-align="right" data-size="medium" data…her, better than they've ever done it before.</p>", dlc: null, dlc_name: null, …}
- length: 5
- __proto__: Array(0)
- 0:
- status_code: 1
- version: "1.0"
- __proto__: Object
Log in to comment