Skip to content

Package for communicating with the NRK (Norwegian Broadcasting Service) API.

License

Notifications You must be signed in to change notification settings

Nomissimon10/nrk-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Package for communicating with the NRK (Norwegian Broadcasting Service) API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published