GCP pricing API does not have data for compute instances like N2, M2, C1

187 views
Skip to first unread message

Mohammed Imran Kasab

unread,
Mar 9, 2021, 4:17:27 PM3/9/21
to Google Cloud Developers

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

mdmustafizur

unread,
Mar 11, 2021, 11:32:43 AM3/11/21
to Google Cloud Developers

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. 

Reply all
Reply to author
Forward
0 new messages