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

Are the BigQuery API calls like getting table metadata free?

I'm struggling to find information on how BigQuery API calls are charged.  Is calling tables.get  with STORAGE_STATS free, or is there some hidden cost I should be aware of?https://cloud.google.com/bigquery/docs/reference/rest/v2/tables/get

Solved Solved
3 3 558
1 ACCEPTED SOLUTION

The tables.get API call, when used with STORAGE_STATS, does not process data from the tables themselves, but rather retrieves metadata about the tables. This means that it doesn't matter how large the table is—the amount of data processed for the API call doesn't change. This call fetches details about the storage usage of the table, which is a metadata operation and generally does not count against your data processing quota.

Therefore, using tables.get for 10,000 tables, regardless of their size, would not incur costs associated with data scanning, as it does not actually scan table data but accesses metadata. It's still a good idea to monitor overall API calls if you're concerned about potential impacts on your quota. For comprehensive understanding, you may also consult the BigQuery API Quotas and Limits page.

View solution in original post

3 REPLIES 3