Skip to main content
GET
Get language pair usage statistics as an admin

Availability

Language pair-level data is generally available on the API Enterprise plan. On the API Pro plan, it’s available on request; contact your customer success manager to enable it. If your admin key belongs to an account without language pair-level data, the request succeeds and returns an empty language_pair_usages array.

Date range

Specify the reporting window using the required start_date and end_date parameters in ISO 8601 date format (e.g., 2026-10-01). Both are interpreted in UTC.
  • start_date can’t be after the current UTC day
  • start_date can’t be more than 63 days before the current UTC day
Requests that break either rule return a 400 error. Usage data is available up to and including the previous UTC calendar day, so that is the latest day end_date can include.

Grouping and aggregation

Two optional parameters control how usage is organized. group_by accepts a comma-separated list of dimensions. Currently key is the only supported value. Support for additional dimensions may be added in a future update. The two parameters combine: group_by=key&aggregate_by=day returns one row per language pair, API key, and day.

Response structure

The response contains a language_pair_usage_report object with the following fields: Each entry in language_pair_usages includes:
  • source_language and target_language: the language pair
  • api_key and api_key_label: the masked API key and its label, returned only when group_by includes key
  • usage_date: the day the usage was recorded (ISO 8601 datetime), returned only when aggregate_by is day
  • usage: usage split by service type
Usage for API keys that are no longer on the account is returned with api_key set to - and api_key_label set to unknown.

Usage breakdown

Voice usage is reported in minutes and is not included in total_characters, which covers character-based services only.

Pagination

Results are paginated. next_page is the page number to send as the page parameter to retrieve the following page. It is null on the last page.

Example

The following request retrieves daily usage per language pair and API key for a two-week range.
The response contains one entry per language pair, API key, and day. This example shows a single entry:
For a one-off download of language pair data, use the language pair-level CSV export in your account.

Authorizations

Authorization
string
header
default:DeepL-Auth-Key
required

Authentication with Authorization header and DeepL-Auth-Key authentication scheme. Example: DeepL-Auth-Key <api-key>

Query Parameters

start_date
string<date>
required

Start date for the usage report (ISO 8601 date format). Must not be after the current UTC day, and must fall within the supported lookback window. See Get language pair usage analytics.

end_date
string<date>
required

End date for the usage report (ISO 8601 date format).

group_by
string

Optional comma-separated list of dimensions to group usage by. Currently key is the only supported value:

  • key - Group by API key

If omitted, usage is not split by API key.

aggregate_by
enum<string>
default:period

Optional parameter to control aggregation of usage statistics. Possible values:

  • period - Aggregate usage over the entire date range (default)
  • day - Group usage by individual UTC day
Available options:
period,
day
page
integer

Page number of the results to return. next_page in the response holds the page number of the following page.

Response

The language pair usage statistics for the specified date range.

The response for admin language pair usage statistics.

language_pair_usage_report
object

Contains the detailed language pair usage statistics for the specified date range.