Skip to content
masterclass Buddy

Neon · Concept

Usage metrics

Neon’s v2 consumption API returns project usage by metric and time period. Convert raw values into billing units such as CU-hours and GB-months before calculating cost.

Last updated

Syntax

GET /api/v2/consumption_history/v2/projects?org_id=...&from=...&to=...&granularity=...&metrics=...

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Monitor billing and usage
  • Querying consumption metrics
  • Invoice metrics
  • Network transfer

Source: Usage and cost calculations. Checked 2026-11-03.