kvk_search | R Documentation |
This function automatically paginates through the KvK API to collect available results. Due to API limitations, it retrieves a maximum of 1,000 records. When this happens, a warning will be displayed.
kvk_search(..., test_environment = FALSE)
... |
Named arguments passed to the API query (e.g., naam = "Koudum"). Available arguments can be found at https://developers.kvk.nl/documentation/zoeken-api#input. |
test_environment |
A logical value. If TRUE, uses the test environment instead of the live API. Defaults to FALSE. |
If test_environment = TRUE
, it switches to the KvK's test environment,
using a mock API key for testing purposes.
A tibble containing the retrieved results. Possible parameters can be
found under the Results
section of
https://developers.kvk.nl/documentation/zoeken-api#output.
# Examples using the production API (requires API key)
koudum <- kvk_search(plaats = "Koudum")
print(koudum)
rotterdam <- kvk_search(plaats = "Rotterdam")
print(rotterdam)
# Examples using test environment (no API key required)
test_data <- kvk_search(plaats = "Utrecht", test_environment = TRUE)
print(test_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.