Skip to main content

Overview

The usage client provides daily API usage metrics. current() returns the current UTC date’s counters; history() returns earlier daily counters. Access the usage client via client.usage.

Current

Get API usage metrics for the current UTC date.

UsageMetrics

History

Retrieve historical usage data for the specified number of days, broken down by day.

Parameters

UsageHistory

UsageEntry

Example: Usage Dashboard

Last modified on July 11, 2026