The upcoming change to the billing usage API means that any call to the Get billing usage report endpoints after 1 January 2027 will be capped at a two‑year look‑back period. This aligns the API with the retention policy already applied to AI credit and premium request usage reports and applies to all GitHub plans, including Enterprise Cloud and data‑residency deployments.
Change Overview
From the start of 2027 the API will no longer provide usage records older than 24 months. The restriction is enforced uniformly across user, organization, and enterprise scopes. No alternative endpoint is offered for historic data; the only path to retain older records is to export them before the cutoff date.
Operational Impact
Teams that automate cost reporting, capacity forecasting, or audit logging currently rely on the API to pull long‑term usage trends. After the deadline those queries will return incomplete series, potentially breaking dashboards or alerting rules that expect a continuous time series. The change also affects any scheduled jobs that archive data; they must be updated to run before the retention window closes.
Architectural Considerations
Practitioners should treat the API as a short‑term data source and plan for a separate long‑term store. Options include:
- Running an export job now and persisting the JSON payload in a secure object store or data lake.
- Modifying existing ETL pipelines to capture the full dataset before 1 January 2027.
- Ensuring that any downstream analytics platform is aware of the 24‑month limit to avoid mis‑interpretation of gaps.
Related CloudNinjas coverage: hands-on guides.
What This Means For Practitioners
Action items are straightforward: schedule an export of all billing usage records older than two years before the start of 2027, update monitoring and reporting scripts to handle the new window, and store the exported data in a controlled repository. Keep an eye on GitHub communications for any further adjustments to retention policies, and validate that your internal cost‑management tooling respects the 24‑month limit to avoid unexpected gaps.
