Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

RyanTheAllmighty/giantbombapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Giant Bomb API

Package for NodeJS to query and access the Giant Bomb API

NPM

Getting Started

To get started you'll need to install this package:

npm install --save giantbombapi

Then wherever you want to use it you'll need to require the package:

let GiantBombAPI = require('giantbombapi');

Finally to use the API you need to create a new object:

let GBAPI = new GiantBombAPI('api-key');

You must insert your API Key as the first argument, to which if you don't have you, you can get one from here.

Game Searching

To search for a game by a name or a name partial you can use the following:

GBAPI.searchGames('Counter Strike').then(
    function(games) {
        console.log(games);
    },
    function(err) {
        console.error(err);
    }
);

The results of this will be an array of game matches returned from Giant Bomb's API.

You can optionally pass an object as the second parameter which has the following options:

{
    namesOnly: true, // Will return an array of the game names only. Defaults to false
    limit: 25 // Will only get this amount of results from the API. Defaults to 100
}

License

This work is licensed under the GNU General Public License v3.0. To view a copy of this license, visit http://www.gnu.org/licenses/gpl-3.0.txt.

About

Package for NodeJS to query and access the Giant Bomb API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published