Inquiry:
Given that Gemini Cloud Assist provides insightful responses directly in the Google Cloud Console under Billing → Reports, I wanted to confirm if it is possible to programmatically call and retrieve the same report data (e.g., service costs, usage breakdown) through an API or via a backend service.
I’d appreciate your insights on this, as it would help streamline the solution and provide a more integrated experience for end-users who rely on automated cost reporting.
Looking forward to your response and any recommendations you may have!
Hi @suvsap ,
There’s no public API yet for Gemini Cloud Assist reports specifically. But you can get billing and usage data programmatically using these:
Cloud Billing Catalog API → https://cloud.google.com/billing/v1/how-tos/catalog-api
Cloud Billing Budget API → https://cloud.google.com/billing/docs/how-to/budgets-programmatic
BigQuery Export for Billing → https://cloud.google.com/billing/docs/how-to/export-data-bigquery
I recommend enabling BigQuery export, then querying the data to generate your own reports or automate tasks.