Problem: Currently we are using the price calculator API from Google to calculate the estimated cost for GCP compute instances. But as observed it does not have the data for N2, M2, C1, etc. instances. As suggested from google we tried the billing catalog API and found that still, data was missing for the N2, M2 & c1 instances. And Catalog API is very dense and is not very developer-friendly
Can we get any official working API from google to calculate the pricing for these compute instances?
Existing API which does not have the N2, M2 & C1 instances data: https://cloudpricingcalculator.appspot.com/static/data/pricelist.json
New API from google for catalog billing using the SKU id:
https://cloudbilling.googleapis.com/v1/services/6F81-5844-456A/skus?key=
here 6F81-5844-456A is the SKU id for compute engines
Hello,
I understand you are looking for the official working API to check the pricing of Google Cloud Platform resources especially you are unable to find the data for N2, M2 and C2
( as the machine type found C2 instead of C1) related data in https://cloudpricingcalculator.appspot.com/static/data/pricelist.json.
As we can see from this json file mentioned it is obsolete and it is redirecting us to check link .
I would highly recommend you to check pricing from link or based on SKU can check from link.
Lastly the calculator can help you to estimate the cost of GCP resources as well.