https://github.com/yimura/node-tunein-api
This a very small Unofficial TuneIn API wrapper, it aims at providing bare minimum data and includes fetching the HTTP stream URL.
https://github.com/yimura/node-tunein-api
api tunein wrapper
Last synced: over 1 year ago
JSON representation
This a very small Unofficial TuneIn API wrapper, it aims at providing bare minimum data and includes fetching the HTTP stream URL.
- Host: GitHub
- URL: https://github.com/yimura/node-tunein-api
- Owner: Yimura
- License: mit
- Created: 2021-03-16T08:38:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-29T09:13:20.000Z (over 4 years ago)
- Last Synced: 2025-03-02T02:12:53.136Z (over 1 year ago)
- Topics: api, tunein, wrapper
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/node-tunein-api
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```js
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
```js
SearchResults {
stations: [
Station {
radioUrl: null,
id: 's2398',
image: 'https://cdn-radiotime-logos.tunein.com/s2398q.png',
title: 'QMusic Belgium',
url: 'http://tun.in/sejIK'
}
]
}
```