bandsintownv3
v1.1.2
Published
Wrapper to use Bandsintown V3.0.0.0 API
Downloads
8
Maintainers
Readme
bandsintownv3
Description
A simple (wrapper) npm package to call the Bandsintown API.
How to use:
Note: You need to have an app_id
given to you by Bandsintown.
The base URL is https://rest.bandsintown.com
Sample code
const bandsintwon = require(bandsintownv3)
const api = bandsintown(baseurl, app_id)
api.getArtistInfo('Metallica')
.then(artist => {
const { name, url, image_url, facebook_page_url, upcoming_event_count } = artist
})
.catch(err => {
// Handle the error here
})
api.getArtistEvents('Metallica')
.then(events => {
// Do something
})
.catch(err => {
// Handle the error here
})
Get upcoming artist events filtered by range date. Note that both from
and to
parameters are needed when using range date.
api.getArtistEvents('Metallica', '2019-06-01', '2019-12-31')
.then(events => {
// Do something
})
.catch(err => {
// Handle the error here
})