kvkapir
The goal of this R-package is to provide a R-package to access the API of the Dutch Champer of Commerce
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (17.9%) to scientific vocabulary
Last synced: 9 months ago
·
JSON representation
Repository
The goal of this R-package is to provide a R-package to access the API of the Dutch Champer of Commerce
Basic Info
- Host: GitHub
- Owner: coeneisma
- License: other
- Language: R
- Default Branch: main
- Homepage: https://coeneisma.github.io/kvkapiR/
- Size: 1.41 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Created over 1 year ago
· Last pushed 12 months ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# kvkapiR
[](https://CRAN.R-project.org/package=kvkapiR)
[](https://github.com/coeneisma/kvkapiR/actions)
The goal of kvkapiR is to provide a convenient R programming language interface to the Dutch Chamber of Commerce (KvK) APIs. This package is built using the httr2 package and follows best practices for wrapping APIs in R, as outlined in the [httr2 documentation](https://httr2.r-lib.org/articles/wrapping-apis.html). It simplifies authentication, request handling, and response parsing when interacting with the KvK API.
The package provides access to [all the KvK APIs](https://developers.kvk.nl/documentation#available-apis):
* KvK Search API
* KvK Basisprofiel API
* KvK Vestigingsprofiel API
* KvK Naamgeving API
More details can be found [on the developers website of the KvK](https://developers.kvk.nl/apis).
## Installation
The package has been submitted to CRAN for review. Once it's accepted and the CRAN status badge shows "CRAN: OK", you can install the stable version from CRAN with:
``` r
install.packages("kvkapiR")
```
Until then, you can install the current stable version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("coeneisma/kvkapiR")
```
To install the latest development version:
``` r
# install.packages("devtools")
devtools::install_github("coeneisma/kvkapiR", ref = "development")
```
## Setting up API Access
### API Key
To use the KvK API, you need an API key. You can apply for one at the [KvK Developer Portal](https://developers.kvk.nl/apply-for-apis?step=api-overview).
```r
# Set API key for current session
kvk_set_api_key("your_api_key_here")
# Or add to .Renviron file manually:
# KVK_API_KEY=your_api_key_here
```
### Test Environment
The package includes support for the KvK test environment with fictional Donald Duck data:
```r
# No API key needed for test environment
test_results <- kvk_search(naam = "Donald Duck", test_environment = TRUE)
```
## Basic Usage
### Search for Businesses
```{r example}
library(kvkapiR)
# Search by location
koudum <- kvk_search(plaats = "Koudum")
koudum
# Combine search criteria
snackbar <- kvk_search(naam = "snackbar", plaats = "Utrecht")
snackbar
# Search by address
address_search <- kvk_search(postcode = "2594BD", huisnummer = "10")
# Filter by business type (multiple types allowed)
mixed_types <- kvk_search(
plaats = "Amsterdam",
type = "hoofdvestiging",
type = "rechtspersoon"
)
```
### Retrieve Detailed Profiles
Each profile retrieval costs EUR 0.02 (free for government organizations):
```{r, eval = FALSE}
# Get basic company profile (using a social organization)
profile <- kvk_get_basisprofiel("01036576")
# Get establishment details
establishment <- kvk_get_vestigingsprofiel("000007810083")
# Get name history
names <- kvk_get_naamgeving("01036576")
```
## Usage Tracking and Cost Management
The package includes automatic session-based usage tracking:
```{r, eval = FALSE}
# View current session usage
kvk_usage_report()
# Set session alerts
kvk_usage_alert(max_cost = 5.00)
# Export session data
kvk_export_usage("session_usage.csv")
```
### Pricing
- **Monthly base fee**: EUR 6.20 (when you have API access)
- **Search API**: Free (after base fee)
- **Profile APIs**: EUR 0.02 per call
- **Government organizations**: All API calls are free
- **Access requirement**: Only authorized business representatives can apply
## More Information
For detailed examples and advanced usage, see `vignette("kvkapiR")` or visit the [package website](https://coeneisma.github.io/kvkapiR/).
Owner
- Login: coeneisma
- Kind: user
- Repositories: 1
- Profile: https://github.com/coeneisma
GitHub Events
Total
- Issues event: 5
- Delete event: 1
- Push event: 100
- Pull request event: 45
- Create event: 8
Last Year
- Issues event: 5
- Delete event: 1
- Push event: 100
- Pull request event: 45
- Create event: 8
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 5
- Total pull requests: 22
- Average time to close issues: about 10 hours
- Average time to close pull requests: less than a minute
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 20
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 5
- Pull requests: 22
- Average time to close issues: about 10 hours
- Average time to close pull requests: less than a minute
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 20
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- coeneisma (4)
Pull Request Authors
- coeneisma (22)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 161 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: kvkapiR
Interface to the Dutch Chamber of Commerce (KvK) API
- Homepage: https://coeneisma.github.io/kvkapiR/
- Documentation: http://cran.r-project.org/web/packages/kvkapiR/kvkapiR.pdf
- License: MIT + file LICENSE
-
Latest release: 0.1.2
published 12 months ago
Rankings
Dependent packages count: 26.2%
Dependent repos count: 32.2%
Average: 48.3%
Downloads: 86.4%
Maintainers (1)
Last synced:
10 months ago
Dependencies
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action v4.5.0 composite
- actions/checkout v4 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION
cran