Daily cost-orphaned usage metrics
const url = 'https://example.com/api/v1/usage/metrics/daily';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/usage/metrics/dailyTotal daily quantity per service, tier, metric, and unit, for the default tenant. These are the cost-orphaned usage metrics the AI-vendor connectors fetch but that carry no money on the vendor’s cost report (Anthropic priority/flex-tier tokens and web-search request counts; standard/batch usage keys no cost row referenced; OpenAI recognized-but-unpriced line items). They live OUTSIDE the FOCUS cost dataset, so they never appear in the daily-cost or daily-token views and never contribute to any cost or token total. Ordering is deterministic: day ascending, then serviceName, serviceTier, metricName, unit. Quantities are exact decimal strings — never floats. serviceTier is “” when the vendor has no tier concept.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Inclusive first calendar day (UTC) to include. Defaults to the full range of stored data.
Inclusive last calendar day (UTC) to include. Defaults to the full range of stored data.
Responses
Section titled “Responses”Daily usage metrics grouped by service, tier, metric, and unit for the requested period, day-ascending.
object
The UTC calendar day.
Service or model identity.
Vendor service tier, or “” when the vendor has no tier concept.
Frozen metric identifier (a token_type, “web_search_requests”, or an opaque line item).
Frozen unit vocabulary: “Tokens”, “Requests”, or “Unknown”.
Total quantity for the day/service/tier/metric/unit, as an exact decimal string — never a float.
Example
[ { "date": "2026-05-01", "serviceName": "claude-opus-4-6", "serviceTier": "priority", "metricName": "uncached_input_tokens", "unit": "Tokens", "quantity": "999" }]Invalid start or end date.