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

Prices via api

Screenshot from 2023-10-10 19-25-44.pngI want to get prices for virtual machines before I create them. I sent my screenshot where I can see my vm price. but I need it via my cli. or do you have vm prices calculation formula?

1 3 638
3 REPLIES 3

Hi @ussaev 

Welcome to Google Cloud Community!

You can use Google Cloud Pricing Calculator available via this link. You can use it to set resources that you will be using and have an estimate for the total cost. If required, you can use  API call by following this guide, please remember this service is under "Pre-GA Offerings Terms". If you need help for the next steps you can contact our sales.

I hope this information is helpful.

If you need further assistance, you can always file a ticket on our support team.

Thank you vey much for your answer. Can I parse calculator results? is it legal?

I tried your suggestion. and I can get some vm prices. but the problem is
that the prices I get are not the same as the real prices of vms.
I used this link
<>
to
use the API that you shared with me. I uploaded my request json. when I
sent request I get wrong prices. what can be the problem? thanks.
Top Labels in this Space
Top Solution Authors