user3610916
user3610916

Reputation: 141

How to get Google Cloud pricing details programmatically?

Can anybody please tell me how can I programmatically get Google Cloud pricing details (e.g., pricing for Google Compute Engine, Google Cloud Storage, Google Cloud SQL, etc.) from Google Cloud website?

Does Google Cloud provide the pricing details in JSON format?

Upvotes: 9

Views: 6455

Answers (1)

Misha Brukman
Misha Brukman

Reputation: 13424

You can get the SKUs and prices via the Cloud Billing Catalog API.

For example, in https://cloud.google.com/skus, you can find the "Compute Engine" service id is 6F81-5844-456A and then you can use the services.list API with the parent = services/6F81-5844-456A to find the prices.

Upvotes: 8

Related Questions