Access billing usage and cost data via API
By Steven Van ·
New /billing/charges API and vercel usage CLI command expose per-service cost data in the FOCUS v1.3 format, with a Vantage integration to match.
Vercel now offers programmatic access to billing usage and cost data through a new API endpoint and CLI command. The /billing/charges endpoint returns data in the FOCUS v1.3 open-standard format, so teams can pull cost data into FinOps tools without writing custom transformation logic. It supports 1-day granularity over a date range of up to one year, and streams responses as newline-delimited JSON to handle large datasets.
For quicker checks, the vercel usage CLI command shows usage and cost per service for the current billing period or a custom date range, with an option to break totals down by day, week, or month.
Vantage has also released a native integration that syncs Vercel usage and cost data into Vantage accounts automatically. Read the full announcement for details.