nrk-api
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Package: nrk-api

npm version install size npm bundle size npm downloads Node version

Table of Contents

Description

nrk-api is a simple API wrapper for the NRK API. The package uses the official NRK-API to fetch the information. (https://psapi.nrk.no/documentation/) Both TypeScript and JavaScript is supported.

Features

Frontpage and category pages

  • Retrieve all pages and categories for NRK TV
  • Retrieve all pages and categories for NRK Super
  • Retrieve all pages and categories for NRK Radio

Program & series-pages

  • Retrieve all programs and series for NRK TV
  • Retrieve all programs and series for NRK Super
  • ☒ Retrieve all programs and series for NRK Radio

Utils

  • ☒ Make utilities for simplifying tasks and requests that follow a natural pattern for NRK TV
  • ☒ Make utilities for simplifying tasks and requests that follow a natural pattern for NRK Super
  • ☒ Make utilities for simplifying tasks and requests that follow a natural pattern for NRK Radio

Handling Errors

  • PageNotFoundError - Indicates 404, the page was not found, likely due to faulty parameters.
  • InvalidProgramIdError - Indicates that the provided id is invalid and does not follow the NRK id-scheme.
  • RateLimitError - Indicates that the amount of requests have caused a 429 - Too Many Requests.

NRK API

This package uses the NRK API to retrieve information, the documentation for the api can be found here.

Disclaimer

This package is not affiliated with NRK in any way, and is not neither developed or maintained by NRK.

Readme

Keywords

Package Sidebar

Install

npm i nrk-api

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

162 kB

Total Files

175

Last publish

Collaborators

  • nomissimon10