7
votes

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?

1

1 Answers

8
votes

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.