Check out https://cloud.google.com/billing/docs/how-to/export-data-big... - you can configure GCP to spit out pricing data to bigquery, to be queried however you like.
(I don't think it produces a volume of data that escapes the free tier, but I'd have to check)