Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

GCP pricing API for ondemand and reserved pricing

Hi I am looking for a GCP SDK/API to fetch the instance type pricing information provided I have instance type and region as input.

I have tried using https://cloud.google.com/billing/v1/how-tos/catalog-api API however this doesnt let me match the exact instance type with the SKU description and hence may result in incorrect pricing information.

Regards

1 1 114
1 REPLY 1

Hi @krishna_oza, I had the exact problem. If you want to get pricing info related to SKUs, you must use the Pricing API (https://cloud.google.com/billing/docs/reference/pricing-api/rest)...and combine SKUs IDs and Services IDs.

Top Labels in this Space
Top Solution Authors