usage: Retrieve Usage Data from a DeepL API Pro Account

View source: R/usage.R

usageR Documentation

Retrieve Usage Data from a DeepL API Pro Account

Description

usage returns the character usage and configured character limit for the current billing period of a DeepL API Pro account.

Usage

usage(auth_key)

Arguments

auth_key

Character. Your DeepL API authentication key. If missing, the function uses the DEEPL_API_KEY environment variable. You can set it using Sys.setenv(DEEPL_API_KEY = "your_key") or define it in your .Renviron file for persistent use.

Details

To use this function, you must register for a DeepL API Pro account at https://www.deepl.com/pro#developer.

Value

A named list or structured object containing:

  • character_count – Number of characters used in the current billing period.

  • character_limit – Total character limit for the current billing period.

References

DeepL API Documentation — Usage

Examples

## Not run: 
usage()

## End(Not run)


deeplr documentation built on June 8, 2025, 12:47 p.m.