Skip to content

eric-humane/node-tunein-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TuneIn API (WIP)

This a very small Unofficial TuneIn API wrapper, it aims at providing bare minimum data and includes fetching the HTTP stream URL.

How To Use

CommonJS

const TuneIn = new (require('node-tunein-api'))();

const results = await TuneIn.search('QMusic');

// assuming the first result is the radio station of which we want to fetch the stream URL
const streamUrl = await results.stations[0].getRadioURL();

console.log(streamUrl);
// https://icecast-qmusicnl-cdp.triple-it.nl/Qmusic_nl_live_96.mp3

Object Structures

SearchResults {
    stations: [
        Station {
            radioUrl: null,
            id: 's2398',
            image: 'https://cdn-radiotime-logos.tunein.com/s2398q.png',
            title: 'QMusic Belgium',
            url: 'http://tun.in/sejIK'
        }
    ]
}

About

This a very small Unofficial TuneIn API wrapper, it aims at providing bare minimum data and includes fetching the HTTP stream URL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 97.4%
  • Dockerfile 2.6%