kvk_get_naamgeving | R Documentation |
This function retrieves the name information (naamgeving
) for a given KvK
number (kvkNummer
) using the KvK Naamgevingen API.
kvk_get_naamgeving(kvkNummer, test_environment = FALSE)
kvkNummer |
A string representing the KvK number for which the name information is requested. |
test_environment |
A logical value indicating whether to use the test
environment ( |
The function also supports the test_environment
argument. When set to
TRUE
, the function will query the KvK test API environment, providing a
set of fictitious test data.
The function retrieves data from the KvK Naamgevingen API.
Important: If test_environment = TRUE
, no actual API key is required. You will be using
test data from the KvK test environment.
A tibble containing the retrieved name information.
# Examples using the production API (requires API key)
# Retrieve naamgeving for a given KvK number
naamgeving <- kvk_get_naamgeving(kvkNummer = "68750110")
print(naamgeving)
# Examples using test environment (no API key required)
naamgeving_test <- kvk_get_naamgeving(kvkNummer = "68727720", test_environment = TRUE)
print(naamgeving_test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.