Skip to content

Riksrevisjonen/noAPI

Repository files navigation

noAPI

R-CMD-check

The goal of noAPI is to make it easier for users to retrieve data from public Norwegian APIs.

Installation

You can install the development version of noAPI from GitHub with:

# install.packages("devtools")
devtools::install_github("Riksrevisjonen/noAPI")

Examples

library(noAPI)

# Get latest exchange rate from 'Norges Bank'
get_exchange_rate('USD') 

# Get entity information from 'Enhetsregisteret'
get_entity(974760843)

# Get address information from 'Kartverket'
get_address_info('munkegata 1 trondheim')

For a full list of available functions please refer to the package documentation.

Getting help

If you encounter a bug or want to submit a feature request please file an issue on GitHub. We kindly ask you to include a minimal reproducible example when possible. For other questions please reach out to the package authors.

Acknowledgements

The ship used in noAPIs logo is based on a 3D model of the Norwegian Oseberg Viking Ship originally created by Dane Ericksen. The conversion to a 2D black-and-white model was done by the package authors. Ericksen’s work is licensed under CC BY 4.0.