View source: R/utils-usage-tracking.R
kvk_usage_report | R Documentation |
Display or return API usage statistics and costs for the current R session. This function helps you monitor your KvK API usage and associated costs.
kvk_usage_report(format = "summary")
format |
Character string specifying output format:
|
The summary format displays API call counts and costs for the current R session only. All usage data is session-based and will be reset when you restart R. Search calls are free, while profile calls cost EUR 0.02 each.
Only production API calls are included in reports. Test environment calls are not tracked.
format = "summary"
: Invisible NULL (output printed to console)
format = "tibble"
: A tibble with session usage summary
format = "detailed"
: A tibble with detailed call-by-call data
kvk_usage_alert
for setting usage limits,
kvk_export_usage
for exporting data to CSV,
kvk_reset_usage
for clearing usage history
# Display human-readable summary
kvk_usage_report()
# Get structured summary as tibble
summary_data <- kvk_usage_report(format = "tibble")
print(summary_data)
# Get detailed call data for custom analysis
call_data <- kvk_usage_report(format = "detailed")
head(call_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.