https://github.com/jamesatjaminit/radioco-api
A typescript API wrapper for radio.co
https://github.com/jamesatjaminit/radioco-api
Last synced: 11 months ago
JSON representation
A typescript API wrapper for radio.co
- Host: GitHub
- URL: https://github.com/jamesatjaminit/radioco-api
- Owner: jamesatjaminit
- License: isc
- Created: 2022-11-09T20:31:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T15:36:55.000Z (almost 3 years ago)
- Last Synced: 2025-07-12T03:42:36.350Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Radio.co API Wrapper
A very simple
[Radio.co API](https://developers-84608658bd058c817.radio.co/api-reference/openapi_specs/public-v1)
wrapper, for Node.js and Deno.
- Documentation:
## Usage
### Npm
```bash
npm install radioco-api
```
### Example
```typescript
import RadioCo from "radioco-api"; // NPM
import RadioCo from "https://deno.land/x/radioco_api/mod.ts"; // Deno
const radioCo = new RadioCo();
const STATION_ID = "YOUR_STATION_ID";
const status = await radioCo.getStationStatus(STATION_ID);
const tracks = await radioCo.getRequestableTracks(STATION_ID);
const history = await radioCo.getStationHistory(STATION_ID);
const nextTrack = await radioCo.getNextTrack(STATION_ID);
const requestableTracks = await radioCo.getRequestableTracks(STATION_ID);
const schedule = await radioCo.getStationSchedule(STATION_ID);
```