Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Latest commit

 

History

History
62 lines (43 loc) · 2.19 KB

README.md

File metadata and controls

62 lines (43 loc) · 2.19 KB

NRK APIs for Node.JS

Build status Codacy grade Codacy coverage NPM downloads NPM version Node version Dependency status

Node.JS wrapper for various (undocumented) API from the Norwegian Broadcast Corporation (NRK). Since NRK does not publicly document any of their APIs, this effort is by analyzing source code of various NRK.no sites, GitHub and other search engines, as well as analyzing traffic from various NRK applications.

Requirements

  • Node.JS >= v4.0.0

Install

$ npm install nrk --save

Usage

const nrk = require('nrk');

Environment

  • NRK_TV_API (default: https://tv.nrk.no)
  • NRK_TV_MOBIL (default: undefined)
  • NRK_PS_API (default: http://v8.psapi.nrk.no)

TV APIs

API endpoints used by https://tv.nrk.no. Some API endpoints documentation can be found here.

  • nrk.tv.autocomplete()
  • nrk.tv.programs()
  • nrk.tv.program()
  • nrk.tv.series()

TV APIs (mobile)

API endpoints used by the NRK TV app for iOS and Android.

  • nrk.tv.mobil.categories()
  • nrk.tv.mobil.programs()
  • nrk.tv.mobil.series()
  • nrk.tv.mobil.search()

Legal

NRK is a registered trademark of the Norwegian Broadcast Corporation which is not affiliated with this product. Content from NRK APIs may be copyrighted.