Skip to content

bunkerradio/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

81 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Bunker's API

๐Ÿ”Œ Bunker's Public API, coded in TypeScript for maximum speed.

Disclaimer

Bunker's API is currently in beta, if any problems arise, especially with the lookup method, please feel free to drop either Chezzer#6969 or polar!#7979 a DM.

Installation

git clone https://github.com/bunkerradio/api.git

Register an application from Spotify's API Dashboard. Please note: API rate limits may be in affect.

Enter the client ID and secret into the config.json file. You MUST do this in order to use the Song Lookup. Once done, do this:

npm install
npm run-script build && npm run-script authorize

To start the API, run this:

npm start

Usage

Clear lookup track and album art cache:

npm run-script clear

JQuery Example:

$.getJSON('http://localhost:5050/stats', data => {
  console.log(data);
})

More info in the wiki

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Releases

No releases published

Packages

No packages published