Andrewngabriel / streema-api

Unofficial Streema.com API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

streema-api

Description

Unofficial API for Streema.com using web parsing

Installation

npm install streema-api

Usage

const StreemaAPI = require('streema-api').default

const streemaApi = new StreemaApi()
const genres = await streemaApi.getGenres()
const featuredCountries = await streemaApi.featuredCountries()
const featuredCities = await streemaApi.featuredCities()
const stations = await streemaApi.getStationsBySlug('/radios/country/Egypt')
const stations = await streemaApi.getStationsBySlug('/radios/country/Egypt', (stations) => {
  // callback function
  // ex. store to db
})

Available Methods / Attributes

  • REGIONS
  • getRegions()
  • featuredCountries()
  • featuresCities()
  • getGenres()
  • getStationBySlug()

About

Unofficial Streema.com API

License:Apache License 2.0


Languages

Language:TypeScript 78.1%Language:JavaScript 21.9%