eshop-api-wrapper
v0.2.2
Published
API Wrapper to get information from Nintendo Eshop.
Downloads
9
Maintainers
Readme
Eshop API Wrapper
API Wrapper to get information from Nintendo Eshop.
Get Starded
Install the package with NPM and add it to your dependencies:
$ npm install eshop-api-wrapper --save
Example
const eshop = require('eshop-api-wrapper');
eshop.search('Zelda')
.then(data => console.log(data))
.catch(err => console.error(err))
Methods
game(id)
- The ID is provided by the Nintendo API and your format is something like that
GHbaBYuv3zqQeW1CVQlmTSehZ45KTV78
.
search(query, {options})
- query: The search term.
- options.sort: default:
release
. Order of results. Can berelevance
,release
,title
andprice
. - options.direction: default:
desc
. Can beasc
ordes
. - options.system: default:
switch
. Nintendo system. Can beds
,3ds
,wii
,wii_u
,ios
,android
,ios_android
andswitch
. - options.limit: default:
10
. Limit of search results. Max value is200
. - options.availability: Status of the game availability. Can be
now
,new
,soon
andprepurchase
. - options.offset: default:
0
. Change the position of the search. Useful to pagination. - options.category: Can be
action_adventure
,application
,first_person
,party
,role_playing
,music_fitness
,education
,puzzle_strategy
,simulation
andsports_racing
. - options.price: Can be
4.99
,9.99
,19.99
,39.99
and40_plus
. - options.number: Filter by number of players. Can be
1
,2
,3
and4
.
filter({options})
- options.sort: default:
release
. Order of results. Can berelevance
,release
,title
andprice
. - options.direction: default:
desc
. Can beasc
ordes
. - options.system: default:
switch
. Nintendo system. Can beds
,3ds
,wii
,wii_u
,ios
,android
,ios_android
andswitch
. - options.limit: default:
10
. Limit of search results. Max value is200
. - options.availability: Status of the game availability. Can be
now
,new
,soon
andprepurchase
. - options.offset: default:
0
. Change the position of the search. Useful to pagination. - options.category: Can be
action_adventure
,application
,first_person
,party
,role_playing
,music_fitness
,education
,puzzle_strategy
,simulation
andsports_racing
. - options.price: Can be
4.99
,9.99
,19.99
,39.99
and40_plus
. - options.number: Filter by number of players. Can be
1
,2
,3
and4
.